ip flags & options

addr show

Display IP addresses assigned to interfaces.

ip addr show
ip addr show eth0

Display network interface information.

ip link show
ip link show eth0

route show

Display the routing table.

ip route show
ip route show default

addr add

Assign an IP address to an interface.

sudo ip addr add 192.168.1.10/24 dev eth0

addr del

Remove an IP address from an interface.

sudo ip addr del 192.168.1.10/24 dev eth0

Change the state of a network interface.

sudo ip link set eth0 up
sudo ip link set eth0 down

route add

Add a new route to the routing table.

sudo ip route add 10.0.0.0/8 via 192.168.1.1
sudo ip route add default via 192.168.1.1

neigh

Display or manipulate the ARP/neighbor table.

ip neigh show
sudo ip neigh flush dev eth0