1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-01 15:17:57 +01:00
tldr/pages/linux/ip.md
2016-01-08 09:38:59 +01:00

400 B

ip

Show / manipulate routing, devices, policy routing and tunnels.

  • List interfaces with detailed info:

ip a

  • Display the routing table:

ip r

  • 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 an default route:

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