I need help with configuration. I need to configure failover on my router but it needs to work only when one of the connection is completely lost. I have 2 ISP providers and one portion of my network is going through ISP2 and other is going through ISP2. It's kind of "load balance" but when one connection is lost, for example: ISP1 I need all traffic go through ISP2 and vice versa.
Here's my configuration:
Code: Select all
# aug/14/2018 11:34:20 by RouterOS 6.42.6
# software id = G71R-YK4Z
#
# model = RB760iGS
# serial number = 87F209E98E8D
/interface bridge
add fast-forward=no name=bridge1-o2
/interface ethernet
set [ find default-name=ether2 ] name=ether2-LAN-wifi
set [ find default-name=ether3 ] name=ether3-isp-vybezek
set [ find default-name=ether4 ] name=ether4-isp-o2
set [ find default-name=ether5 ] name=ether5-LAN-automaty poe-out=forced-on
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp_pool0 ranges=192.168.1.50-192.168.1.200
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=ether2-LAN-wifi lease-time=\
1d name=dhcp1
/interface bridge port
add bridge=bridge1-o2 interface=ether4-isp-o2
add bridge=bridge1-o2 interface=ether5-LAN-automaty
/ip address
add address=10.1.13.34/30 interface=ether3-isp-vybezek network=10.1.13.32
add address=192.168.1.1/24 interface=ether2-LAN-wifi network=192.168.1.0
add address=192.168.0.254/24 disabled=yes interface=ether1 network=\
192.168.0.0
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=bridge1-o2
/ip dhcp-server network
add address=192.168.1.0/24 dns-server=10.1.255.1,8.8.8.8 gateway=192.168.1.1
/ip dns
set allow-remote-requests=yes servers=10.1.255.1,8.8.8.8
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat out-interface=bridge1-o2
/ip route
add distance=1 gateway=10.1.13.33 routing-mark=isp-vybezek
add disabled=yes distance=1 gateway=192.168.0.2 routing-mark=isp-vybezek
/ip route rule
add routing-mark=isp-vybezek table=isp-vybezek
add src-address=10.1.13.32/30 table=isp-vybezek
add disabled=yes src-address=192.168.0.0/24 table=isp-vybezek
add src-address=192.168.1.0/24 table=isp-vybezek
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/system clock
set time-zone-name=Europe/Prague
/system routerboard settings
set silent-boot=no