How to find the IP address of your Machine using Linux?
|
|
|
|
|
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 - ifconfig - Deprecated, rather use the '"ip'" command
Input:
Â
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
- Input:
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
- 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.
|