mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 16:42:10 +02:00
27 lines
438 B
Markdown
27 lines
438 B
Markdown
# ip
|
|
|
|
> Show / manipulate routing, devices, policy routing and tunnels.
|
|
|
|
- List interfaces with detailed info:
|
|
|
|
`ip a`
|
|
|
|
- Display the routing table:
|
|
|
|
`ip r`
|
|
|
|
- Show neighbors (ARP table):
|
|
|
|
`ip n`
|
|
|
|
- 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}}`
|