OPNsense Forum

English Forums => General Discussion => Topic started by: Marinoz on December 13, 2023, 05:43:34 PM

Title: pppoe vlan tagging help
Post by: Marinoz on December 13, 2023, 05:43:34 PM
Lately, ive been trying to setup a opnsense but i can not. My isp uses pppoe i have the (password and passname) and he uses vlan tagging too. I am currently having a lot of trouble trying to set it up because of the tagging. Can someone help? tag 401 and i have only two ports available wan and lan
Title: Re: pppoe vlan tagging help
Post by: Splodge on December 13, 2023, 10:45:46 PM
Hi

First you need to set up the vlan tagged port.
Go to Interfaces, Other Types, VLAN
Press the red + on the right to add a new vlan

device will be vlan0.401
parent is the physical port linked to your ISP
vlan tag is 401

then save & apply

next you need to add the vlan tagged interface to the pppoe config

So Interfaces, Point to Point, Devices
Add the pppoe details, the link interface will be vlan0.401 (from above)

Finally, use the Interfaces, Assignments menu to set the interface for WAN to pppoe0 (or whatever your pppoe interface was called from above)

Should be all you need :)

Title: Re: pppoe vlan tagging help
Post by: Marinoz on December 14, 2023, 01:56:05 PM
My isps router configuration says it's has a Mac address and mtu do I copy these two too?
Title: Re: pppoe vlan tagging help
Post by: Splodge on December 14, 2023, 11:48:01 PM
That's going to be ISP specific.

My ISP (UK CityFibre) doesn't need MAC and MTU is worked out by OPNsense itself.
I would try without and if no luck, try adding them...
Title: Re: pppoe vlan tagging help
Post by: Marinoz on December 15, 2023, 06:55:25 AM
BTW if I want to connect my isp routers as wlan how do I do it? Put trouter in bridge mode and just connect it to lan?
Title: Re: pppoe vlan tagging help
Post by: cookiemonster on December 15, 2023, 03:14:03 PM
correct. Normally called in "AP" mode. Different vendors/firmwares have different way to putting them in that mode. The important part is that it only broadcast an SSD (or more) for clients to connect but doesn't do DHCP or any router function. All requests need to be passed to OPN.
Title: Re: pppoe vlan tagging help
Post by: iMx on December 15, 2023, 05:45:10 PM
Just throwing it out there:

Some routers/ISPs consider 'Bridged Mode' as 'Modem mode' ... where it would disable absolutely everything on the router, wifi, often various LAN ports, the lot.  Which wouldn't be what you want.

You could technically leave it in 'router' mode and connect to a LAN port, just makes sure DHCP on the LAN side is disabled.  Then making sure to avoid IP conflicts with the 'router' and other devices.
Title: Re: pppoe vlan tagging help
Post by: Marinoz on December 15, 2023, 07:48:48 PM
But then the routing won't be done by the opnsense will it? Or the dhcp will overwrite the routers rules? Well I prefer the bridge mode and if it doesn't work I will see
Title: Re: pppoe vlan tagging help
Post by: Marinoz on December 16, 2023, 06:36:07 PM
Quote from: iMx on December 15, 2023, 05:45:10 PM
Just throwing it out there:

Some routers/ISPs consider 'Bridged Mode' as 'Modem mode' ... where it would disable absolutely everything on the router, wifi, often various LAN ports, the lot.  Which wouldn't be what you want.

You could technically leave it in 'router' mode and connect to a LAN port, just makes sure DHCP on the LAN side is disabled.  Then making sure to avoid IP conflicts with the 'router' and other devices.

Yeah I think it won't work for telephony if in bridge mode I need to leave it on pppoe for some reason(I found this info in a greek forum about the router I haven't tried yet)