Skip to main content

iproute2 Befehle

Show informations
Show informations


















Set interface

Set IP address 

ip addr add IP/NETMASK dev DEV

ip a a IP/NETMASK dev DEVICE

Set device up

ip link set DEV up


Set device down

ip link set DEV down


Add VLANs

Show informations



Show link status

ip link show

ip l

Show link status & stats

ip -statistics link show

ip -s l

Show IP address

ip addr show

ip a

Show ARP cache

ip neigh show

ip n

Show connections

ss --tcp --all --processes --extended --numeric

ss -tapen

Show routing table

ip route show

ip r




Set Interfaces



     
     
     




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