Difference between revisions of "Ip Befehle"
(→Übersicht) |
(→Übersicht) |
||
| Line 2: | Line 2: | ||
=== Übersicht === | === Übersicht === | ||
| − | {| class="wikitable" style="margin:auto" | + | {| class="wikitable" style="margin:auto; margin-right: 0px;" |
|+ Vergleichstabelle ip versus ifconfig | |+ Vergleichstabelle ip versus ifconfig | ||
|- | |- | ||
Revision as of 21:21, 13 September 2025
ip Befehle
Übersicht
| Zweck | iproute2 Kommando | iproute2 Kommando Kurzversion | net-tools Kommando |
|---|---|---|---|
| Linkstatus anzeigen | ip link show | ip l | ifconfig |
| Linkstatus inkl. Statistik (RX/TX bytes, errors, ...) anzeigen | ip -statistics link show | ip -s l | ifconfig |
| IP Adresse anzeigen | ip addr show | ip a | ifconfig -a |
| IP Adresse setzen | ip addr add IP/NETMASK dev DEVICE | ip a a IP/NETMASK dev DEVICE | ifconfig DEVICE IP/NETMASK |
| IP Adresse entfernen | ip addr del IP/NETMASK dev DEVICE | ip a d IP/NETMASK dev DEVICE | |
| IP Adressen entfernen | ip addr flush dev DEVICE | ip a f dev DEVICE | |
| Routingtabelle anzeigen | ip route show | ip r | route -n |
| Standardgateway setzen | ip route add default via IP | ip r a default via IP | route add default gw IP DEVICE |
| ARP-Cache anzeigen | ip neigh show | ip n | arp -na |
| Verbindungen anzeigen | ss --tcp --all --processes --extended --numeric | ss -tapen | netstat -tapen |