mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 08:55:34 +02:00
ip-rule: fix example description and add generic table creation example (#15980)
This commit is contained in:
parent
c549ea1b5a
commit
44f141f902
1 changed files with 5 additions and 5 deletions
|
@ -7,6 +7,10 @@
|
|||
|
||||
`ip {{[ru|rule]}}`
|
||||
|
||||
- Create a new generic routing rule with a higher priority than `main`:
|
||||
|
||||
`sudo ip {{[ru|rule]}} {{[a|add]}} from all lookup {{100}}`
|
||||
|
||||
- Add a new rule based on packet source addresses:
|
||||
|
||||
`sudo ip {{[ru|rule]}} {{[a|add]}} from {{192.168.178.2/32}}`
|
||||
|
@ -19,11 +23,7 @@
|
|||
|
||||
`sudo ip {{[ru|rule]}} {{[d|delete]}} from {{192.168.178.2/32}}`
|
||||
|
||||
- Delete a rule based on packet destination addresses:
|
||||
|
||||
`sudo ip {{[ru|rule]}} {{[d|delete]}} to {{192.168.178.2/32}}`
|
||||
|
||||
- Flush all deleted rules:
|
||||
- Remove all routing rules:
|
||||
|
||||
`sudo ip {{[ru|rule]}} {{[f|flush]}}`
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue