iproute2 Befehle
Show informations
|
Show link status |
ip link show | ip l |
|
Show link status & stats |
|
|
|
Show IP address |
|
|
|
Show ARP cache |
|
|
|
Show connections |
|
|
|
Show routing table |
|
|
Set interface
|
Set IP address |
|
|
|
Set device up |
ip link set DEV up |
|
|
Set device down |
ip link set DEV down |
|
Add VLANs
|
Add VLAN to link |
ip link add link DEV name DEV.VID type vlan id VID |
Delete device addresses
| Delete IP address | ip addr del IP/NETMASK dev DEV | ip a d IP/NETMASK dev DEVICE |
| Delete all IPs | ip addr flush dev DEV | ip a f dev DEVICE |
Set gateway
| Set standard gateway |
ip route add default via IP |
ip r a default via IP |