mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 11:13:46 +02:00
Add route.md
This commit is contained in:
parent
6b3070a3cd
commit
525df4d8c5
1 changed files with 17 additions and 0 deletions
17
pages/common/route.md
Normal file
17
pages/common/route.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
# route
|
||||
|
||||
> Use route cmd to set the route table .
|
||||
|
||||
- Display the information of route table:
|
||||
|
||||
`route -n`
|
||||
|
||||
- Add route rule:
|
||||
|
||||
`sudo route add -net {{ip_address}} netmask {{netmask_address}} gw {{gw_address}}`
|
||||
|
||||
- Delete route rule:
|
||||
|
||||
`sudo route del -net {{ip_address}} netmask {{netmask_address}} dev {{gw_address}}`
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue