Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
[HowTo] - PPPoE, VLAN & RFC4638
« previous
next »
Print
Pages: [
1
]
2
3
4
Author
Topic: [HowTo] - PPPoE, VLAN & RFC4638 (Read 34074 times)
netnut
Sr. Member
Posts: 269
Karma: 32
[HowTo] - PPPoE, VLAN & RFC4638
«
on:
January 31, 2021, 01:07:26 am »
PPPoE, VLAN & RFC4638
Most modern Internet Broadband connections (VDSL, Fiber) are based on ethernet instead of ATM, but still using PPP for connectivity and subscriber management. Many ISP's also offering extra services (besides IPv4 & IPv6 Internet) like IPTV and VOIP, most of the time provided via different VLAN's.
A PPP header is 8 bytes, so when you're using PPP over Ethernet your (usable) MTU size will be slightly lowered from it's default (1500) to 1492. I'm not going to explain here why this might be problematic or at least suboptimal in a standard Ethernet network, DuckDuckGo is your friend ;-). Try: "MTU and Fragmentation" if you like to learn more about this topic.
Now the good news is that configuring PPPoE with VLAN's is extremly simple using OPNSense. Even better, if your ISP supports RFC4638 (Baby Jumbo's) on it's PPPoE connection, things get really awesome.....
“To Whom It May Concern”:
The instructions below are for OPNSense configurations that are DIRECTLY connected to an ISP infrastrucure and terminate the PPPoE connection at the OPNSense box itself or using a CPE (modem) that provides PPPoE passthrough functionality.
MAC Spoofing:
If you need to use a custom MAC Address, configure it on the physical interface (01:01:01:01:01:01 in this example). When you don't know if you need a custom MAC, you probably don't need one, just leave this item blank.
MTU Size:
If your ISP supports RFC4638, configure the MTU size on the Physical NIC (1512) and the PPPoE VLAN (1508), otherwise leave these two settings blank. If your ISP supports RFC4638, but it doesn't work, first configure everything WITHOUT custom MTU settings, this should work anyway. Double check if your physical NIC supports custom MTU (>1500) sizes.
«
Last Edit: January 31, 2021, 07:20:11 pm by netnut
»
Logged
netnut
Sr. Member
Posts: 269
Karma: 32
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #1 on:
January 31, 2021, 01:07:58 am »
1 - Configure your WAN interface
- Unnumbered
- Custom MAC Address (if needed)
- Custom MTU Size (if supported by NIC & ISP)
Login to view screenshot:
«
Last Edit: January 31, 2021, 07:13:22 pm by netnut
»
Logged
netnut
Sr. Member
Posts: 269
Karma: 32
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #2 on:
January 31, 2021, 01:08:22 am »
2 - Add Service VLAN (IPTV)
- Use WAN Interface as parent
- My ISP is using VLAN4 for IPTV
- Check YOUR ISP instructions for the right VLAN id
Login to view screenshot:
«
Last Edit: January 31, 2021, 07:13:30 pm by netnut
»
Logged
netnut
Sr. Member
Posts: 269
Karma: 32
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #3 on:
January 31, 2021, 01:08:40 am »
3 - Add Service VLAN (IP)
- Use WAN Interface as parent
- My ISP is using VLAN6 for regular IPv4 & IPv6 Internet
- Check YOUR ISP instructions for the right VLAN id
Login to view screenshot:
«
Last Edit: January 31, 2021, 07:13:38 pm by netnut
»
Logged
netnut
Sr. Member
Posts: 269
Karma: 32
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #4 on:
January 31, 2021, 01:08:59 am »
4 - Both Service VLAN's configured
Login to view screenshot:
«
Last Edit: January 31, 2021, 07:13:46 pm by netnut
»
Logged
netnut
Sr. Member
Posts: 269
Karma: 32
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #5 on:
January 31, 2021, 01:09:24 am »
5 - Assign the configured Service VLAN Interfaces
Login to view screenshot:
«
Last Edit: January 31, 2021, 07:13:51 pm by netnut
»
Logged
netnut
Sr. Member
Posts: 269
Karma: 32
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #6 on:
January 31, 2021, 01:09:44 am »
6 - Configure the VLAN (IP)
- Configure IPv4 Configuration Type: PPPoE
- Custom MTU Size (if supported by NIC & ISP)
Login to view screenshot:
«
Last Edit: January 31, 2021, 07:13:56 pm by netnut
»
Logged
netnut
Sr. Member
Posts: 269
Karma: 32
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #7 on:
January 31, 2021, 01:10:08 am »
7 - Configure the VLAN (IP) - PPPoE
- Provide username & password for the PPPoE configuration
- A Service Name is not required in most cases
Login to view screenshot:
«
Last Edit: January 31, 2021, 07:14:07 pm by netnut
»
Logged
netnut
Sr. Member
Posts: 269
Karma: 32
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #8 on:
January 31, 2021, 01:10:26 am »
8 - OPNSense Automagicly configured your PPP Interface
Login to view screenshot:
«
Last Edit: January 31, 2021, 07:14:17 pm by netnut
»
Logged
netnut
Sr. Member
Posts: 269
Karma: 32
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #9 on:
January 31, 2021, 01:10:51 am »
9 - Check, Check, Double Check
Login to view screenshot:
«
Last Edit: January 31, 2021, 07:14:25 pm by netnut
»
Logged
netnut
Sr. Member
Posts: 269
Karma: 32
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #10 on:
January 31, 2021, 01:11:06 am »
10 - Configure the VLAN (IPTV)
- If needed configure the other Service VLAN
- My ISP is using DHCP for the IPTV Service VLAN, with some custom request settings
- Check YOUR ISP instructions for the required DHCP options
- I don't use IPTV, so no futher details
Login to view screenshot:
«
Last Edit: January 31, 2021, 07:14:33 pm by netnut
»
Logged
netnut
Sr. Member
Posts: 269
Karma: 32
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #11 on:
January 31, 2021, 01:11:17 am »
Really, that's all...
Check your PPPoE Connection from "Interfaces -> Overview -> PPPOE-INTERFACE"
If everything went well, you see a MTU size of 1500 and an active IPv4 address.
Validated with OPNsense 21.1 - It works for Me!!!
Logged
hushcoden
Hero Member
Posts: 525
Karma: 23
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #12 on:
January 31, 2021, 02:51:01 pm »
Thanks for the guide, very useful. Quck one: why don't you set the physical WAN at 1508 too? Why 1512?
Thanks.
Logged
netnut
Sr. Member
Posts: 269
Karma: 32
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #13 on:
January 31, 2021, 07:15:16 pm »
Quote from: hushcoden on January 31, 2021, 02:51:01 pm
Quick one: why don't you set the physical WAN at 1508 too? Why 1512?
Extra 4 bytes for the 802.1q VLAN
Logged
fd0
Newbie
Posts: 9
Karma: 0
Re: [HowTo] - PPPoE, VLAN & RFC4638
«
Reply #14 on:
March 12, 2021, 05:10:49 pm »
Great HowTo
-fd0
Logged
Print
Pages: [
1
]
2
3
4
« previous
next »
OPNsense Forum
»
English Forums
»
Tutorials and FAQs
»
[HowTo] - PPPoE, VLAN & RFC4638