Dual WAN configuration not working as i need.
RB3011Ui-AS; ROS 6.35.4
WAN IP´s are changed for this topic.
Configurations:
WAN1 (eth1) MAIN CONNECTION:
IP: 111.111.111.111
Mask: 255.255.255.252(/30)
GW: 111.111.111.110
WAN2 (eth2) BACKUP CONNECTION; PPPoE uplink:
IP: 222.222.222.222
User: pppuser@myisp
Pass: randomword
LAN(eth3-eth10):
IP: 192.168.120.1
Mask: 255.255.255.0
DNS; DHCP: 192.168.120.1
Configurations are fine and working with with some downsides… I´ll try to explain what OK and whats wrong.
Case 1 - BOTH uplinks connected and enabled (automatic default routes)
Problem: The whole connection runs through BACKUP link - i want connection run through MAIN link all the time and when main disconnects it goes for backup, BUT “PPPoE Client” automatically adds routes with Distance 0 and goes primary and leaves my main connection with Distance 1.
Another problem is that, when the backup link reconnects - traffic stays to another connection.
Eg:
BOTH WAN CONNECTED - traffic flows trough WAN2.
WAN2 ISP fails - another connection (WAN21) is going to be used.
In some time WAN2 ISP connects again BUT MikroTik stays to another connetion - it should go back to the WAN2 but doesnt…
Case 2 - BOTH uplinks connected and enabled (static routes)
Problem: BACKUP link (PPPoE) doesn´t work at all.
My static routes added for backup link:
/ip route print
DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 111.111.111.110 1
1 S 0.0.0.0/0 192.168.144.1 2
2 ADC 192.168.123.0/24 192.168.123.1 LAN 0
3 S 192.168.144.1/32 222.222.222.222 PPPoE 2nd uplink 1
4 ADC /111.111.111.111/30 111.111.111.111 1MAIN_UPLINK 0
As i can see there are problems with Distances…
What i want ao achieve
- Connection running through MAIN (WAN1) uplink and WAN2 working as backup uplink
- Both uplinks reacable from outside (for eg. i can connect to MikroTik from both WAN IP´s)
- Failover work correctly. When WAN1 fails then connections goes to WAN2. If WAN1 reconnects then connection goes back to WAN1 automatically…