mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 18:06:00 +02:00
Added page for route under osx
This commit is contained in:
parent
ec26997a1d
commit
124998b65a
1 changed files with 20 additions and 0 deletions
20
pages/osx/route.md
Normal file
20
pages/osx/route.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# route
|
||||
|
||||
> Manually manipulate the routing tables
|
||||
> Necessitates to be root.
|
||||
|
||||
- add a route to a destination through a gateway
|
||||
|
||||
`sudo route add 10.0.0.0/8 192.168.1.1`
|
||||
|
||||
- run in test mode (does not do anything, just print)
|
||||
|
||||
`sudo route -t add 112.1.124.12/32 192.168.1.1`
|
||||
|
||||
- remove all routes
|
||||
|
||||
`sudo route flush`
|
||||
|
||||
- delete a specific route
|
||||
|
||||
`sudo route delete 10.0.0.0/24`
|
Loading…
Add table
Reference in a new issue