mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-09-17 14:57:18 +03:00
commit
bcf62defb6
23
linux/ip.md
Normal file
23
linux/ip.md
Normal file
@ -0,0 +1,23 @@
|
||||
# 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}}`
|
Loading…
Reference in New Issue
Block a user