Centos 添加静态路由
2018-11-29 本文已影响10人
marshalzxy
开机自动添加
修改/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