[Techtalk] ip addreses on redhat

Neil Fryer nfryer at marimba.com
Mon Aug 4 15:48:51 EST 2003


Hi All,

AFAIK, RedHat gets it's IP addy's from 
/etc/sysconfig/networking/devices/ifcfg-eth0 on boot up, I could be 
wrong here, but I'm pretty sure this is where the info is obtained from.

Kind regards
Neil Fryer


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

-- 
Neil Fryer
Marimba Software UK Ltd
400 Thames Valley Park Drive
Thames Valley Park
Reading RG6 1PT
United Kingdom
Support Line: 08000 156155




More information about the Techtalk mailing list