[Techtalk] ip addreses on redhat

Lena M lena_m1 at hotmail.com
Mon Aug 4 07:27:22 EST 2003


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.


----- 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

More information about the Techtalk mailing list