OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: bulky_turtle on June 11, 2023, 12:26:47 PM

Title: Can't get PPPoE with tagged VLAN to work
Post by: bulky_turtle on June 11, 2023, 12:26:47 PM
Hey,
I'm trying to replace the router that was shipped by my service provider with a Protecli box. I installed OPNSense on it and got most things to work except the PPPoE connection. I looked at the current router config and it uses a tagged VLAN.
I tried to set it up with the same config as the current router which uses a VLAN tag 2 and also found some instructions online but I can't get it to work.

I attached my current config for the PPPoE connection.

Looking at the log in Point-to-Point -> Log file I see


2023-06-11T16:36:37 Informational   ppp [wan_link0] PPPoE: Connecting to ''
2023-06-11T16:36:37 Informational   ppp [wan_link0] Link: reconnection attempt 12   
2023-06-11T16:36:36 Informational   ppp [wan_link0] Link: reconnection attempt 12 in 1 seconds 
2023-06-11T16:36:36 Informational   ppp [wan_link0] LCP: Down event
2023-06-11T16:36:36 Informational   ppp [wan_link0] Link: DOWN event   
2023-06-11T16:36:36 Informational   ppp [wan_link0] PPPoE connection timeout after 9 seconds   
2023-06-11T16:36:27 Informational   ppp [wan_link0] PPPoE: Connecting to ''
2023-06-11T16:36:27 Informational   ppp [wan_link0] Link: reconnection attempt 11   
2023-06-11T16:36:23 Informational   ppp [wan_link0] Link: reconnection attempt 11 in 4 seconds 
2023-06-11T16:36:23 Informational   ppp [wan_link0] LCP: Down event
2023-06-11T16:36:23 Informational   ppp [wan_link0] Link: DOWN event   
2023-06-11T16:36:23 Informational   ppp [wan_link0] PPPoE connection timeout after 9 seconds   
2023-06-11T16:36:14 Informational   ppp [wan_link0] PPPoE: Connecting to ''
2023-06-11T16:36:14 Informational   ppp [wan_link0] Link: reconnection attempt 10   
2023-06-11T16:36:10 Informational   ppp [wan_link0] Link: reconnection attempt 10 in 4 seconds 
2023-06-11T16:36:10 Informational   ppp [wan_link0] LCP: Down event
2023-06-11T16:36:10 Informational   ppp [wan_link0] Link: DOWN event   
2023-06-11T16:36:10 Informational   ppp [wan_link0] PPPoE connection timeout after 9 seconds   
2023-06-11T16:36:01 Informational   ppp [wan_link0] PPPoE: Connecting to ''
2023-06-11T16:36:01 Informational   ppp [wan_link0] Link: reconnection attempt 9


Does anyone have an idea what could be wrong?

Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: frank3523 on June 11, 2023, 05:59:12 PM
MTU Size missing
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: chemlud on June 11, 2023, 09:27:58 PM
What is your modem and how have you configured it? The old router in modem mode?
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: bulky_turtle on June 12, 2023, 05:21:28 AM
The modem is a NBN modem from TPG (AU).
I attached the config of the current router as well
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: chemlud on June 12, 2023, 11:25:22 AM
In your current router ipv6 is disabled, I would keep that setting for WAN in opnsense.

What does the modem show on the status page? Do you have a link to the provider?
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: bulky_turtle on June 13, 2023, 12:33:20 PM
This is info page of the provider https://support.tpg.com.au/tpg-broadband-settings-list I'm in the FTTC category

Not sure what you mean by modem status page...
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: chemlud on June 13, 2023, 02:28:03 PM
You should log in to your modem an see if the link to your provider is established. PPPoE can only work if the underlying link is up and running.
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: bulky_turtle on June 13, 2023, 02:58:28 PM
When I use the default router and connect that one with the modem then everything works. Wouldn't that imply that the connection from modem to ISP is fine?
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: chemlud on June 13, 2023, 03:04:30 PM
...have never seen a provider delivering a modem plus a router, usually both are one...
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: Patrick M. Hausen on June 13, 2023, 07:08:15 PM
Quote from: bulky_turtle on June 13, 2023, 02:58:28 PM
When I use the default router and connect that one with the modem then everything works. Wouldn't that imply that the connection from modem to ISP is fine?
Did you ask them if they need to configure the specific MAC address of the device connected to the modem on their side? Some ISPs do that.
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: pouakai on June 14, 2023, 05:53:52 AM
Your screenshots are mostly identical to my setup which uses PPPOE on VLAN 10.

The differences are MTU and MAC address.  I have an MTU of 1500.  Should be 1492, but the ISP (Spark NZ) recommends the use of 1500.

I have not got a MAC address on the WAN page.  It's blank. Looking at the help notes for this page, I wonder if you should have it.  It says 'use with care'.  I see the MAC number then appears on the PPPOE page of your screenshot for the VLAN.  Again, I only have the VLAN given.   
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: bulky_turtle on June 14, 2023, 02:01:04 PM
Quote from: chemlud on June 13, 2023, 03:04:30 PM
...have never seen a provider delivering a modem plus a router, usually both are one...
Ahh right, I misunderstood, yes the modem is on the router (there is a second box for NBN but that is not what you meant). And yes the PPPoE connection from the modem/router works fine when plugged in

Quote from: pouakai on June 14, 2023, 05:53:52 AM
Your screenshots are mostly identical to my setup which uses PPPOE on VLAN 10.

The differences are MTU and MAC address.  I have an MTU of 1500.  Should be 1492, but the ISP (Spark NZ) recommends the use of 1500.

I have not got a MAC address on the WAN page.  It's blank. Looking at the help notes for this page, I wonder if you should have it.  It says 'use with care'.  I see the MAC number then appears on the PPPOE page of your screenshot for the VLAN.  Again, I only have the VLAN given.   
I tried to change the MTU to 1500, 1482 and 1480 (that's the one in the current modem) and remove the MAC address with no luck

Looking at Lobby -> Interfaces -> WAN it has the up arrow but nothing else is displayed compared to the LAN and Wifi interface.

Do I have to configure a Gateway under System -> Gateways?
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: user_with_name on June 15, 2023, 07:45:49 PM
I previously had a situation where both modem and Opnsense were tagged with PPPoE vlan 10. This obviously does not work. I had to then pass though PPPoE from modem to Opnsense and set vlan 10 in Opnsense. It worked.

So, can you please clarify if vlan2 is setup only in Opnsense on Protecli box and not on modem ?
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: bulky_turtle on June 16, 2023, 05:54:57 AM
I have completely removed the modem and plugged in the protectli box, so there shouldn't be any interference
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: Patrick M. Hausen on June 16, 2023, 07:16:52 AM
You cannot use a DSL or cable line without a modem. If you replace a router with integrated modem with an OPNsense box you need to get a separate modem or - if possible - set the router to modem mode and use that.
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: bulky_turtle on June 17, 2023, 01:42:51 AM
Ahh right okay then that explains the problem.
Apologies for the confusion and thanks for the help everyone
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: woodgrain on October 01, 2023, 07:00:13 AM
Did you ever get this working? I'm in exactly the same position as you.

I saw this post, but was still unable to get this to work:
https://forum.opnsense.org/index.php?topic=16337.0

Really would like to ditch the TPG router all together and PPPoE direct from OpnSense.
Title: Re: Can't get PPPoE with tagged VLAN to work
Post by: proctor on October 23, 2023, 12:21:56 PM
I struggled with that yesterday and it turned out, that my VDSL provider doesn't use VLAN.
So be sure you really need it.