LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] IP Number - where is it held?

[ILUG] IP Number - where is it held?

Vincent Cunniffe vcunniff at dogma.slashnull.org
Thu Mar 16 14:52:51 GMT 2000


"Ryan, Philip" wrote:
> 
> Hello Folks
> 
> We're looking for where LINUX stores it's IP address.
> 
> Our initial thinking was that /etc/sysconfig/network is sourced at boot time
> by /etc/rc.d/init.d/inet which uses the value of $HOSTNAME to do a lookup in
> /etc/hosts to establish the IP address.
> 
> This has proven to be false.
> 
> >From further investigation I'm concluding that LINUX is similar to AIX in
> that via SMIT on AIX, one adds or changes the IP address and this change is
> reflected in /etc/hosts & written to the ODM. Whereas on LINUX, one updates
> the IP address via linuxconf and this change is written to some binary
> somewhere but not reflected in /etc/hosts (feature in linuxconf-1.16r10-2
> ?????).
> 
> Any pointers on which file linuxconf writes to?

Linux, in general, avoids binary configs like the plague.

/etc/syconfig/network-scripts

is where you want to look... all editable manually.

One thing you might want to remember is that 'Linux' per se doesn't have
an IP address : interfaces of all kinds do, sometimes more than one address
per interface. So a single running linux kernel could have anywhere from 
zero to pretty much any number of valid IP addresses active at any time.

1 primary IP for a single ethernet card is most common though, found in
'/etc/sysconfig/network-scripts/ifcfg-eth0'.

Good luck,

Vin




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell