Subject: Re: [ILUG] getting IP of machine on DHCP
Paul Dunne
paul at dunne.ie.eu.org
Wed Dec 20 15:06:31 GMT 2000
The neatest and quickest way I know is
ifconfig eth0 | sed -n 's/.*inet addr:\([0-9.]*\).*/\1/p'
--
Paul Dunne
http://dunne.home.dhs.org/
More information about the ILUG
mailing list