2 wan x 2 lan help

I’m running two cable modems. I want to use one router 750.

wan 1(cable dynamic ip) ------ > lan1(192.168.11.0/24)
wan 2(cable dynamic ip) ------ > lan2(192.168.12.0/24)

I want to load balance. I tried everything under the sun to load balance and nothing. So i connected the cable modems to there own routers than through the 450 i’m using to load balance. It finally worked.

I’ve found some threads on the topic, one even had a simple script. The 750 pings google.com but when i connect the computer with windows 7 it detects a network but no internet. One thread said the use the PCC script just direct traffic from the proper wan to the lan. I got nothing. I’m at a lost here.


Here is the script i used.

/ip route
add dst-address=0.0.0.0/0 routing-mark=to-wan1 gateway=1.1.1.1 distance=1
add dst-address=0.0.0.0/0 routing-mark=to-wan2 gateway=2.2.2.2 distance=1
add dst-address=0.0.0.0/0 gateway=1.1.1.1 distance=1
add dst-address=0.0.0.0/0 gateway=1.1.1.1 distance=2

/ip firewall nat
add chain=pre-hotspot action=accept dst-address-type=!local hotspot=auth
/ip firewall mangle
add chain=prerouting in-interface=lan1 action=mark-routing new-routing-mark=to-wan1
add chain=prerouting in-interface=lan2 action=mark-routing new-routing-mark=to-wan2
/ip route
add dst-address=0.0.0.0/0 routing-mark=to-wan1 gateway=1.1.1.1 distance=0
add dst-address=0.0.0.0/0 routing-mark=to-wan2 gateway=2.2.2.2 distance=0
add dst-address=0.0.0.0/0 gateway=1.1.1.1 distance=1
add dst-address=0.0.0.0/0 gateway=2.2.2.2 distance=2

fyi - i did change the ips for the proper gateway.

Thanks in advance

http://wiki.mikrotik.com/wiki/Load_Balancing_over_Multiple_Gateways
http://wiki.mikrotik.com/wiki/ECMP_load_balancing_with_masquerade
http://wiki.mikrotik.com/wiki/PCC
http://aacable.wordpress.com/2011/07/27/mikrotik-dual-wan-load-balancing-using-pcc-method-complete-script-by-zaib/

got all those bookmarked. Zyed is the man. I’m at a lost i’ll give it another shot. It took me a week to figure out the router setting didn’t like the cable modem dhcp.


any experience you can share?

Ok after searching on the board i found a thread with the same problem. i had to put one of the modems behind a router first. The problem i’m having now is only 1 wan is working at a time. When is the second wan suppose to kick in?

got it to work. Mangle rules were off.

Used the setting from http://aacable.wordpress.com/2011/08/29/mikrotik-4-wan-load-balancing-using-pcc-with-pppoe-server-complete-script/
with a little editing for my 2 wan setup it worked well.