Hello Support,
I have 2 wan, so I created a configuration in order to have a primary link and backup link, so when primary link is inactive, backup link take all traffic in order works I have a failover scenario. The scenario is working well but I have issues about configuration.
I did a continuous ping to 8.8.8.8 and it works ,so I disconnected primary link and backup link was activated but ping was lost but if I browser to Internet I have conncetion using backup link. I dont know why router didnt route icmp packet to backup link so I need to restart connection manually in order to ping work. So If I am an administrator and do a ping I think that backup link dont work
I attached configuration
jan/24/2020 14:14:56 by RouterOS 6.40.4
software id = F3TM-AA69
model = 951Ui-2HnD
serial number = 8A73083B1B1A
/interface wireless
set [ find default-name=wlan1 ] disabled=no mode=ap-bridge ssid=MikroTik
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk eap-methods=“” mode=
dynamic-keys supplicant-identity=MikroTik wpa2-pre-shared-key=12345678
/ip pool
add name=pool_red_interna ranges=192.168.21.2-192.168.21.254
add name=pool_red_interna2 ranges=192.168.22.2-192.168.22.254
/ip dhcp-server
add address-pool=pool_red_interna disabled=no interface=wlan1 name=
Red_Interna
add address-pool=pool_red_interna2 disabled=no interface=ether2 name=
Red_Interna2
/ip address
add address=192.168.22.1/24 interface=ether2 network=192.168.22.0
add address=192.168.21.1/24 interface=wlan1 network=192.168.21.0
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=ether1
add add-default-route=no dhcp-options=hostname,clientid disabled=no
interface=ether3 script=“:local newgw [ip dhcp-client get [find interface=
"ether3"] gateway];\r
\n:local routegw [/ip route get [find comment="ISP_Netlife"] gateway ];
\r
\n:if ($newgw != $routegw) do={\r
\n /ip route set [find comment="ISP_Netlife"] gateway=$newgw;\r
\n}”
add add-default-route=no dhcp-options=hostname,clientid disabled=no
interface=ether4 script=“:local newgw [ip dhcp-client get [find interface=
"ether4"] gateway];\r
\n:local routegw [/ip route get [find comment="ISP_Claro"] gateway ];\r
\n:if ($newgw != $routegw) do={\r
\n /ip route set [find comment="ISP_Claro"] gateway=$newgw;\r
\n}\r
\n”
/ip dhcp-server network
add address=192.168.21.0/24 dns-server=8.8.8.8 gateway=192.168.21.1
add address=192.168.22.0/24 dns-server=8.8.8.8 gateway=192.168.22.1
/ip firewall nat
add action=accept chain=srcnat disabled=yes out-interface=ether1
add action=masquerade chain=srcnat
/ip route
add check-gateway=ping distance=1 gateway=8.8.8.8
add check-gateway=ping distance=2 gateway=8.8.4.4
add comment=ISP_Netlife distance=1 dst-address=8.8.4.4/32 gateway=
2.2.2.2 scope=10
add comment=ISP_Claro distance=1 dst-address=8.8.8.8/32 gateway=1.1.1.1
scope=10
/system clock
Why connection doesnt restart when bckup link is active?