Community discussions

MikroTik App
 
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Sun Jun 21, 2009 6:15 pm

Route clients to a 5th & 6th DSL line using 2 RB750s?

Sun Mar 04, 2012 11:03 pm

We currently have 4 dsl lines, each line serves 8 clients.
we are marking clients per ip, so the mangle rule for client group 1 looks like this:
  ;;; client group 1
     chain=prerouting action=mark-routing new-routing-mark=client-group-1 
     passthrough=no src-address=192.168.1.0/24 
Then we route it out over the pppoe-out connection made over DSL 1
(DSL router is in Bridge Mode)

The Route looks like this:
 dst-address=0.0.0.0/0 gateway=pppoe-out1
        gateway-status=pppoe-out1 reachable distance=1 scope=30 target-scope=10 
        routing-mark=client-group-1
OK, everything is working fine

Now, i have 8 more clients
, i need to get another DSL line and route them over to that line.
I suppose i have to get another RB750, right. But how do i connect it together so that it can recognise the "routing mark" from the first router?
The PPPOE connection coming from the client will be accepted on ether1 of the 1st RB750, and client will be assigned ip address: 192.168.5.1 and marked as "client group 5" - but how will the second router recognise this and route it over to DSL 5?
Please have a look at my drawind.
You do not have the required permissions to view the files attached to this post.
 
dlopez
newbie
Posts: 28
Joined: Mon Feb 06, 2012 4:52 pm
Location: Canary Island

Re: Route clients to a 5th & 6th DSL line using 2 RB750s?

Tue Mar 06, 2012 12:30 am

Won't it be easier if you setup you DSL routers with NAT and DMZ to the MT, with a Switch in the middle, and then using Connection and Routing Marks in the Mangle table, choose through what DSL would be your client's traffic go ?

Something like :

DSL1 (172.16.0.1/24) ------\
                           |
DSL2 (172.16.1.1/24)-------|                             172.16.0.2/24
                           |                             172.16.1.2/24
DSL3 (172.16.2.1/24)-------|                             172.16.2.2/24
                           | ----------> Switch -----------> RB750 <------ PPPoE Clients
DSL4 (172.16.3.1/24)-------|                             172.16.3.2/24
                           |                             172.16.4.2/24
DSL5 (172.16.4.1/24)-------|                             172.16.5.2/24
                           |
DSL6 (172.16.5.1/24)------/

Anyhow, I think that would be an option if you don't want to mount 2 RB750. I requires a little of work but I think its worth it.
 
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Sun Jun 21, 2009 6:15 pm

Re: Route clients to a 5th & 6th DSL line using 2 RB750s?

Tue Mar 06, 2012 2:52 pm

currently i'm doing a pppoe-out to each of the WAN links (my DSL routers)
and i'm using the pppoe-out as the gateway.
do you have any example config that i would use for NAT-DMZ between the routers and mikrotik?
would the routers have to be i Router mode (ISP username nad pw programmed into the router) or will the mikrotik still be able to make the pppoe-out connection thru a specific DSL line?
also if its easier, i dont mind mounting two rb750s -
 
vlad8
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Wed Feb 09, 2011 3:42 pm

Re: Route clients to a 5th & 6th DSL line using 2 RB750s?

Tue Mar 06, 2012 5:09 pm

Buy a RB1100 or RB1200 so you have much interface.
I also think that rb750 couldn't run as reliable main router, pppoe concentrator and dsl load balancer
 
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Sun Jun 21, 2009 6:15 pm

Re: Route clients to a 5th & 6th DSL line using 2 RB750s?

Tue Mar 06, 2012 11:06 pm

Buy a RB1100 or RB1200 so you have much interface.
I also think that rb750 couldn't run as reliable main router, pppoe concentrator and dsl load balancer
ok, i buy rb1100, then what do i do when i need to add a 11th and 12th DSL line? and what if i need to add 20 more dsl lines? how would i join the two RB1100 togeither?
 
vlad8
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Wed Feb 09, 2011 3:42 pm

Re: Route clients to a 5th & 6th DSL line using 2 RB750s?

Thu Mar 08, 2012 6:57 pm

looking at the pictures it seems you have adsl routers with pppoe clients that forward all traffic to the rb750 and between rb750 and routers you have a switch. If this is right you only need 2 port on rb: 1 for clients and 1 to the switch. I'll setup the routers on the same subnet (ex. 172.16.0.0/24).
 
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Sun Jun 21, 2009 6:15 pm

Re: Route clients to a 5th & 6th DSL line using 2 RB750s?

Thu Mar 08, 2012 8:40 pm

looking at the pictures it seems you have adsl routers with pppoe clients that forward all traffic to the rb750 and between rb750 and routers you have a switch. If this is right you only need 2 port on rb: 1 for clients and 1 to the switch. I'll setup the routers on the same subnet (ex. 172.16.0.0/24).
not exactly
here are some more details
 /interface> print detail
Flags: D - dynamic, X - disabled, R - running, S - slave 
 0  R  name="ether1" type="ether" mtu=1500 l2mtu=1600 max-l2mtu=4076 

 1  R  name="ether2" type="ether" mtu=1500 l2mtu=1598 max-l2mtu=2028 

 2  R  name="ether3" type="ether" mtu=1500 l2mtu=1598 max-l2mtu=2028 

 3  R  name="ether4" type="ether" mtu=1500 l2mtu=1598 max-l2mtu=2028 

 4  R  name="ether5" type="ether" mtu=1500 l2mtu=1598 max-l2mtu=2028 
here is my pppoe outs dialing over the dsl routers
 5  R  ;;; ISP 1  0 thru ether2
       name="1 lnet" type="pppoe-out" mtu=1480 

 6  R  ;;; ISP 1  0 thru ether3
       name="2 gnet" type="pppoe-out" mtu=1480 

 7  R  ;;; ISP 1  0 thru ether4
       name="3 bnet" type="pppoe-out" mtu=1480 

 8  R  ;;; ISP 1  0 thru ether5
       name="4 xnet" type="pppoe-out" mtu=1480 

 9  X  name="pppoe-out1" type="pppoe-out" 
here are some of my clients dialing in
10 DR  name="<pppoe-client1@mynet>" type="pppoe-in" mtu=1480 

11 DR  name="<pppoe-client2@mynet>" type="pppoe-in" mtu=1480 

12 DR  name="<pppoe-client3@mynet>" type="pppoe-in" mtu=1480 

About the Routes
[admin@RB750] > 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=2 lnet 
        gateway-status=2 lnet reachable distance=1 scope=30 
        target-scope=10 routing-mark=lnet 

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

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