Hi ,
I have cent os 6.5 and am trying to make few routes permanent for bond:
i have added two routes using below two commands :
/sbin/route add -net 10.0.0.0 netmask 255.0.0.0 gw 10.59.160.128
/sbin/route add -net 0.0.0.0 netmask 0.0.0.0 gw 49.44.52.90
post which route command output is as below :
Destination Gateway Genmask Flags Metric Ref Use Iface
49.44.52.96 * 255.255.255.224 U 0 0 0 bond1
10.59.163.128 * 255.255.255.192 U 0 0 0 eth0
10.70.77.0 * 255.255.255.192 U 0 0 0 bond0
link-local * 255.255.0.0 U 1002 0 0 eth0
link-local * 255.255.0.0 U 1014 0 0 bond0
link-local * 255.255.0.0 U 1015 0 0 bond1
10.0.0.0 10.59.160.128 255.0.0.0 UG 0 0 0 eth0
default 49.44.52.90 0.0.0.0 UG 0 0 0 bond1
but afeter i restart the network routes are not persistent , output of route command post network restart is as follows :
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
49.44.52.96 * 255.255.255.224 U 0 0 0 bond1
10.59.163.128 * 255.255.255.192 U 0 0 0 eth0
10.70.77.0 * 255.255.255.192 U 0 0 0 bond0
link-local * 255.255.0.0 U 1002 0 0 eth0
link-local * 255.255.0.0 U 1014 0 0 bond0
link-local * 255.255.0.0 U 1015 0 0 bond1
default 10.59.160.128 0.0.0.0 UG 0 0 0 eth0
can someone please let me know how i can add correct routes permanently which will persist post network restart as well.