[ dsivic @ 31.07.2017. 08:32 ] @
Zdravo,

Pokušavam napraviti failover sa dvije WAN konekcije.

Koristio sam ovo jednostavno uputsvo: https://wiki.mikrotik.com/wiki/Two_gateways_failover

Mada bi više volio kada bi napravio konfiguraciju sa ovog linka:
https://wiki.mikrotik.com/wiki/Advanced_Routing_Failover_without_Scripting
ali pogubim se dok dodem do kraja uputstva.


Kada iskljucim link na WAN1 router prebaci na WAN2, ali kada vratim kabal u WAN1 router i dalje koristi WAN2, a gateway na WAN1 ostaje unreachable.

Trenutna konfiguracija routera:

Code:


[admin@MikroTik] > /export                                      
# jul/28/2017 15:32:08 by RouterOS 6.39.2
# software id = Q4HI-XDTZ
#
/interface ethernet
set [ find default-name=ether1 ] name=WAN1
set [ find default-name=ether2 ] name=WAN2
set [ find default-name=ether4 ] master-port=ether3
set [ find default-name=ether5 ] master-port=ether3
/interface wireless security-profiles
add authentication-types=wpa2-psk eap-methods="" management-protection=allowed \
    mode=dynamic-keys name=profile1 supplicant-identity="" wpa2-pre-shared-key=\
    12345678
/interface wireless
set [ find default-name=wlan1 ] disabled=no mode=ap-bridge security-profile=\
    profile1
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=LAN3 ranges=192.168.4.10-192.168.4.100
/ip dhcp-server
add address-pool=LAN3 disabled=no interface=ether3 name=DHCP-LAN3
/ip address
add address=192.168.4.1/24 interface=ether3 network=192.168.4.0
/ip dhcp-client
add add-default-route=no dhcp-options=hostname,clientid disabled=no interface=\
    WAN1
add add-default-route=no dhcp-options=hostname,clientid disabled=no interface=\
    WAN2
/ip dhcp-server network
add address=192.168.4.0/24 dns-server=8.8.8.8 domain=8.8.4.4 gateway=\
    192.168.4.1 netmask=24 ntp-server=192.168.4.1
/ip firewall nat
add action=masquerade chain=srcnat
/ip route
add check-gateway=ping distance=1 gateway=185.26.179.254
add distance=2 gateway=192.168.1.1
/ip service
set telnet disabled=yes
set ftp disabled=yes
set ssh disabled=yes
/system clock
set time-zone-name=Europe/Sarajevo
/system routerboard settings
set init-delay=0s
[admin@MikroTik] > 

[ Informer @ 31.07.2017. 10:39 ] @
Jesi probao da za rutu stavis check-gateway=arp?
[ dsivic @ 31.07.2017. 11:26 ] @
greska mi je bila ovdje:
Code:

/ip route
add check-gateway=ping distance=1 gateway=185.26.179.254


treba da bude ovako:
Code:

/ip route
add check-gateway=ping distance=1 gateway=192.168.199.1


ovo je gateway od WAN1 konekcije - ja sam htio da pingam gateway nakon svog prvog - jer mi je ovaj takorec uvijek živ.

nadam se da me razumiješ.
[ dsivic @ 01.08.2017. 11:03 ] @
Našao sam route (iz uputstva dva https://wiki.mikrotik.com/wiki/Advanced_Routing_Failover_without_Scripting)
na internetu i prilagodio sebi...

Evo export možda nekome pomogne:
Code:


[admin@MikroTik] > export
# aug/01/2017 08:42:24 by RouterOS 6.39.2
# software id = Q4HI-XDTZ
#
/interface bridge
add name=bridge1
/interface ethernet
set [ find default-name=ether1 ] name=WAN1
set [ find default-name=ether2 ] name=WAN2
set [ find default-name=ether4 ] master-port=ether3
set [ find default-name=ether5 ] master-port=ether3
/interface wireless security-profiles
add authentication-types=wpa2-psk eap-methods="" management-protection=allowed mode=dynamic-keys name=profile1 \
    supplicant-identity="" wpa2-pre-shared-key=12345678
/interface wireless
set [ find default-name=wlan1 ] disabled=no mode=ap-bridge security-profile=profile1
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=LAN3 ranges=192.168.4.10-192.168.4.100
/ip dhcp-server
add address-pool=LAN3 disabled=no interface=bridge1 name=DHCP-LAN3
/interface bridge port
add bridge=bridge1 interface=wlan1
add bridge=bridge1 interface=ether3
/ip address
add address=192.168.4.1/24 interface=bridge1 network=192.168.4.0
/ip dhcp-client
add add-default-route=no dhcp-options=hostname,clientid disabled=no interface=WAN1
add add-default-route=no dhcp-options=hostname,clientid disabled=no interface=WAN2
/ip dhcp-server network
add address=192.168.4.0/24 dns-server=8.8.8.8 domain=8.8.4.4 gateway=192.168.4.1 netmask=24 ntp-server=192.168.4.1
/ip firewall nat
add action=masquerade chain=srcnat
/ip route
add check-gateway=ping distance=1 gateway=208.67.222.222 routing-mark=KABLOVSKA
add distance=1 gateway=10.1.1.1 routing-mark=KABLOVSKA
add check-gateway=ping distance=2 gateway=8.8.8.8 routing-mark=KABLOVSKA
add distance=2 gateway=10.2.2.2 routing-mark=KABLOVSKA
add check-gateway=ping distance=1 gateway=8.8.8.8 routing-mark=ADSL
add distance=1 gateway=10.2.2.2 routing-mark=ADSL
add check-gateway=ping distance=2 gateway=208.67.222.222 routing-mark=ADSL
add distance=2 gateway=10.1.1.1 routing-mark=ADSL
add distance=1 gateway=192.168.199.1
add distance=2 gateway=192.168.1.1
add distance=1 dst-address=8.8.8.8/32 gateway=192.168.1.1 scope=10
add check-gateway=ping distance=1 dst-address=10.1.1.1/32 gateway=196.25.255.34 scope=10
add check-gateway=ping distance=1 dst-address=10.1.1.1/32 gateway=196.25.255.3 scope=10
add check-gateway=ping distance=1 dst-address=10.2.2.2/32 gateway=64.6.65.6 scope=10
add check-gateway=ping distance=1 dst-address=10.2.2.2/32 gateway=64.6.64.6 scope=10
add distance=1 dst-address=64.6.64.6/32 gateway=192.168.1.1 scope=10
add distance=1 dst-address=64.6.65.6/32 gateway=192.168.1.1 scope=10
add distance=1 dst-address=196.25.255.3/32 gateway=192.168.199.1 scope=10
add distance=1 dst-address=196.25.255.34/32 gateway=192.168.199.1 scope=10
add distance=20 dst-address=196.25.255.34/32 type=blackhole
add distance=1 dst-address=208.67.222.222/32 gateway=192.168.199.1 scope=10
add distance=20 dst-address=208.67.222.222/32 type=blackhole
/ip service
set telnet disabled=yes
set ftp disabled=yes
set ssh disabled=yes
/system routerboard settings
set init-delay=0s
[admin@MikroTik] >