情境:
当目的ip 为 192.168.50.0/24 的时候,便经由 eth1 到 192.168.10.254

编辑 /etc/sysconfig/network-scripts/route-eth1

192.168.50.0/24 via 192.168.10.254 dev eth1
存档,离开

重启启动网路
/etc/init.d/network restart 或 service network restart

重开机后设定档也会自动生效

相关文章