VRRP : Track BGP status?

I’m trying to setup VRRP between our Microtik and a Cisco router.

VRRP is setup fine and the Microtik is the master with the Cisco as backup as planned.

The Microtik has a BGP session with our ISP and I want VRRP to decrement it’s VRRP priority if this BGP session drops so that the Cisco takes over as master. When the BGP session re-establishes I would like the VRRP priority to return to normal so that the Microtik becomes the master again.

I’m guessing this has to be done via a script but I can’t find one to do this. I’m obviously quite new to Microtik so any help much appreciated.

With Cisco/Juniper etc you can just setup a track to monitor the default route being received via BGP so hopefully there is something similar for Microtik.

Thanks!

Sounds like you’re talking about edge routers for IP Transit/IXP/PNI?

In which case, you shouldn’t be using VRRP, but have a proper network architecture whereby you set up iBGP with OSPF underlay between the routers, and correctly configure local pref and other BGP attributes in each other for received routes and exported routes.

VRRP is stateful, stateful doesn’t help with line rate routing.