Community discussions

MikroTik App
 
marcelocbf
newbie
Topic Author
Posts: 35
Joined: Sat Jun 09, 2007 2:31 am

Load Balancing / Route Selection not recovering ...

Thu Oct 07, 2010 6:04 am

Hi, I set up some routing rules to route my voip traffic through 2 ADSL lines. Everything works fine, until something happens with the connection. If there is something wrong with the PPPoE-client (ADSL) connection the traffic goes again to the default route (OK), but as soon as the ADSL connection comes back live, the voip traffic gets stuck and does not go through the ADSL line nor the default route. Can somebody please take a look in my config and tell me what I am doing wrong, or how I can improve to make it recover smooth ?
[marcelo@cmi.bra] /ip firewall mangle> print detail
Flags: X - disabled, I - invalid, D - dynamic
 0   chain=prerouting action=mark-routing new-routing-mark=voip_1 passthrough=no protocol=udp src-address=192.168.1.50
     dst-address-list=al_VOIP_SERVERS dst-port=5060-5061,10000-20000

 1   chain=prerouting action=mark-routing new-routing-mark=voip_2 passthrough=no protocol=udp src-address=192.168.1.60
     dst-address-list=al_VOIP_SERVERS dst-port=5060-5061,10000-20000
[marcelo@cmi.bra] /ip route> print detail
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
 0 A S  dst-address=0.0.0.0/0 gateway=PPPoE_Oi_1 gateway-status=PPPoE_Oi_1 reachable distance=1 scope=30
        target-scope=10 routing-mark=voip_1

 1 A S  dst-address=0.0.0.0/0 gateway=PPPoE_Oi_2 gateway-status=PPPoE_Oi_2 reachable distance=1 scope=30
        target-scope=10 routing-mark=voip_2

 2 A S  dst-address=0.0.0.0/0 gateway=10.0.111.1 gateway-status=10.0.111.1 reachable Wan_1 distance=1 scope=30
        target-scope=10
Thanks guys,
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: Load Balancing / Route Selection not recovering ...

Thu Oct 07, 2010 6:47 am

its most likely the registration on the SIP server remembering your previous IP. Ive ran into this many times. Next time it happens look at the SIP packets and you will probably see the SIP server replying to the old IP address... a reregistration doesnt seem to override the previous one like you think it would.
 
marcelocbf
newbie
Topic Author
Posts: 35
Joined: Sat Jun 09, 2007 2:31 am

Re: Load Balancing / Route Selection not recovering ...

Thu Oct 07, 2010 7:53 am

Thanks my friend for the reply,

But what is strange is that if that is the case, it should not work when the ADSL line stops working ... right ?

ADSL Line UP -> phone registered through ADSL line
ADSL Line DOWN -> phone registered through Wireless link
ADSL Line UP -> phone unregistered

Did you find a solution in your case ? In my case, I have to reboot the router ... rebooting it, everything goes back to normal ... That's why I think something gets stuck in the router.