[ILUG] IP Number - where is it held?
john.allen at orbiscom.com
Thu Mar 16 14:54:21 GMT 2000
"Ryan, Philip" wrote:
> Hello Folks
> We're looking for where LINUX stores it's IP address.
Where the 0 is the number of the ethernet card you want the ip for.
Also try /sbin/ifconfig eth0 to get the config for a card without
having to know what file contains the config.
> 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?
> Phil Ryan @ FISC-Ireland Ltd. / Fidelity Investments, Operations group.
> Email : Philip.Ryan at fid-intl.com
> FISC - Ireland Ltd., .registered in Ireland no. 245656. Registered office:
> FISC Ireland LTD / Fidelity Investments Hardwicke House Upper Hatch Street
> Dublin 2 Rep of Ireland. Telephone +353-1-6145400. Any comments or
> statements made are not necessarily those of Fidelity Investments, its
> subsidiaries, or affiliates
> Irish Linux Users' Group: ilug at linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
> List maintainer: listmaster at linux.ie
John Allen, Email: john.allen at orbiscom.com
Orbiscom Ltd, Web: http://www.orbiscom.com
3 Sandyford Park, Phone: +353-1-2945111
Sandyford Industrial Estate, Mobile: +353-86-2315986
Dublin 18. Fax: +353-1-2945119
More information about the ILUG