1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 01:26:03 +02:00

route: add Chinese translation

This commit is contained in:
wizarot 2019-03-14 12:40:39 +08:00 committed by Owen Voke
parent af362fc151
commit 1eeb988e0b

28
pages.zh/osx/route.md Normal file
View file

@ -0,0 +1,28 @@
# route
> 手动操作路由表.
> 需要root权限.
- 通过网关向目标添加路由:
`sudo route add {{路由ip地址}} {{网关地址}}`
- 通过网关向 子网 / 24 添加路由:
`sudo route add {{子网ip}}/24 {{网关地址}}`
- 在测试模式下运行(不做任何操作,只打印):
`sudo route -t add {{路由ip地址}}/24 {{网关地址}}`
- 删除所有路由:
`sudo route flush`
- 删除特定路由:
`sudo route delete {{路由ip地址}}/24`
- 查找并显示目标的路由(主机名或IP地址):
`sudo route get {{目标}}`