[Newbies] 请问如何实现像WIN系统的批处理添加静态路由?
Tofloor
poster avatar
ruhua
deepin
2021-07-15 17:10
Author

小白一枚,第一次接触LINUX系统,请问如何实现像WIN系统的批处理添加静态路由?

Reply Favorite View the author
All Replies
观摩
deepin
2021-07-15 17:27
#1
# 添加网段

sudo /usr/sbin/route add -net 192.168.1.0/24 gw 192.168.6.10

# 添加单个IP

sudo /usr/sbin/route add 192.168.18.201 gw 192.168.6.121
Reply View the author