Community discussions

MikroTik App
 
FunkyBunny
newbie
Topic Author
Posts: 30
Joined: Wed Jun 13, 2012 10:33 pm

Multiple WAN - ping issue

Thu Jun 06, 2013 6:24 pm

I have a router with 2 net connections - a cable and a dsl.

The cable connection is the primary and is used for the PC's, while the DSL is used solely for VOIP phones. The routing is done by simple mangle rules and routing marks and everything works peachy.

My problem is, we used ping tests from outside the network to test the state of the connection. If we ping the cable IP, we get a reply and all is well. However, when we ping the DSL IP, the router replies from the cable IP which obviously screws things up.

How can I get pings to the cable IP reply from the cable, and pings to the DSL IP reply via the DSL?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7195
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Multiple WAN - ping issue

Fri Jun 07, 2013 2:01 pm

Mark incoming connections and in output chain mark routing to ensure that replies goes over the same gateway.
 
FunkyBunny
newbie
Topic Author
Posts: 30
Joined: Wed Jun 13, 2012 10:33 pm

Re: Multiple WAN - ping issue

Fri Jul 05, 2013 8:54 pm

Hate to revive an old thread, but I had trouble doing that and getting it to work, I largely wrote it off, but now I'm having actual issues and can't get it fixed.

What I tried doing was adding the following:

in the mangle rules, I added a new rule on the input chain, with the in interface being the secondary WAN. Action being mark connection with no passthrough.

Another mangle rule on the output chain with just a match on the connection mark from above, and the action being mark routing with no passthrough.


I then made a routing rule with a distance of 1, dst address of 0.0.0.0/0 and routing mark of the mark from above.


With those 3 things in place, I'm still not able to ping the secondary internet, it will still respond out the primary.
 
FunkyBunny
newbie
Topic Author
Posts: 30
Joined: Wed Jun 13, 2012 10:33 pm

Re: Multiple WAN - ping issue

Fri Jul 05, 2013 8:58 pm

holy crap

the second i make a post it started working. I think something may have been goofed in the cache.

In any case, for anyone having a similar problem, it is important that the routing mark take place in the output chain and not prerouting