Community discussions

MikroTik App
 
xicu
just joined
Topic Author
Posts: 21
Joined: Thu Oct 18, 2012 12:29 am

Dual WAN, Problem when Interface is down

Thu Oct 18, 2012 12:57 am

Hello everybody, first of all, congratulations for RouterOS and Mikrotik Hardware, it is the best router that I found. I think you can do all that you need.

I configured several routers with dual or more WAN links and I configure several LAN networks and with routing mark with src.addres:

-LAN1net --> wan1 and failover wan2
-LAN2net --> wan1
-LAN3net --> wan2
-LAN4net --> wan2 and failover wan1

If link of wan1 and wan2 are ok, al works properly (failovers and fixed outs). The problem that i have detected few days ago is that when I have a machine that is in LAN2, might go out with wan1, all is correct if the link of wan1 is ok, but if i disconect cable of wan1, then traffic of LAN2 go out trought wan2

Did you Know why it doesn't use the routing mark when the link is down?

Thanks a lot.
 
tws101
Member Candidate
Member Candidate
Posts: 283
Joined: Thu Sep 08, 2011 11:25 pm

Re: Dual WAN, Problem when Interface is down

Thu Oct 18, 2012 5:19 pm

The default action is: If no routes in the routing table correspond to the routing mark. The router places it in the main routing table.

In order to get around this your may want to put in a black hole route with that routing mark at higher priority.
 
xicu
just joined
Topic Author
Posts: 21
Joined: Thu Oct 18, 2012 12:29 am

Re: Dual WAN, Problem when Interface is down

Fri Oct 19, 2012 12:03 am

Thanks a lot for the imformation, I didn't Know about the blackhole in route options since today.

It is a good solution, I put a new static route with higher distance (lower priority)

/ip route add disabled=no distance=30 dst-address=0.0.0.0/0 routing-mark=WAN1 type=blackhole

Thanks a lot,