1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 15:39:46 +01:00
tldr/pages/linux/ip.md
Lena b596b78b18
pages/*: standardize mentioning subcommands without the main command (#13626)
* pages/*: standardize mentioning subcommands without the main command

* CONTRIBUTING: clarify that pages should only mention the subcommand
2024-10-04 21:14:41 +02:00

718 B

ip

Show/manipulate routing, devices, policy routing and tunnels. Some subcommands such as address have their own usage documentation. More information: https://www.manned.org/ip.8.

  • List interfaces with detailed info:

ip address

  • List interfaces with brief network layer info:

ip -brief address

  • List interfaces with brief link layer info:

ip -brief link

  • Display the routing table:

ip route

  • Show neighbors (ARP table):

ip neighbour

  • Make an interface up/down:

ip link set {{interface}} {{up|down}}

  • Add/Delete an IP address to an interface:

ip addr add/del {{ip}}/{{mask}} dev {{interface}}

  • Add a default route:

ip route add default via {{ip}} dev {{interface}}