02 Sep 22 15:43 +0000
IP Command in Linux

Part of Linux Commands Cheat Sheet

The ip command is a Linux net-tool for system and network administrators. IP stands for Internet Protocol and as the name suggests, the tool is used for configuring network interfaces.

ip [OPTION] OBJECT {COMMAND}

There are so many objects so we can't talk all of them, here is some of the most important objects:

Display and modify network interfaces.

ip link
ip l
ip l show
# show a specific interface
ip l show lo

address

Display and modify protocol addresses (IP, IPv6).

ip address
ip addr
ip a
ip a show
# show a specific interface
ip a show lo

route

Display and alter the routing table.

ip route
ip r
ip r list
# list with selector
ip r list 172.17.0.0/16

neigh

Display and manipulate neighbor objects (ARP table).

ip neigh
ip n
ip n show

References

Linux IP Command Ultimate Tutorial with 31 Examples


Loading comments...