方法1:写在开机脚本/etc/rc.local
route add -net 10.8.0.0/8 gw 192.168.1.2
方法2:在route和rule配置文件配置
/etc/sysconfig/network-scripts/route-{interferface}【对应ip route add】
/etc/sysconfig/network-scripts/rule-{interferface}【对应ip rule add】
({interferface}为网卡接口,如eth0)
10.0.0.0/8 via 192.168.1.2 dev eth1
方法3:/etc/sysconfig/static-routes配置
any net any gw 192.168.1.1 any net 10.0.0.0/8 gw 192.168.1.2