====== La commande "ip" ====== La page de [[man de ip]]. ===== Exemples ===== Voir les interfaces disponibles : $ ip link show 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: enp4s0: mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000 link/ether c8:5b:76:c6:8e:be brd ff:ff:ff:ff:ff:ff 3: wlp5s0: mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000 link/ether 58:00:e3:c4:51:23 brd ff:ff:ff:ff:ff:ff 4: docker0: mtu 1500 qdisc noqueue state UP mode DEFAULT group default link/ether 02:42:a7:38:de:18 brd ff:ff:ff:ff:ff:ff 8: veth5f8a991@if7: mtu 1500 qdisc noqueue master docker0 state UP mode DEFAULT group default link/ether 4a:06:32:86:cb:e4 brd ff:ff:ff:ff:ff:ff link-netnsid 0 12: veth0e9c788@if11: mtu 1500 qdisc noqueue master docker0 state UP mode DEFAULT group default link/ether 2e:0d:72:5b:5b:b2 brd ff:ff:ff:ff:ff:ff link-netnsid 1 Voir les interfaces actives : $ ip -4 addr 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever 3: wlp5s0: mtu 1500 qdisc mq state UP group default qlen 1000 inet 192.168.30.67/24 brd 192.168.30.255 scope global dynamic wlp5s0 valid_lft 687683sec preferred_lft 687683sec 4: docker0: mtu 1500 qdisc noqueue state UP group default inet 172.17.0.1/16 scope global docker0 valid_lft forever preferred_lft forever