PPPoE w/ Dynamic IP from ISP PCC problem

Hello, after learning how to get traffic to pass though the router, Im now venturing in to setting up load balancing. right now i have 2 DSL connections w/ PPPoE clients setup on the rb493ah. that seems to be working (i dont know if there is a way to test to see if its actually balancing) but when i pull 1 cable out, my laptop loses all connection to the net untill i plug it back in and unplug the 2nd connection and wait 10sec and plug it back in

here’s the code that i found looking on here

/ ip firewall mangle
add chain=input in-interface=pppoe-out1 action=mark-connection new-connection-mark=wan1_conn
add chain=input in-interface=pppoe-out2 action=mark-connection new-connection-mark=wan2_conn


add chain=output connection-mark=wan1_conn action=mark-routing new-routing-mark=to_wan1 
add chain=output connection-mark=wan2_conn action=mark-routing new-routing-mark=to_wan2

add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/0 \
action=mark-connection new-connection-mark=wan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses:2/1 \
action=mark-connection new-connection-mark=wan2_conn passthrough=yes

add chain=prerouting connection-mark=wan1_conn in-interface=Local action=mark-routing new-routing-mark=to_wan1
add chain=prerouting connection-mark=wan2_conn in-interface=Local action=mark-routing new-routing-mark=to_wan2

/ ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_wan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_wan2 check-gateway=ping


add dst-address=0.0.0.0/0 gateway=pppoe-out1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 distance=2 check-gateway=ping


/ ip firewall nat 
add chain=srcnat out-interface=pppoe-out1 action=masquerade
add chain=srcnat out-interface=pppoe-out2 action=masquerade

export.rsc (16 KB)

Please do not hijack my post with a different question.

this page here is about PCC http://wiki.mikrotik.com/wiki/Manual:PCC
this page is about HotSpots http://wiki.mikrotik.com/wiki/Manual:IP/Hotspot

Also you can look though the fourm here and find posts related to your problem. And start your own thread if needed

Thanks


Edit:
Update: It seems there was a problem with the PPPoE settings on the 2nd DSL line. once i discovered that, I can now disconnect the first DSL line and the connection (after about a 10sec delay((can this be shortened?))) the RB changes to the 2nd DSL line and everything seems to work.

However, this isn’t exactly how I need/what it to work. I would like to be able to utilize both connections at the same time. IE use both lines in a multi-part download. (get ~1.3MBps down instead of just ~610KB/s down) and the same w/ the upload (get 1.5mbps up and not just 768kbps) is that possible?

Thanks

Yes, it is possible but merits further explanation.

First some terminology for the below: a connection is a TCP virtual circuit between two endpoints, a circuit is a line from an ISP.

With PCC one connection will only go across one circuit, and you cannot run the same connection across multiple circuits without either support from the ISP (both circuits must be from the same ISP), or full control over the other side if they are just p2p circuits.

However, multiple connections (more than one download, a download manager that spawns multiple connections, multiple clients etc.) can be spread across the circuits and the more connections you push through the router the more evenly the load will be spread, and that appears to be what you are asking about. With your current configuration that won’t quite work yet, you can get better results by using both-addresses-and-ports instead of both-addresses. I did a write up on the wiki on the differences a while ago: http://wiki.mikrotik.com/wiki/How_PCC_works_(beginner), it should outline why you’re currently seeing no benefit when using a multi-part download manager. In short, both-addresses would choose the same circuit every time the same client contacts the same server. Change the classifier and what you want should be working.

thanks for the tip, I’ll check it out when I’m back at work.. if it helps.. (or gets me going in the right direction) i’ll throw some karma your way!