Wednesday, July 7, 2010

Determine your IP address

As a Linux user how do you determine IP address of your Linux PC in command line ?. Simply issue the command ifconfig -a as below. Here -a is option and ifconfig is the command
[root@fedora]# ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:0E:C7:15:04:A8
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x1820
...

Issue ifconfig --help or man ifconfig for find out more option



No comments:

Post a Comment