Why ifdown command on a VIP / alias IP flush rule table for the original interface ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 6
  • Policy based routing.

Issue

  • Why rules gets delete after bringing down- ifdown the alias / VIP interface ?
  • In a policy based routing, entry from rule table is flushed or deleted after bringing down the alias interface.
[user@HOSTNAME]# ip a s bond0
17: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether 00:0f:53:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 169.96.P.Q/23 brd 169.96.33.255 scope global bond2
    inet 169.96.X.Y/23 brd 169.96.33.255 scope global secondary bond2:1
[user@HOSTNAME]#

[user@HOSTNAME]# cat /etc/sysconfig/network-scripts/route-bond0
default via 169.96.P.Q table ean
169.96.X.Y/23 dev bond2 table ean
[user@HOSTNAME]#

[user@HOSTNAME]# cat /etc/sysconfig/network-scripts/rule-bond0
from 169.96.X.Y/23 table ean
[user@HOSTNAME]#

[user@HOSTNAME]# ip route show table all |grep -i ean
169.96.x.Y/23 dev bond0  table ean  scope link 
default via 169.96.P.Q dev bond0  table ean 
[user@HOSTNAME]#

[user@HOSTNAME]# ip rule show
32765:  from 169.96.X.Y/23 lookup ean 
[user@HOSTNAME]#

[user@HOSTNAME]# ifdown bond0:1
[user@HOSTNAME]#

[user@HOSTNAME]# ip rule show  
0:      from all lookup local
[user@HOSTNAME]#

[user@HOSTNAME]# ip a s bond0
17: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether 00:0f:53:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 169.96.P.Q/23 brd 169.96.33.255 scope global bond2
[user@HOSTNAME]#

Resolution

  • There is an internal bugzilla-ifdown-routes drops non-alias rules for alias interface which was already field for this issue. Note that its an internal bugzilla and is only accessible to Red Hat associates.
  • Can check with Red Hat associate to get the current status of the bugzilla.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.