Routing table gone after ifdown
Hi ,
I setup routing table.
Code:
[root@]# ip route show table 2
xx.xx.xx.xx/28 dev eth2 scope link src xx.ip.xx.ip
default via xx.gw.xx.gw dev eth2
[root@]# ip route show table 1
yy.yy.yy.yy/28 dev eth1 scope link src yy.ip.yy.ip
default via yy.gw.yy.gw dev eth1
however, when I issue command ifdown eth2, the routing table 2 is gone.
Code:
[root@]# ip route show table 2
[root@]# ip route show table 2
[root@]# ip route show table 2
but table 1 still exist
I added ip route as follows.
Code:
ip route add xx.xx.xx.xx/28 dev eth1 src xx.ip.xx.ip table IGA
ip route add default via xx.gw.xx.gw table IGA
ip route add yy.yy.yy.yy/28 dev eth2 src yy.ip.yy.ip table BTL
ip route add default via xx.gw.xx.gw table BTL
I also add the ip route on /etc/rc.local so it will load when system restart.
Is there a way to fix this issue? even I issue ifdown eth2, the routing table will not get lost.
Please advice :)
Thanks!