mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-22 06:51:13 +00:00
Update cheatsheets
This commit is contained in:
@@ -11,32 +11,32 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List interfaces with detailed info:
|
||||
|
||||
`ip address`
|
||||
`ip {{[a|address]}}`
|
||||
|
||||
- List interfaces with brief network layer info:
|
||||
|
||||
`ip -brief address`
|
||||
`ip {{[-br a|-brief address]}}`
|
||||
|
||||
- List interfaces with brief link layer info:
|
||||
|
||||
`ip -brief link`
|
||||
`ip {{[-br l|-brief link]}}`
|
||||
|
||||
- Display the routing table:
|
||||
|
||||
`ip route`
|
||||
`ip {{[r|route]}}`
|
||||
|
||||
- Show neighbors (ARP table):
|
||||
|
||||
`ip neighbour`
|
||||
`ip {{[n|neighbour]}}`
|
||||
|
||||
- Make an interface up/down:
|
||||
|
||||
`ip link set {{interface}} {{up|down}}`
|
||||
`ip {{[l|link]}} set {{interface}} {{up|down}}`
|
||||
|
||||
- Add/Delete an IP address to an interface:
|
||||
|
||||
`ip addr add/del {{ip}}/{{mask}} dev {{interface}}`
|
||||
`ip {{[a|address]}} add/del {{ip}}/{{mask}} dev {{interface}}`
|
||||
|
||||
- Add a default route:
|
||||
|
||||
`ip route add default via {{ip}} dev {{interface}}`
|
||||
`ip {{[r|route]}} add default via {{ip}} dev {{interface}}`
|
||||
|
||||
Reference in New Issue
Block a user