Wednesday, 9 June 2010

How to see IP Address of a system in Linux?

Write following command on command line:

$ /sbin/ifconfig/

As soon as you enter, you will se following on the screen:

eth0      Link encap:Ethernet  HWaddr 00:25:64:ba:67:2d 
          inet addr:192.168.29.231  Bcast:192.168.29.255  Mask:255.255.255.192
          inet6 addr: fe80::225:64ff:feba:672d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:51598 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27730 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15121530 (14.4 MB)  TX bytes:6643763 (6.3 MB)
          Interrupt:16

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:12269 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12269 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:13829812 (13.1 MB)  TX bytes:13829812 (13.1 MB)

The bold text is your IP Address.

Thanks

Cheers!

1 comment:

  1. yes good information that how to check the ip address.. I checkout my ip address from here http://www.ip-details.com/ @ free of costs...

    ReplyDelete