將 route 設定在 /etc/sysconfig/network-scripts/ 中

2013-12-16 18:22

/etc/sysconfig/network-scripts/route-eth1.8
/etc/sysconfig/network-scripts/route-bond0 

GATEWAY0=192.168.1.1
NETMASK0=255.255.255.0
ADDRESS0=10.10.10.0
GATEWAY1=192.168.1.1
NETMASK1=255.255.255.0
ADDRESS1=20.20.20.2
or
192.168.241.0/24 dev eth1.8
10.1.1.1/24 via 192.1.1.1
10.1.1.1/24 via 192.1.1.1 dev eth1
10.127.240.2/32 via 10.18.11.2