1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-05 12:33:21 +01:00
tldr/linux/ip.md
2014-02-25 10:25:47 +08:00

23 lines
391 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 {{ip}}/{{mask}} dev {{interface}}`
- Add an default route
`ip route add default via {{ip}} dev {{interface}}`