Two Gateways failover

I used the example over at http://wiki.mikrotik.com/wiki/Two_gateways_failover to have two gateways and failover. It works! The thing is, I’d like to keep the failover, but I would like to route VoIP traffic down the secondary WAN link. The problem is, that the secondary link is always inactive in IP-Routes. So even from the router itself, I can’t ping from that interface using the appropriate src-address.

Is there a way I can keep some failover and redundancy, but still allow select traffic down the non-active link?

In firewall mangle you can marking your voip traffic based on src address or port number , DSCP value, what ever and to that traffic give a routing mark, e.g. routing mark=VOIP. Then in ip->routes create defult route 0.0.0.0/0, routing mark=VOIP.

p.s. when creating mangle be sure that rule which is marking the voip traffic is on the top, also passthrough option put NO (dislelect the checkbox)

Hi,

I want something similar. I have three subnets connecting to the internet through 2 DSL Lines - PPPoE client interfaces using mangle and static routing rules as described here: http://wiki.mikrotik.com/wiki/Load_Balancing_over_Multiple_Gateways
My setup is as follow:
192.168.1.0 → PPPoE Client Interface 1
192.168.2.0 → PPPoE Client Interface 1
192.168.3.0 → PPPoE Client Interface 2

I want to keep my settings and add the ability for failover, when a PPPoE Client Interface is down all internet traffic will be routed through the other interface.
Any help?

if your traffic is marked with routing mark e.g. WAN 1 (subnets 192.168.1.0/24, 192.168.2.0/24), and you have default route which has routing mark WAN1 which has exit over pppoe1 and WAN1 is down, your marked traffic will go outiside automatically through some other default route. Rule says if there is no route for your marked packet then use the most accurate route (even if it doesnt have routing mark)

If you have regular traffic without routing mark you can put mulitple default rutes, the route with the lower metric is preffered