May
03
2017
By abernal
Tool to manage network related configurations
addr
Displays network interfaces information
$ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:50:56:9c:65:8c brd ff:ff:ff:ff:ff:ff inet 10.45.125.105/24 brd 10.45.125.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::250:56ff:fe9c:658c/64 scope link valid_lft forever preferred_lft forever 3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default link/ether 02:42:62:47:97:0f brd ff:ff:ff:ff:ff:ff inet 172.17.0.1/16 scope global docker0 valid_lft forever preferred_lft forever inet6 fe80::42:62ff:fe47:970f/64 scope link valid_lft forever preferred_lft forever
link
Displays the status of the network devices
$ ip -s link 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 RX: bytes packets errors dropped overrun mcast 7583733167 6905419 0 0 0 0 TX: bytes packets errors dropped carrier collsns 7583733167 6905419 0 0 0 0 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000 link/ether 00:50:56:9c:65:8c brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 8723079246 15485031 0 14606 0 0 TX: bytes packets errors dropped carrier collsns 28929955127 16557774 0 0 0 0 3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default link/ether 02:42:62:47:97:0f brd ff:ff:ff:ff:ff:ff RX: bytes packets errors dropped overrun mcast 3544982 65134 0 0 0 0 TX: bytes packets errors dropped carrier collsns 318058289 107745 0 0 0 0