On Mon, 2003-06-30 at 08:21, Michael Kalus wrote: > You mean on DHCP? > > Ipconfig -a |more > > Should tell you your IP address. >
ip address show |grep inet |grep -v 127\. |cut -d' ' -f6 |cut -d'/' -f1 will get you *just* the ip address (assuming you only have one non-localhost IP. You know it'd be nice if that info was stuck somewhere in /proc/net/ for easy retrieval w/o command output parsing. For example perhaps /proc/net/ip_ethN where N is the device number. -- Bill Anderson RHCE #807302597505773 [EMAIL PROTECTED] -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list