Getting info about network devices
Krishnendu Sadhukhan
krishnendu.sadhukhan at sun.com
Thu Jun 10 09:30:54 UTC 2004
Well, I am coding in C, so ifconfig won't be that convenient. I am rather looking for some kind of system data file, like /etc/path_to_inst in Solaris.
Does RedHat provide this kind of data file so that programs can make use of them easily ?
-Krish
Pete Nesbitt wrote:
>
> On June 9, 2004 03:32 am, Krishnendu Sadhukhan wrote:
> > Hi,
> >
> > I want to programmatically extract the list of network devices currently
> > existing in the system. More specifically, I want to know the following:
> >
> > i) the list of all interfaces configured by the system at boot time
> > ii) the list of all available interfaces at a particular moment
> > iii) the list of all logical interfaces at a particular moment.
> >
> > I was looking at /proc/net/dev, but it seems it does not give the complete
> > information, especially the information on the logical interfaces.
> >
> > What is the best place in the system to look for this information ?
> >
> > Thanks,
> > Krish
>
> What about "ifconfig" ?
> --
> Pete Nesbitt, rhce
More information about the redhat-list
mailing list