[Techtalk] ip addreses on redhat

Lena M lena_m1 at hotmail.com
Mon Aug 4 07:54:40 EST 2003


Robert,

I have 2 reasons:

1. I think it would faster if I avoid running ifconfig -a and get the same
info from the source
2. I am curious ;)

Thank you.

Lena

----- Original Message ----- 
From: "Robert Wade" <rbwade at simla.colostate.edu>
To: "Lena M" <lena_m1 at hotmail.com>
Cc: <techtalk at linuxchix.org>
Sent: Monday, August 04, 2003 7:50 AM
Subject: Re: [Techtalk] ip addreses on redhat


>
> Lena,
>
> The whole premise of GNU and usually open source is that one can use the
> work of others. Why not just use 'ifconfig -a' in your program?
>
> Robert
>
> On Mon, 4 Aug 2003, Lena M wrote:
>
> > Luke,
> >
> > That's right. I need to know how ifconfig -a gets ip addresses. I would
like
> > a program that I'm writing to do the same.
> >
> > Thank you.
> >
> > Lena
> >
> >
> >
> > ----- Original Message ----- 
> > From: "Luke Woods" <lwoods at netstarnetworks.com>
> > To: <techtalk at linuxchix.org>
> > Sent: Monday, August 04, 2003 7:16 AM
> > Subject: RE: [Techtalk] ip addreses on redhat
> >
> >
> > > Hi,
> > >
> > > I believe she might be talking about where the address is stored after
> > > being configured (by ifconfig or the like).
> > >
> > > Network interfaces are kernel resident, the applications make system
> > > calls to change certain parameters of the interface.
> > >
> > >
> > > Quote:
> > >
> > > Is the IP address being assigned statically or dynamically?
> > >
> > > If it's static, the IP address lives in
> > > /etc/sysconfig/network-scripts/ifcfg-ethX  where X is the interface
> > > number.
> > >
> > > If the address is being assigned dynamically, then where it's stored
> > > depends on the dhcp client you're using. The most probable location is
> > > /var/lib/dhcp, but as I said, that location might vary depending on
the
> > > client. In any case, it will be stored somewhere in /var, not /proc
> > >
> > >
> > > _______________________________________________
> > > Techtalk mailing list
> > > Techtalk at linuxchix.org
> > > http://mailman.linuxchix.org/mailman/listinfo/techtalk
> > >
> > _______________________________________________
> > Techtalk mailing list
> > Techtalk at linuxchix.org
> > http://mailman.linuxchix.org/mailman/listinfo/techtalk
> >
>
>


More information about the Techtalk mailing list