Community discussions

MikroTik App
 
4920441
just joined
Topic Author
Posts: 21
Joined: Wed Aug 28, 2013 6:03 pm

3 WAN via pppoe to 3 internal Networks

Sat Sep 21, 2013 12:16 am

Hi here.

I got a small Problem here.

Three pppoe adsl connections to my ISP. I set up every client on each interface (eth7, eth8, eth9) with the
apprpiate username/password and they connect fine.

There are three pppoe-Servers, where the internal clients connect to - each has an own non.overlapping /24 network

My plan was, Internal pppoe group 1 should be NATed to external pppoe1, Internal Group 2 should be NATed to external
pppoe2 and so with number 3 as well.

If I masquerade InternalPPPoEServer-IPPool 1, 2 and 3 to external pppoe-Client 1 Everything works
If I masquerade InternalPPPoEServer-IPPool 1, 2 and 3 to external pppoe-Client 2 Everything works
If I masquerade InternalPPPoEServer-IPPool 1, 2 and 3 to external pppoe-Client 3 Everything works

But If I masquerade Internal PPPoEServer-IPPool 1 to external pppoe-Client 1(to ISP)
AND
If I masquerade Internal PPPoEServer-IPPool2 to external-pppoe Client 2 (to ISP)
AND
If I masquerade Internal PPPoEServer-IPPool3 to external-pppoe Client 3 (to ISP)

To get the 3 IP Pools distributet each on one WAN Line, only the first conneced works - all others don't....

Whats obvious is, that I get different IP Adresses from ths ISPs PPPoE Server for my client
BUT all PPPoE Endpoint IPs are exactly the same...
I think that's the main Problem....

What can I do to solve this problem?

I didn't want to do any more "complicated" load-balancing, though, because I think in this combination it shoul
balance really well...

Is there any way to achive that constellation working?


Thanks a lot!

Cheers,

4920441
 
4920441
just joined
Topic Author
Posts: 21
Joined: Wed Aug 28, 2013 6:03 pm

Re: 3 WAN via pppoe to 3 internal Networks

Sun Sep 22, 2013 11:45 am

Hey....

I have still no idea how to make this work. But I think "mangle"'ing would be something worth to try, even if I don't know it that would work
because of the same IP Endpoints on the other side of the pppoe tunnel, as it it the same MAC Address as well on the other side.

What can I do? (No, MLPPPoE is unsupported by the remote endpoint :-()


(I smeared the identification parts out, but they are absolutely the same, the only difference is the local ppp Adress....
dsl1.png
dsl2.png

In this wiki article, a similar thing is described http://wiki.mikrotik.com/wiki/Manual:Lo ... bnet_links
but with a main differnce: the remote Gateway is fixed/statically assigned...
I am pretty sure my gateway will be changend after the next reconnect, maybe after the reconnect in two weeks or so... but it will change
any time soon - then, maybe I get to identical or to different endpoints... Nobody knows, its quiet random.

That solution might work, if I make the GW IP as a variable which is filled with a new value after reconnect... or am I on the wrong way?

Cheers,
You do not have the required permissions to view the files attached to this post.
 
4920441
just joined
Topic Author
Posts: 21
Joined: Wed Aug 28, 2013 6:03 pm

Re: 3 WAN via pppoe to 3 internal Networks

Tue Sep 24, 2013 5:46 pm

Hi,

I am a little bit disappointed of the Mikrotik support...:-( Maybe I should be more patient, but I asked a question on Friday - the same as above mentioned - and no reply at all... only
a reply from the ticket system.

Did I forget to put some special informations into my request? Or am I too lazy that I don't see an obvious problem, or an obvious solution the the given problem?

Nevertheless, if so, they could tell me...:-/

My Workaround will be configuring the two additional modems as a router, giving them two sepearte networks - from the point of my mikrotek's view, everything ist "different" enough to
route/masquerade/NAT/PAT properly to the different gateways...

But I thought there would be a much more elegant way.

Cheers,
 
User avatar
asaleh75
Trainer
Trainer
Posts: 193
Joined: Thu Nov 17, 2011 2:51 pm
Location: Dhaka, Bangladesh
Contact:

Re: 3 WAN via pppoe to 3 internal Networks

Tue Sep 24, 2013 7:09 pm

Hi,
Please follow this configuration. I think it will help you
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out1
add action=masquerade chain=srcnat out-interface=pppoe-out2
add action=masquerade chain=srcnat out-interface=pppoe-out3


/ip firewall mangle
add action=mark-connection chain=prerouting new-connection-mark=Pool1_conn src-address=192.168.1.0/24
add action=mark-connection chain=prerouting new-connection-mark=Pool2_conn src-address=192.168.2.0/24
add action=mark-connection chain=prerouting new-connection-mark=Pool3_conn src-address=192.168.3.0/24
add action=mark-routing chain=prerouting connection-mark=Pool1_conn new-routing-mark=to_pppoe1
add action=mark-routing chain=prerouting connection-mark=Pool2_conn new-routing-mark=to_pppoe2
add action=mark-routing chain=prerouting connection-mark=Pool3_conn new-routing-mark=to_pppoe3

/ip route
add distance=1 gateway=pppoe-out1 routing-mark=to_pppoe1
add distance=1 gateway=pppoe-out2 routing-mark=to_pppoe2
add distance=1 gateway=pppoe-out3 routing-mark=to_pppoe3
Here 192.168.1.0/24 is ippool 1,192.168.2.0/24 is ippool 2,192.168.3.0/24 is ippool 3.
 
4920441
just joined
Topic Author
Posts: 21
Joined: Wed Aug 28, 2013 6:03 pm

Re: 3 WAN via pppoe to 3 internal Networks

Sun Sep 29, 2013 11:48 am

Thanks a lot! I really appreciate that! :-)

I'll try it out and tell if it had worked this way.

Cheers!

Uli