Page 1 of 1

Multiple PPPoE clients to ISP

Posted: Tue Jun 26, 2018 12:31 pm
by nicutdk
Hi,

My ISP offer multiple IPs just with multiple PPPoE user.

So....I have 3 PPPoE users from ISP with on IP on each user.

My problem is when I try to ping to all IPs I have response just from one. I try with change distance default route but not working.

Can anybody help with that ?


Best Regards,

Re: Multiple PPPoE clients to ISP

Posted: Tue Jun 26, 2018 3:49 pm
by Sob
You can find some inspiration here:

https://wiki.mikrotik.com/wiki/Manual:PCC

Ignore the main topic of the article, and just focus on how incoming traffic from each WAN gets own connection mark and how returning traffic gets the right routing mark, based on previously set connection mark.

Re: Multiple PPPoE clients to ISP

Posted: Tue Jun 26, 2018 8:29 pm
by nicutdk
Hi try that.

My problem is PPPoE because I don't hav IP for default gateway

Re: Multiple PPPoE clients to ISP

Posted: Wed Jun 27, 2018 12:22 am
by Sob
It's actually even easier with PPPoE, because it supports gateway=<PPPoE interface>.

Re: Multiple PPPoE clients to ISP

Posted: Wed Jun 27, 2018 1:33 pm
by nicutdk
Hi,

Now problem is router. Unable to work with DNS. When I ping at google.com host not found but when I ping at 8.8.8.8 work.

This is my configuration.

Please can anybody help me ?
/interface bridge
add fast-forward=no name=bridge1-LAN

/interface pppoe-client
add disabled=no interface=ether1 name=PPPoE-1 password=XXX user=User1
add disabled=no interface=ether1 name=PPPoE-2 password=XXX user=User2

/interface bridge port
add bridge=bridge1-LAN interface=ether3
add bridge=bridge1-LAN interface=ether4
add bridge=bridge1-LAN interface=ether5

/ip address
add address=192.168.16.1/22 interface=bridge1-LAN network=192.168.16.0

/ip dhcp-server network
add address=192.168.16.0/22 dns-server=192.168.16.1 gateway=192.168.16.1

/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4


/ip firewall filter
add action=fasttrack-connection chain=forward

/ip firewall mangle
add chain=prerouting in-interface=PPPoE-1
add chain=prerouting in-interface=PPPoE-2
add action=mark-routing chain=prerouting connection-mark=PPPoE-1_conn new-routing-mark=PPPoE-1-wan1 src-address=192.168.16.0/22
add action=mark-routing chain=prerouting connection-mark=PPPoE-2_conn new-routing-mark=PPPoE-2-wan2 src-address=192.168.16.0/22

/ip firewall nat
add action=masquerade chain=srcnat out-interface=PPPoE-1 src-address=192.168.16.0/22
add action=masquerade chain=srcnat out-interface=PPPoE-2 src-address=192.168.16.0/22

/ip route
add check-gateway=ping distance=1 gateway=PPPoE-1 routing-mark=PPPoE-1-wan1
add check-gateway=ping distance=1 gateway=PPPoE-2 routing-mark=PPPoE-2-wan2
add check-gateway=ping distance=1 gateway=PPPoE-1,PPPoE-2

Best Regards,

Re: Multiple PPPoE clients to ISP

Posted: Thu Jun 28, 2018 8:59 am
by chechito

Re: Multiple PPPoE clients to ISP

Posted: Thu Jun 28, 2018 4:40 pm
by nicutdk
Thank You for your answer but it is not for PPPoE.

I read on wiki and I found that:
/ip route
add distance=1 gateway=10.0.0.1%PPPoE-1 routing-mark=WAN1
add distance=1 gateway=10.0.0.1%PPPoE-2 routing-mark=WAN2
Now problem just 1 IP respond at ping from outside.

In log I see:
prerouting: PPPoE-1 out:(unknow 0), src-mac 4c:f9:55:44:55 TCP (ACK,PSH),...........


Regards,