[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: How do I find the IP address.
- From: Bill Anderson <bill noreboots com>
- To: redhat-list redhat com
- Subject: RE: How do I find the IP address.
- Date: Mon Jun 30 16:32:13 2003
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
bill noreboots com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]