1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 21:22:09 +02:00
tldr/pages/linux/ip.md
2020-10-06 08:12:54 -03:00

35 lines
592 B
Markdown

# ip
> Show / manipulate routing, devices, policy routing and tunnels.
- 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}}`