I’ve been reading here about various methods to deal with 2 routers each having a dhcp server, and how to stop 1 from serving addresses. Some methods include a script to enable/disable on vrrp up/down. Or to set 1 dhcp server to 10 seconds so it wont sever unless the primary doesn’t respond. Or to split the pool between them.
However, I have found that if you set the dhcp server to the vrrp interface, instead of the actual interface, then the dhcp server is automatically enabled/disabled with the vrrp interface itself getting enabled/disabled.
Of course there is the separate issue with leases not syncing between them, but that’s not what I’m referring to here. Just the dhcp server itself either serving or not serving addresses.
Is this method of putting the vrrp interface into the dhcp settings acceptable? I don’t want to do anything that is accidently working and will stop working later.