Keepalived configuration for VRRP

keepalivedvrrp

I am trying to understand if there is a relation between garp_master_delay and advert_int. In all the configurations I saw, advert_int was less than garp_master_delay.

  • Is there any reason for this?
  • Are those independent of each other or is there any ordering requirement between the two?

VRRP RFC does not seem to mention anything on this.

Best Answer

They aren't really related, per se - the advert_int controls the interval between advertisements in normal operation, whereas the garp_master_delay controls how long after taking master state a node should sent gratuitous ARP (to notify devices that it now controls those IPs at a new MAC address to override their ARP caches). You'd tune the two for different reasons.