-
/etc/sysconfig/network-scripts/route-eth0
ip/prefix via ip
-
/etc/rc.d/rc.local ip route add 10.1.1.0/24 via 192.168.1.1 dev eth0 proto static metric 100
chmod +x /etc/rc.d/rc.local -
/etc/sysconfig/network 添加的是默认网关
GATEWAY=IP
2021-07-24 04:13:42
/etc/rc.d/rc.local
ip route add 10.1.1.0/24 via 192.168.1.1 dev eth0 proto static metric 100
chmod +x /etc/rc.d/rc.local