Linux ip cheat sheet

Display link status ip link show Display ip addresses ip addr show Bring interface up ip link set eth0 up Bring interface down ip link set eth0 down Assign IP to device eth0 ip addr add dev eth0 Assign IP to device including netmask and broadcast ip addr add broadcast dev eth0 Delete IP from device ip addr del dev eth0 Add IP as alias ip addr add 192.