Difference between revisions of "ip addr list"
From thelinuxwiki
Line 11: | Line 11: | ||
link/ether 00:0c:29:de:9e:d2 brd ff:ff:ff:ff:ff:ff | link/ether 00:0c:29:de:9e:d2 brd ff:ff:ff:ff:ff:ff | ||
inet 192.168.1.228/28 brd 192.168.1.239 scope global eth0 | inet 192.168.1.228/28 brd 192.168.1.239 scope global eth0 | ||
− | inet 10.0.1.4/24 brd 10.0.1.255 scope global eth0 | + | inet '''10.0.1.4/24''' brd 10.0.1.255 scope global eth0 '''<<< Virtual IP shown here''' |
inet6 fe80::20c:29ee:fedf:6ff3/64 scope link | inet6 fe80::20c:29ee:fedf:6ff3/64 scope link | ||
valid_lft forever preferred_lft forever | valid_lft forever preferred_lft forever |
Revision as of 16:03, 16 May 2013
alternative to "ifconfig -a"
ifconfig -a fails to show virtual IPs on a linux interface
ip addr list show VIPs
# ip addr list eth0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000 link/ether 00:0c:29:de:9e:d2 brd ff:ff:ff:ff:ff:ff inet 192.168.1.228/28 brd 192.168.1.239 scope global eth0 inet 10.0.1.4/24 brd 10.0.1.255 scope global eth0 <<< Virtual IP shown here inet6 fe80::20c:29ee:fedf:6ff3/64 scope link valid_lft forever preferred_lft forever
ifconfig doesn't....
# ifconfig eth0 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.228 netmask 255.255.255.240 broadcast 192.168.1.239 inet6 fe80::20c:29ee:fedf:6ff3 prefixlen 64 scopeid 0x20<link> ether 00:0c:29:de:9e:d2 txqueuelen 1000 (Ethernet) RX packets 15548862 bytes 3392638504 (3.1 GiB) RX errors 23 dropped 100 overruns 0 frame 0 TX packets 14524112 bytes 3246930184 (3.0 GiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 18 base 0x2000