I need is to create a script that allows to lower the priority of one of the routers configured with VRRP

Hi friends,

I will greatly appreciate your support.

I have 02 Mikrotik routers (R1 - R2) configured with VRRP. Additionally, each router has a WAN interface. If the LAN interface of Router 1 drops, traffic switches to R2. But, if the WAN interface of R1 drops, traffic does not switch to R2. What I need is to create a script that allows to lower the priority of one of the routers configured with VRRP, when one of the WAN interface is down.

Thanksss.

Make a direct connection between the routers and number it with some throwaway subnet, such as 192.168.255.0/30
Make R1 have a backup default GW of 192.168.255.2
Make R2 have a backup default GW of 192.168.255.1

this way it won’t matter which device is acting as the VRRP master.