创建static-routes文件
vi /etc/sysconfig/static-routes
在static-routes文件中增加静态路由,格式如下
any net 10.0.0.0 netmask 255.0.0.0 gw 10.253.164.129
重启网络服务
/etc/init.d/network restart
vi /etc/sysconfig/static-routes
any net 10.0.0.0 netmask 255.0.0.0 gw 10.253.164.129
/etc/init.d/network restart
本文标题:Linux静态路由添加-永久生效
本文链接:https://www.haomeiwen.com/subject/uyevpttx.html
网友评论