PPPoE server answering on two different VLANs (or more)

Hi everyone!
I need to configure a PPPoE server answering on two different VLANs (and may be in the future on 3) but I can’t understand how to do that.
The idea is having clients connected via PPPoE on the two VLANs, getting IP of different subnets that will talk togheter doing routing on the VyOS.

Does anybody already did that? Is it doable on VyOS?

Many thanks in advance for your help!

Hi,

If you just want to apply IP addresses of different subnets to PPPoE clients, you can simply apply the IP you want via the local IP address variable or via RADIUS attribute, the IP address is not an issue for PPPoE clients.

set service pppoe-server authentication local-users username test1 static-ip 192.168.10.1
set service pppoe-server authentication local-users username test2 static-ip 192.168.20.1

In case you want to divide your network area into 2 VLANs for some reason. You can use 2 ports on the PPPoE server, each port connects to an Access port of the VLAN you want. I have never deployed VLAN directly from the PPPoE server.

Note: The concept of subnets is almost meaningless with PPPoE connections (clients always go through the server to communicate with each other even if they are on the same subnet, and you can set the clients IP and Gateway to different subnets and they can still communicate). They are only used to route data when connecting to other network sites and devices.