Can't get PPPoE with tagged VLAN to work

Started by bulky_turtle, June 11, 2023, 12:26:47 PM

Previous topic - Next topic
June 11, 2023, 12:26:47 PM Last Edit: June 13, 2023, 12:40:50 PM by bulky_turtle
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?



What is your modem and how have you configured it? The old router in modem mode?
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

The modem is a NBN modem from TPG (AU).
I attached the config of the current router as well

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?
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

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...

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.
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

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?

...have never seen a provider delivering a modem plus a router, usually both are one...
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

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.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

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.   

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?

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 ?

I have completely removed the modem and plugged in the protectli box, so there shouldn't be any interference

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.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)