A
A
Alexander Matkovsky2014-08-07 17:16:04
Mikrotik
Alexander Matkovsky, 2014-08-07 17:16:04

Mikrotik dual-wan ping over WAN2 - what's the problem?

Good afternoon.
2011UiAS-2HnD
RouterOS version: 6.18
2 providers are connected to ether1 and ether2 respectively. On both normal static IP.
/ip route

0 A S  dst-address=0.0.0.0/0 gateway=IP_GW1 distance=1 routing-mark=mark-WAN1-out

1 A S  dst-address=0.0.0.0/0 gateway=IP_GW2 distance=1 routing-mark=mark-WAN2-out

2 A S  ;;; default gw wan1
        dst-address=0.0.0.0/0 gateway=IP_GW1  distance=2 

3   S  ;;; default gw wan2
        dst-address=0.0.0.0/0 gateway=IP_GW2 distance=3

/ip firewall mangle
12   chain=input action=mark-connection new-connection-mark=mark-WAN2-in passthrough=yes in-interface=ether2
13   chain=output action=mark-routing new-routing-mark=mark-WAN2-out passthrough=yes connection-mark=mark-WAN2-in
14   chain=input action=mark-connection new-connection-mark=mark-WAN1-in passthrough=yes in-interface=ether1
15   chain=output action=mark-routing new-routing-mark=mark-WAN1-out passthrough=yes connection-mark=mark-WAN1-in

The router responds outside on both WAN.
I can ssh into the router on both WANs.
Question:
when I do /ping interface=ether2 8.8.8.8
I get:
8.8.8.8                                                 timeout
8.8.8.8                                                 timeout
8.8.8.8                                                 timeout
8.8.8.8                                                 timeout
8.8.8.8                                                 timeout
IP_GW2                             84  64 987ms host unreachable
8.8.8.8                                                 timeout
8.8.8.8                                                 timeout
IP_GW2                             84  64 986ms host unreachable

This is some nonsense...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gem, 2014-08-09
@Gem

Setting everything up via mangle is a bad idea
. PBR is needed here - see /ip route rule
mikrotikacademy.blogspot.ru/2013/09/selective-poli...
More details
habrahabr.ru/post/186284

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question