Outils pour utilisateurs

Outils du site


informatique:ip

La commande "ip"

La page de man de ip.

Exemples

Voir les interfaces disponibles :

$ ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> 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: <NO-CARRIER,BROADCAST,MULTICAST,UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <LOOPBACK,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    inet 172.17.0.1/16 scope global docker0
       valid_lft forever preferred_lft forever
informatique/ip.txt · Dernière modification: 2020/08/09 13:03 (modification externe)