Community discussions

MikroTik App
 
w2jo
newbie
Topic Author
Posts: 32
Joined: Fri May 28, 2004 5:40 pm

Here is how to make the MT load balance across multiple WANS

Sun Feb 05, 2006 1:50 am

See http://www.mikrotik.com/docs/ros/2.8/ap ... t#11.2.4.3

I am going to try it. Anyone have any advice?
thanks.
 
kiwi-chris
newbie
Posts: 31
Joined: Fri Nov 04, 2005 1:14 am

Sun Feb 05, 2006 3:42 am

Yip, I use it over 3x ADSL lines. Works great but if one one ADSL line falls over, the router still sees the modem and keeps sending info to it even tho its not actually connected. If the modem fails or is powered off then the ping command will pick it up and send the data out the other gateways.

I dont know if it can be set to ping the gateway but also ping an address beyond that gateway to ensure it is working 100% If anyone knows ??? This would be a great feature.

I use winbox to configure as a bit easier that just text.
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Sun Feb 05, 2006 6:20 am

Already there ... gateways have the ping option, and netwatch can be used to enhance that.

Sam
 
kiwi-chris
newbie
Posts: 31
Joined: Fri Nov 04, 2005 1:14 am

Sun Feb 05, 2006 6:37 am

Thanks, will look more at the netwatch function.
 
kiwi-chris
newbie
Posts: 31
Joined: Fri Nov 04, 2005 1:14 am

Sun Feb 05, 2006 7:42 am

ok so how do you set it up for multiple gateways while load balancing and mangle rules for individual users doing VPNs etc?
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Sun Feb 05, 2006 8:00 pm

If netwatch script disables a route the rest should be handled by the routing protocol ... it removes the route from the table (disables) and the routing table adjusts itself causing load balancing to use only available routes. Post the specifics if you need more help.

Sam
 
kiwi-chris
newbie
Posts: 31
Joined: Fri Nov 04, 2005 1:14 am

Thu Feb 09, 2006 11:10 am

Three gateways 172.19.0.8 , 172.19.0.9 , 172.19.0.10 (gw1, gw2, gw3)

Some users have to VPN to work networks and they need to stay on one gateway and not load balance over all there, so I have prerouting mangle rules to route them through just one gateway.

I have it set it to ping the gateway. How would I set it to ping an IP beyond a gateway to ensure the ADSL is working? Believe it or not I am just 50 metres from the exchange but the ADSL falls of quite often and sometimes does not connect correctly, another story

I put an IP 203.109.252.42 in the netwatch and tells me that it is up.
Where to from here?

thanks
chris
 
Eastel
just joined
Posts: 3
Joined: Fri Feb 11, 2005 6:49 pm

Mon Feb 13, 2006 3:05 am

i need help about load balance with 2 interfaces wans
the fail over work great, but the traffic work over one interface only (internet1)
the interface local use pppoe server and use ip pool x.x.x.0/24
the configurate is
mk ver 2.9.7

ip route> print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf
# DST-ADDRESS PREFSRC G GATEWAY DISTANCE INTERFACE ROUTING MARK

85 A S 0.0.0.0/0 r x.x.x.x 1 internet1

86 A S 0.0.0.0/0 r x.x.x.x 1 internet1 load balance
r y.y.y.y internet2

87 S 0.0.0.0/0 r y.y.y.y 1 internet2


ip firewall mangle> prin
Flags: X - disabled, I - invalid, D - dynamic
22 chain=output protocol=tcp dst-port=80 action=mark-routing new-routing-mark=load balance passthrough=yes

23 chain=input protocol=tcp src-port=80 action=mark-routing new-routing-mark=load balance passthrough=yes

ip firewall nat> print
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; DEJAR PASAR TODO
chain=srcnat src-address=x.x.x.0/24 action=accept

3 ;;; Proxy
chain=dstnat src-address=x.x.x.0/24 protocol=tcp dst-port=80 action=redirect to-ports=8080

ip pool> print
# NAME RANGES
1 telecom 1subnet x.x.x.21-x.x.x.253

thanks
sergio

Who is online

Users browsing this forum: No registered users and 61 guests