# addresses $ ip a 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 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: eth1: < mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 34:64:a9:d4:aa:aa brd ff:ff:ff:ff:ff:ff inet 172.16.0.1/16 scope global eth1 valid_lft forever preferred_lft forever 2: eth2: < mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 34:64:a9:d4:bb:bb brd ff:ff:ff:ff:ff:ff inet 172.18.0.1/16 scope global eth2 valid_lft forever preferred_lft forever 3: wlo1: mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 80:19:34:29:cc:cc brd ff:ff:ff:ff:ff:ff inet 192.168.0.1/24 brd 192.168.0.255 scope global dynamic noprefixroute wlo1 valid_lft 59100sec preferred_lft 59100sec inet6 fe80::f988:ac84:703e:c757/64 scope link noprefixroute valid_lft forever preferred_lft forever # neighbours $ ip n 192.168.0.254 dev wlo1 lladdr a0:39:ee:8c:dd:dd REACHABLE 172.16.0.254 dev wlo1 lladdr 5e:ff:56:a2:ee:ee REACHABLE 172.18.0.254 dev wlo1 lladdr 5e:ff:56:a2:ff:ff REACHABLE # routes $ ip r default via 192.168.0.254 dev wlo1 proto dhcp metric 600 142.250.179.67 via 192.168.0.254 dev wlo1 172.16.0.0/16 dev eth1 proto kernel scope link src 172.16.0.1 metric 600 172.18.0.0/16 dev eth2 proto kernel scope link src 172.18.0.1 metric 600 172.19.0.0/16 via 172.16.0.254 dev eth1 172.19.128.0/17 via 172.18.0.254 dev eth2 192.168.0.0/24 dev wlo1 proto kernel scope link src 192.168.0.1 metric 600 193.52.104.60 via 192.168.0.254 dev wlo1 # Sur quelle interface les paquets aux destinations suivantes seront routées : eth1 eth2 wlo1 ? 172.16.0.100 172.18.0.100 172.19.100.100 172.19.129.100 172.15.0.100 # petite modification de la ligne 6 et insertion d'un numéro de ligne # y a t il moyen de simplifier cette table ? $ ip r 1 default via 192.168.0.254 dev wlo1 proto dhcp metric 600 2 142.250.179.67 via 192.168.0.254 dev wlo1 3 172.16.0.0/16 dev eth1 proto kernel scope link src 172.16.0.1 metric 600 4 172.18.0.0/16 dev eth2 proto kernel scope link src 172.18.0.1 metric 600 5 172.19.0.0/16 via 172.16.0.254 dev eth1 6 172.19.128.0/17 via 172.16.0.254 dev eth1 7 192.168.0.0/24 dev wlo1 proto kernel scope link src 192.168.0.1 metric 600 8 193.52.104.60 via 192.168.0.254 dev wlo1