Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-08 00:14:59 +00:00
parent a812b3c467
commit f8bee5305f
111 changed files with 540 additions and 310 deletions

View File

@@ -10,24 +10,24 @@ source: https://github.com/tldr-pages/tldr.git
- Print route to a destination:
`ip route get {{1.1.1.1}}`
`ip {{[r|route]}} get {{1.1.1.1}}`
- Print route to a destination from a specific source address:
`ip route get {{destination}} from {{source}}`
`ip {{[r|route]}} get {{destination}} from {{source}}`
- Print route to a destination for packets arriving on a specific interface:
`ip route get {{destination}} iif {{eth0}}`
`ip {{[r|route]}} get {{destination}} iif {{eth0}}`
- Print route to a destination, forcing output through a specific interface:
`ip route get {{destination}} oif {{eth1}}`
`ip {{[r|route]}} get {{destination}} oif {{eth1}}`
- Print route to a destination with a specified Type of Service (ToS):
`ip route get {{destination}} tos {{0x10}}`
`ip {{[r|route]}} get {{destination}} tos {{0x10}}`
- Print route to a destination using a specific VRF (Virtual Routing and Forwarding) instance:
`ip route get {{destination}} vrf {{myvrf}}`
`ip {{[r|route]}} get {{destination}} vrf {{myvrf}}`