Centos 添加静态路由

开机自动添加

修改/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 添加静态路由)