fail over problem

Helio dears

i`v mikrotic v 5.2 installed in dell workstation .

and i`v only 2 NICs 1st used as lan and hot spot interface and the 2nd used as wan and internet interface .

iv 2 internet connections through only the wan interface so iv did the below sittings
:
1 - added 10.0.0.1/8 ip address to the lan interface
2 - added 192.168.0.150/24 and 192.168.1.150/24 to the wan interface while my routers are 192.168.0.1 and 192.168.1.254
3 - i`v added the 8.8.8.8 and 8.8.4.4 as dns servers to my router

so what i need is to merge both of internet connections in the wan interface but with fail over . i mean that if one of my connections goes down i need the internet to my customers working on the secound connection and if both of them are working i need the internet to work on the full capacity for both of internet speed .

i used the below code :

/ip firewall mangle
add action=mark-connection chain=input comment="PCC Mine" disabled=no in-interface=wan new-connection-mark=wlan1_conn passthrough=yes    
add action=mark-connection chain=input comment="PCC Mine" disabled=no in-interface=wan new-connection-mark=wlan2_conn passthrough=yes
add action=mark-routing chain=output comment="PCC Mine" connection-mark=wlan1_conn disabled=no new-routing-mark=wlan1 passthrough=yes    
add action=mark-routing chain=output comment="PCC Mine" connection-mark=wlan2_conn disabled=no new-routing-mark=wlan2 passthrough=yes
add action=mark-connection chain=prerouting comment="PCC Mine" disabled=no dst-address-type=!local in-interface=wan new-connection-mark=wlan1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0  
add action=mark-connection chain=prerouting comment="PCC Mine" disabled=no dst-address-type=!local in-interface=wan new-connection-mark=wlan2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1
add action=mark-routing chain=prerouting comment="PCC Mine" connection-mark=wlan1_conn disabled=no in-interface=wan new-routing-mark=wlan1 passthrough=yes    
add action=mark-routing chain=prerouting comment="PCC Mine" connection-mark=wlan2_conn disabled=no in-interface=wan new-routing-mark=wlan2 passthrough=yes


/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.0.1 routing-mark=wlan1 scope=30 target-scope=10 comment="PCC Mine"  
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.254 routing-mark=wlan2 scope=30 target-scope=10 comment="PCC Mine"
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.0.1 scope=30 target-scope=10 comment="PCC Mine"
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=192.168.1.254 scope=30 target-scope=10 comment="PCC Mine"




/ip firewall nat
add action=masquerade chain=srcnat comment="PCC Mine" disabled=no out-interface=wan
add action=masquerade chain=srcnat comment="PCC Mine" disabled=no out-interface=wan

but if one of the connections goes down all my customers goes down also .


so please i need your help to solve this problem for my customers .

thank you for your cooperation :slight_smile:

Hey !! 30 view without any reply ?

please could any one help me ??