开机自动添加
修改/etc/sysconfig/network-scripts/route-thx
添加:
10.74.120.0/24 via 192.168.124.2 dev eth2
手动添加
route add -net 10.74.120.0 networkmask 255.255.255.0 dev eth0
修改/etc/sysconfig/network-scripts/route-thx
添加:
10.74.120.0/24 via 192.168.124.2 dev eth2
route add -net 10.74.120.0 networkmask 255.255.255.0 dev eth0
本文标题:Centos 添加静态路由
本文链接:https://www.haomeiwen.com/subject/emmfcqtx.html
网友评论