I have a 2011UiAS. I need a description about: How can i set up two wan as a failover solution. The main connection is a pppoe and a secondary could get ip from a 4g modem / router.
So all in all, i would like to set up the pppoe (ether 1) as the main and the dhcp (ether 2) as the secondary wan connection.
I hope you can give me help with this and explanation about the setup.
There are few ways to to achieve the task.
1# You can create two static routes (in route section), 1st pppoe with Distance Value set to 1, and 2nd for the 4g router link distance set to 2.
This way if wan1 (pppoe) fails, the traffic will auto route to wan2 4g router link which have distance value 2. & once the wan1 (pppoe) link reconnect, traffic will auto divert to it.
You can also setup Netwatch, or better to use Scripting which can perform the same task, but would require some scripting experience, with that you can perform additional actions upon failure/restoration like email / sms / log alerts etc. 1
Thanks for the fast and helpful reply I have watched videos about your first solution but which ip adress do i have to give for the ethernets? The pppoe connection has a fix static ip, by this i have to give the ip i get from the isp? The dhcp wan will give ip from the modem/router, by this i have to give an ip from the modem/router dhcp pool?
Better to go with the scripting method which you can customize as per your requirements. Monitor at least 2 internet hosts via script, if mikrotik fail to get reply from both, then consider the link down and activate second link by changing its route. (& send email alert about the link down event). Be very sure to create balckhole routes for the monitored hosts to make sure the packets for the 2 hosts dont route via secondary link.
I posted an example link in last comment for the complete working script which I am using at dozens of mikrotik with 100% good result.
I am having troubles with Dual WAN fail-over, and I’m hoping someone has a simple solution. In my testing environment I have WAN1 going to Ether1 and WAN2 at Ether2. Routes are configured as they should and while testing we see two different results based on the method of testing. If we simply disable the port within the router, WAN traffic kicks over to the other port as expected. If the connection is physically removed (say from WAN1) the traffic is not redirected to WAN2 and internet services go down. Any suggestions would be appreciated.