Community discussions

MikroTik App
 
whoknew
Member Candidate
Member Candidate
Topic Author
Posts: 153
Joined: Wed Oct 13, 2010 8:51 pm

Routing 2 WANs

Fri Mar 23, 2012 4:58 am

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?
 
vik1988
Member Candidate
Member Candidate
Posts: 235
Joined: Sun Oct 25, 2009 2:18 pm
Location: India

Re: Routing 2 WANs

Fri Mar 23, 2012 12:16 pm

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.
 
whoknew
Member Candidate
Member Candidate
Topic Author
Posts: 153
Joined: Wed Oct 13, 2010 8:51 pm

Re: Routing 2 WANs

Thu Apr 05, 2012 3:29 pm

http://wiki.mikrotik.com/wiki/Load_Bala ... e_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?
 
vik1988
Member Candidate
Member Candidate
Posts: 235
Joined: Sun Oct 25, 2009 2:18 pm
Location: India

Re: Routing 2 WANs

Thu Apr 05, 2012 3:34 pm

add one more default route.....towards any gateway
 
whoknew
Member Candidate
Member Candidate
Topic Author
Posts: 153
Joined: Wed Oct 13, 2010 8:51 pm

Re: Routing 2 WANs

Thu Apr 05, 2012 4:33 pm

so add another ip route 0.0.0.0/0 towards the gateway I want to use?
 
vik1988
Member Candidate
Member Candidate
Posts: 235
Joined: Sun Oct 25, 2009 2:18 pm
Location: India

Re: Routing 2 WANs

Sat Apr 07, 2012 9:31 am

so add another ip route 0.0.0.0/0 towards the gateway I want to use?
Yes for reverse traffic.
 
User avatar
acim
Member
Member
Posts: 415
Joined: Mon Sep 12, 2005 12:26 am
Location: Serbia
Contact:

Re: Routing 2 WANs

Sun Apr 08, 2012 3:02 am

 
Zapnologica
Long time Member
Long time Member
Posts: 594
Joined: Fri Sep 25, 2009 8:15 pm
Location: South frica

Re: Routing 2 WANs

Wed May 14, 2014 11:52 pm

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.
 
andjelok
just joined
Posts: 9
Joined: Sat Mar 22, 2008 2:20 am

Re: Routing 2 WANs

Sat May 31, 2014 3:12 am

I have the same problem as the maroon of this post http://blog.butchevans.com/2008/09/mikr ... n-example/ if anyone has a solution for this problem. The primary ISP for another ISP and the other for good
 
mikez
just joined
Posts: 3
Joined: Fri Feb 21, 2014 8:54 pm

Re: Routing 2 WANs

Fri Nov 07, 2014 10:37 am

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.

Who is online

Users browsing this forum: Bing [Bot], GoogleOther [Bot] and 126 guests