VRRP mastership results in arp cache flush
by kishanrao from LinuxQuestions.org on (#6M5Z8)
Hello,
When a VRRP backup becomes master and becomes owner of the VIP/VMAC on an interface, I notice that the arp cache is flushed. Why is this done?
In net/core/dev.c:
NETDEV_CHANGEADDR:
rt_cache_flush(dev_net(dev));
...
The ARP cache contains IP-MAC information of other devices in the network. Only the local interface's IP/MAC is getting updated so it should not ideally affect the cache of other devices.
When a VRRP backup becomes master and becomes owner of the VIP/VMAC on an interface, I notice that the arp cache is flushed. Why is this done?
In net/core/dev.c:
NETDEV_CHANGEADDR:
rt_cache_flush(dev_net(dev));
...
The ARP cache contains IP-MAC information of other devices in the network. Only the local interface's IP/MAC is getting updated so it should not ideally affect the cache of other devices.