Page 1 of 1

VRRP Delay on restore master

Posted: Tue Feb 20, 2018 4:28 pm
by trutec
Hi
we currently have two border routers (each linked to 3 ISPs with individual BGP peers)
VRRP is configured on our networks
I would like to apply delay (2-3 mins) when VRRP comes from backup mode to master because BGP sessions takes 2-3 mins to pull all BGP routes.

example: when R1 is restarted /shutdown R2 becomes VRRP master (everything transfers within 1-2 secs), when R1 comes back on becomes the VRRP master however the BGP sessions take 2-3 mins to download all routes - within those 2-3 mins the outbound traffic does not work.
thank you

Re: VRRP Delay on restore master

Posted: Tue Feb 20, 2018 5:41 pm
by acruhl
If you don't care which router becomes the master, you can just use preemption-mode=no and that would solve the problem. You could fail it over manually once everything settles.

Otherwise, I don't see a way to do it. I'm doing this at work but the routers I'm using have a preemption delay which does what you want.

Maybe you could write a script for when the router boots to set vrrp priority to something pretty low, then wait a few minutes, then set it back to it's original value?

Re: VRRP Delay on restore master

Posted: Tue Feb 20, 2018 5:52 pm
by acruhl
After thinking about this for a minute, this should be a feature request.

A delay after a reboot solves not only the problem you want to solve, but can also solve "flapping" if one router has a problem and starts rebooting itself. It's a nice feature to have.

Re: VRRP Delay on restore master

Posted: Tue Feb 20, 2018 6:42 pm
by trutec
Master is very important, the router with full BGP routing table should be master only
I've managed with the following startup script:

/interface vrrp set [find name~"VRRP"] disabled=yes;
delay 240;
/interface vrrp set [find name~"VRRP"] disabled=no;