Community discussions

MikroTik App
 
BrainPain
just joined
Topic Author
Posts: 21
Joined: Sun May 17, 2020 10:40 am

PPPoE Server - Bridge with other interface

Sun Nov 07, 2021 5:06 pm

Hi there,

i have the following setup:

Router 1: WAN with Public IP
LAN 192.168.0.1/24

I want to create a PPPoE Server with the following interfaces:
Eth1: Connection to Router 1
Eth2: PPPoE Server

The PPPoE server should give static ip-adresses to the clients. For example client1 192.168.0.101 and should be bridged to eth1 if connected.
pppoe.PNG
Does anyone know, how to configure the mikrotik for such a purpose?
I am struggling with giving routes to clients and how to bridge with another interface.

Thank you for your help
You do not have the required permissions to view the files attached to this post.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19101
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: PPPoE Server - Bridge with other interface

Sun Nov 07, 2021 5:21 pm

Me neither,
Its an easy connection to the primary router via a static IP address.
Just need to set ether1 as a WAN interface and give it an IP address.

The pPPOE server aspect is specific to the router and how it handles PPPOE addressing to clients.
https://help.mikrotik.com/docs/display/ROS/PPPoE

https://www.youtube.com/watch?v=osUseT7zdoQ
 
BrainPain
just joined
Topic Author
Posts: 21
Joined: Sun May 17, 2020 10:40 am

Re: PPPoE Server - Bridge with other interface

Sun Nov 07, 2021 6:35 pm

Its an easy connection to the primary router via a static IP address.
Just need to set ether1 as a WAN interface and give it an IP address.
I really need to assign ether1 of the PPPoE router an ip-address? Just bridging would not work?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19101
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: PPPoE Server - Bridge with other interface

Sun Nov 07, 2021 6:53 pm

Why would you bridge, I dont understand the purpose of doing that.
Thee pppoe server is your router, not the ISPs router??

Caveat, I am no pppoe expert so maybe there is some requirement not aware of?
 
tdw
Forum Guru
Forum Guru
Posts: 1843
Joined: Sat May 05, 2018 11:55 am

Re: PPPoE Server - Bridge with other interface

Sun Nov 07, 2021 7:35 pm

I really need to assign ether1 of the PPPoE router an ip-address? Just bridging would not work?
You cannot bridge PPPoE to another interface as the client-server connection is IP / layer 3, not ethernet / layer 2.

To communicate with Router1 your PPPoE server ether1 requires an IP address, and you can use proxy ARP so the Mikrotik answers ARP requests for any PPPoE client addresses overlapping with the 192.168.0.0/24 subnet.
 
BrainPain
just joined
Topic Author
Posts: 21
Joined: Sun May 17, 2020 10:40 am

Re: PPPoE Server - Bridge with other interface

Sat Nov 13, 2021 9:50 pm

You cannot bridge PPPoE to another interface as the client-server connection is IP / layer 3, not ethernet / layer 2.

To communicate with Router1 your PPPoE server ether1 requires an IP address, and you can use proxy ARP so the Mikrotik answers ARP requests for any PPPoE client addresses overlapping with the 192.168.0.0/24 subnet.
Thank you, proxy-arp was the solution.

My config now looks like the following:
/interface ethernet
set [ find default-name=ether3 ] arp=proxy-arp
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/port
set 0 name=serial0
/ppp profile
add bridge-learning=no dns-server=8.8.8.8 name=TestProfile1 use-compression=no use-encryption=no use-ipv6=no use-mpls=no use-upnp=no
/interface pppoe-server server
add authentication=mschap2 default-profile=TestProfile1 disabled=no interface=ether2 service-name=PPPServer
/ip address
add address=80.80.80.249/28 interface=ether3 network=80.80.80.240
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=80.80.80.41 pref-src="" routing-table=main scope=30 suppress-hw-offload=no target-scope=10
/ppp secret
add local-address=80.80.80.249 name=User1 profile=TestProfile1 remote-address=80.80.80.246 service=pppoe
Encryption really slows down the hEX S. Any recommendation in tuning the configuration?
I am not sure what to set at "local-address" in "/ppp secret", but it is working. I am insecure, because it is the same ip at ether3.
 
tdw
Forum Guru
Forum Guru
Posts: 1843
Joined: Sat May 05, 2018 11:55 am

Re: PPPoE Server - Bridge with other interface

Sat Nov 13, 2021 11:03 pm

Setting the local interface to the same address as that on any other interface is fine. Encryption on PPPoE is probably unnecessary if you are extending internet access to others as the WAN link to the internet isn't secure, clients will be using TLS to provide end-to-end encryption.

Who is online

Users browsing this forum: No registered users and 55 guests