I’m setting up a pair of routers on RB450Gs as a high availability VPN server. Each router has two active interfaces that participate in VRRP interfaces.
Failover of the individual VRRP interfaces is fine and a complete router failure is handled OK with both vitual IP addresses ending up on the backup unit. The problem arises with a single interface failure. Only one of the interfaces is failed over.
So far, I’ve tried to address this with scripting using the On-Backup and On-Master triggers but on the master interface the VRRP status stays as Master when the interface is disconnected so the On-Backup script never runs.
Can anyone offer any guidance on this? My current scripts are as follows:
I just tested it it works fine on RB1000 4.10.Flag RM goes to flag M after RM int fail on Master and on Backup B goes to RM! After int restore on master flag M goes to RM and on backup flag RM goes to B.
Check your ip connectivity!It’s very likely that the problem is on your ip config,check the pings!
BTW this is not a good setup for VPN redundacy,because ot the routing issue which you will have if the internet link fails and the local not on the master!!!The vpn tunnes from internet will be restablished on the backup but it’s local int will be in backup state so no routing there from the internal nets !
Some redundancy can be achieved with bonding the interfaces with two eth each , the only drawbacks of this would be the power supply on the router and the loss of ability to loadshare the vpns bw the two… would be nice if i had two on the RB1000 i would gladly pay for an extra which would not be so expessive but don’t know why mikrotik didn’t include second one!?
Flag RM goes to flag M after RM int fail on Master and on Backup B goes to RM! After int restore on master flag M goes to RM and on backup flag RM goes to B.
Agreed. That’s exactly what mine does.
As you say, you need to ensure that both master’s are on the same router. To do this you use a script. Two script triggers are provided ‘On-Backup’ and ‘On-Master’. The problem is; on the higher priority master, the On-Backup script is never run because the router never becomes a backup, it’s merely a non-running master as you have observed.
I just hit some strange behavour on inital config thigs are working but when i restarted the routers bouth are masters ??? Very strange and cannt make them select the backup!?
Strange Strange Strange !?!?!? With same priority vrrp choose which one to be master which is OK and things seem to be working! But setting differenet prioritys on two vrrps on same router things don’t work ???
Try with same PR
P.S. Just opened a new topic about this i thing it’s a serous bug!?
I need to bump this thread as I still haven’t found a solution to the problem of synchronising the state of multiple vrrp interfaces on a single router. With Vyatta I get the option to place vrrp interfaces into a group which will achieve this. Is there something that will do the same thing for RouterOS?
If you check back to my first post in this thread you can see my attempt at scripting. However, I never managed to get this script working and was looking for some guidance.
when i used to test vrrp there where 2 options:
1st - disable other VRRPs to make sure that on other end vrrp would become masters (do not like this option much)
2nd - lower priority so other device become master and one on the router becomes backup.