tldr/pages/linux/ip.md
Justin Kenyon 3a858a93af Update grammar
`a` should be used instead of `an` in this context.
2017-04-03 20:30:15 +05:30

24 lines
399 B
Markdown

# 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 a default route:
`ip route add default via {{ip}} dev {{interface}}`