Difference between revisions of "Ip Befehle"
(→Übersicht) |
(→Übersicht) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 2: | Line 2: | ||
=== Übersicht === | === Übersicht === | ||
| − | {| class="wikitable" style="margin:auto; margin- | + | {| class="wikitable" style="margin:auto; margin-left: 0px;" |
| − | |+ Vergleichstabelle ip versus ifconfig | + | |+ '''Vergleichstabelle ip versus ifconfig''' |
|- | |- | ||
! Zweck !! iproute2 Kommando !! iproute2 Kommando Kurzversion !! net-tools Kommando | ! Zweck !! iproute2 Kommando !! iproute2 Kommando Kurzversion !! net-tools Kommando | ||
Latest revision as of 21:22, 13 September 2025
ip Befehle[edit]
Übersicht[edit]
| 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 |