Hello guys!
(Sorry, my english is very bad!)
I’m implementing VRRP in my infrastructure, but:
I just have 1 WAN IP, and, i need to use it in both Mikrotiks, so, i need to let disable the WAN IP of MK2 (If i don’t do it, we’ve network conflict), when the MK1 is working, the external interface of MK2 is disable, when my MK1 stop (energy or other problems…), the WAN interface will work
I need some script to do that.
Activate and deactivate some interface, when the ping stop. Someone have some script to do that?
Try this:
:if ( [/ping 8.8.8.8 interface= “ETHERT 1” count=6 ] = 0) do={/ip dhcp-client release numbers=0}
Maybe you can use tool netwatch?
With VRRP you already have everything you need.
You can use any private network for VRRP, like 172.16.16.0/29. Then use .2/30 and .3/30 for the physical interface addresses and .1/32 for the VRRP address. Then add your public IP with correct subnet mask to that vrrp interface as well. It will follow the status.
Doing this over here in a couple of failover routers and it’s working like a charm.
-Chris