Routing 2 WANs

1 WAN for data and another for a SIP trunk.

Whats the best way to route both? I have read the wiki on the ECMP load balancing (I don’t want to load balance, just route all voip traffic to SIP trunk and route data through the cable modem), also read the Load Balancing over Multiple Gateways wiki. Any recommendations from someone who has done it?

For eg.

/ip firewall mangle add chain=prerouting protocol=udp dst-port=5060 action=mark-routing new-routing-mark=sip

/ip route add gateway=SIPTRUNK routing-mark=sip
/ip route add gateway=WAN

You need to create a rule for marking of specific routing traffic. Here i have used protocol udp and sip port 5060 for understanding. you can change it accordingly.

http://wiki.mikrotik.com/wiki/Load_Balancing_over_Multiple_Gateways

I was using this, it works well for what I have setup. Only problem I have, I can’t access the RB450G via winbox offsite. Any thoughts?

add one more default route…towards any gateway

so add another ip route 0.0.0.0/0 towards the gateway I want to use?

Yes for reverse traffic.

You need policy routing:

http://blog.butchevans.com/2008/09/mikrotik-policy-routing-implementation-example/

I am looking to do the exact same thing,

I am gonna give it a try and see how it goes. Must admit I expected it to be slightly more complex than a 3 liner.

I have the same problem as the maroon of this post http://blog.butchevans.com/2008/09/mikrotik-policy-routing-implementation-example/ if anyone has a solution for this problem. The primary ISP for another ISP and the other for good

you have to keep RTP in mind as that is the real reason to send traffic over an alternative WAN - to dedicate a connection to improve voice quality.

with that in mind you may have to add a fourth line to that config to include UDP ranges of 10000:20000, or whatever your provider’s RTP port range happens to be.