编辑static-routes默认是没有这个文件,可直接自己新建
vi /etc/sysconfig/static-routes
添加如下
any net 192.168.0.0/16 gw 192.168.99.233
any net 10.0.0/8 gw 192.168.99.233
any net 172.16.0.0/16 gw 192.168.99.233
保存后
service network reload
编辑static-routes默认是没有这个文件,可直接自己新建
vi /etc/sysconfig/static-routes
添加如下
any net 192.168.0.0/16 gw 192.168.99.233
any net 10.0.0/8 gw 192.168.99.233
any net 172.16.0.0/16 gw 192.168.99.233
保存后
service network reload
本文标题:Centos添加永久静态路由方法
本文链接:https://www.haomeiwen.com/subject/toodsttx.html
网友评论