ip
linux
Show/manipulate routing, devices, policy routing and tunnels. Some subcommands such as `address` have their own usage documentation.
More info →Subcommands (10)
ip address
→IP Address management subcommand.
ip link
→Manage network interfaces.
ip maddress
→Manage multicast addresses.
ip monitor
→Monitor network for state changes.
ip neighbour
→Neighbour/ARP tables management IP subcommand.
ip netconf
→Display configuration parameters.
ip route
→IP Routing table management subcommand. See also: `routel`.
ip rule
→IP routing policy database management.
ip stats
→Manage and show interface statistics.
ip tuntap
→Manage TUN/TAP virtual network interfaces.
Options (7)
booleanList interfaces with detailed info
Example:
ip {{[a|address]}}booleanList interfaces with brief network layer info
Example:
ip {{[-br|-brief]}} {{[a|address]}}booleanList interfaces with brief link layer info
Example:
ip {{[-br|-brief]}} {{[l|link]}}booleanDisplay the routing table
Example:
ip {{[r|route]}}booleanShow neighbors (ARP table)
Example:
ip {{[n|neighbour]}}booleanMake an interface up/down
Example:
sudo ip {{[l|link]}} {{[s|set]}} {{ethX}} {{up|down}}booleanAdd a default route
Example:
sudo ip {{[r|route]}} {{[a|add]}} default via {{ip_address}} dev {{ethX}}made by @shridhargupta | data from tldr-pages