mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 19:55:27 +02:00
ip-route-get: add page (#14333)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
8be4b39b68
commit
0f94b1f06f
1 changed files with 28 additions and 0 deletions
28
pages/linux/ip-route-get.md
Normal file
28
pages/linux/ip-route-get.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# ip route get
|
||||
|
||||
> Get a single route to a destination and print its contents exactly as the kernel sees it.
|
||||
> More information: <https://manned.org/ip-route>.
|
||||
|
||||
- Print route to a destination:
|
||||
|
||||
`ip route get {{1.1.1.1}}`
|
||||
|
||||
- Print route to a destination from a specific source address:
|
||||
|
||||
`ip route get {{destination}} from {{source}}`
|
||||
|
||||
- Print route to a destination for packets arriving on a specific interface:
|
||||
|
||||
`ip route get {{destination}} iif {{eth0}}`
|
||||
|
||||
- Print route to a destination, forcing output through a specific interface:
|
||||
|
||||
`ip route get {{destination}} oif {{eth1}}`
|
||||
|
||||
- Print route to a destination with a specified Type of Service (ToS):
|
||||
|
||||
`ip 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}}`
|
Loading…
Add table
Reference in a new issue