1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-02 06:55:38 +02:00

ip-{route-show, route}: fix command and clarify (#15976)

This commit is contained in:
Managor 2025-03-21 14:34:11 +02:00 committed by GitHub
parent ac4b70a930
commit c66f4ae5d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View file

@ -3,13 +3,13 @@
> Display subcommand for IP Routing table management.
> More information: <https://manned.org/ip-route>.
- Display the routing table:
- Display the `main` routing table:
`ip {{[r|route]}} {{[s|show]}}`
- Display the main routing table (same as first example):
`ip {{[r|route]}} {{[s|show]}} {{main|254}}`
`ip {{[r|route]}} {{[s|show]}} {{[t|table]}} {{main|254}}`
- Display the local routing table:

View file

@ -3,7 +3,7 @@
> IP Routing table management subcommand.
> More information: <https://manned.org/ip-route>.
- Display the routing table:
- Display the `main` routing table:
`ip {{[r|route]}}`
@ -30,3 +30,7 @@
- Show which route will be used by the kernel to reach an IP address:
`ip {{[r|route]}} {{[g|get]}} {{destination_ip}}`
- Display a specific routing table:
`ip {{[r|route]}} {{[s|show]}} {{[t|table]}} {{table_number}}`