Home Linux How to find the IP address of your Machine using Linux?
 
 
 

How to find the IP address of your Machine using Linux?

PDF Print E-mail

Question: How to find the IP address of your Machine using Linux?

 

Answer:

There are a number of ways to find the IP address. Examples below

  1. ifconfig - Deprecated, rather use the '"ip'" command

    Input:
    ifconfig
     

    Output:
    eth0      Link encap:Ethernet  HWaddr 00:0c:6e:c5:67:89  
                  UP 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:1000 
                  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
                  Interrupt:23 Base address:0x6c00


  2. Input:
    ip addr show dev eth0


    Output
    2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
        link/ether 00:0c:6e:c5:67:89 brd ff:ff:ff:ff:ff:ff
    

  3. Input:
    ping -I wlan0 www.google.com


    Output: from 10.0.0.4 is the ip address
    PING www.google.com (209.85.227.104) from 10.0.0.4 wlan0: 56(84) bytes of data.
    
+/-
+/- Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
Security Please input the anti-spam code that you can read in the image.
 

Go Daddy $7.49 .com Sale!