Suite moderne d'outils Linux remplaçant ifconfig, route, arp.
iproute2 est la suite moderne d'outils de configuration réseau Linux, remplaçant les utilities legacy net-tools (ifconfig, route, arp, netstat). La commande principale est `ip`, avec sous-commandes pour différents aspects.
Sous-commandes principales :
(1) `ip addr` (ou `ip a`) — addresses IP des interfaces (vs ifconfig).
(2) `ip link` (ou `ip l`) — interfaces L2 (ip link set dev eth0 up/down, MTU, MAC).
(3) `ip route` (ou `ip r`) — table de routage (vs route).
(4) `ip neigh` (ou `ip n`) — ARP table IPv4, neighbor IPv6 (vs arp).
(5) `ip rule` — policy routing rules.
(6) `ip netns` — network namespaces (containers, VRFs).
(7) `ip tunnel` — tunnels GRE, IPIP.
(8) `ip xfrm` — IPsec policies.
(9) `ip -s link` — statistics.
(10) `ip monitor` — watch changes en temps réel.
Exemples : (1) `ip addr add 192.168.1.10/24 dev eth0` — assign IP ; (2) `ip route add default via 192.168.1.1` — default gateway ; (3) `ip route add 10.0.0.0/8 via 192.168.1.254` — static route ; (4) `ip link set dev eth0 mtu 9000` — jumbo frames ; (5) `ip -6 route` — IPv6 routes ; (6) `ip rule add from 192.168.1.0/24 table 100` — policy routing.
Autres iproute2 tools : `ss` (sockets), `tc` (traffic control / QoS), `bridge` (Linux bridges), `nstat` (network stats), `ip-vrf` (virtual routing forwarding).
Migration ifconfig → ip : (1) `ifconfig eth0` → `ip addr show eth0` ; (2) `ifconfig eth0 up/down` → `ip link set eth0 up/down` ; (3) `route -n` → `ip route` ; (4) `arp -an` → `ip neigh`. Compétences RHCSA, CKA, LFCS, CCNA.
200+ certifications, 400 000+ questions, examens blancs chronométrés.
Voir le catalogue →