OPNsense
  • 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 36117 times)

hushcoden

  • Hero Member
  • *****
  • Posts: 551
  • Karma: 23
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #30 on: October 13, 2023, 06:56:08 pm »
QQ: My WAN interface has a 'parent' interface with an IP address on the same subnet of my modem, and I've created that interface to connect to the web gui of the modem.

I've now changed the WAN port MTU to 1508 -> the calculated MTU goes from 1492 to 1500 and the MTU of the parent interface shows 1508. So far so good, BUT I noticed in the interface statics that the parent interface has a never stop number of 'errors in' and 'collision': should I worry about or not?

Tia.
Logged

netnut

  • Sr. Member
  • ****
  • Posts: 272
  • Karma: 33
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #31 on: October 14, 2023, 10:49:47 pm »
Quote from: hushcoden on October 13, 2023, 06:56:08 pm
I've now changed the WAN port MTU to 1508 -> the calculated MTU goes from 1492 to 1500 and the MTU of the parent interface shows 1508. So far so good, BUT I noticed in the interface statics that the parent interface has a never stop number of 'errors in' and 'collision': should I worry about or not?

Yeah, you should.... But I would be surprised if this is related to this MTU change if your ISP is supporting RFC4638 and you're sure (double check) your NIC _supports_ >1500 MTU sizes. You can simply check by reverting the MTU change and see if these errors are still there in default (1492) mode.

Collision errors are in most cases related to duplex errors, check if your NIC speed & duplex settings are aligned with switch port or modem port. Auto Negotiation shouldn't be a problem for decades, but funky NIC's (Realtek) and cheap "smart" switches can still be trouble makers. You can try to set the speed & duplex settings fixed on _BOTH_ sides manually (10/100/1000Mb / Half/Full-Duplex), just be sure _BOTH_ sides are configured exactly the same (Fixed or Auto).

If you fix the collisions you probably fix the errors with it, but one step at a time ;).
« Last Edit: October 14, 2023, 11:01:02 pm by netnut »
Logged

hushcoden

  • Hero Member
  • *****
  • Posts: 551
  • Karma: 23
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #32 on: October 15, 2023, 12:45:45 pm »
Thanks netnut but indeed I started to see such errors just after I entered the MTU value 1508 on the WAN port - and just to be sure I was clear, those errors and collisions are on the parent interface and not on the WAN interface itself which luckily still shows no errors/collisions.

The NICs are I225-V and I'm pretty sure they support jumbo frames.

So, are you saying that this is a 'serious' issue even if it's on the parent interface of WAN?

P.S.
I tried to use VIP to accomplish the same result, but no luck at all, unfortunately, so this is for me the only way I can access the modem web GUI.
Logged

netnut

  • Sr. Member
  • ****
  • Posts: 272
  • Karma: 33
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #33 on: October 15, 2023, 11:14:51 pm »
Quote from: hushcoden on October 15, 2023, 12:45:45 pm
The NICs are I225-V and I'm pretty sure they support jumbo frames.

These go up to 9.5KB Jumbo's, so yeah, that NIC shouldn't be a problem. Are you really sure your ISP supports RFC4638 ? It's common, but certainly not default.

Quote
So, are you saying that this is a 'serious' issue even if it's on the parent interface of WAN?

Well, don't panic ;). But errors are BAD, no errors are GOOD :D.
Since the reboot for the v23.7.5 upgrade 19 days ago (and a non-reboot upgrade to v23.7.6) my pppoe and parents showing zero collisions/errors, that should be the norm...

Having collisions means something is sub optimal (or Realtek ;)), normally a collision gets resend so the effect is not always noticeable, especially on a single interface ISP uplink.

What does "Media" in  "INTERFACES: OVERVIEW" shows you at the physical parent interface ?

Other common things to check are the quality of your patch cable (try a non-self-made > CAT5e), and the connector (pull in/out and check if it fits firmly on both sides).

« Last Edit: October 15, 2023, 11:22:51 pm by netnut »
Logged

hushcoden

  • Hero Member
  • *****
  • Posts: 551
  • Karma: 23
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #34 on: October 16, 2023, 04:52:11 pm »
Quote from: netnut on October 15, 2023, 11:14:51 pm
What does "Media" in  "INTERFACES: OVERVIEW" shows you at the physical parent interface ?
1000baseT <full-duplex>

Quote
Other common things to check are the quality of your patch cable (try a non-self-made > CAT5e), and the connector (pull in/out and check if it fits firmly on both sides).
Tested and it's all good.

Anyway, I changed the WAN interface MTU value back to 1492 and 'magically' no more errors in/collisions for the parent interface  ::)

Also, in order for the parent interface to get back to MTU=1500 I had to restart OPNsense, but I recall in the previous versions that was happening 'on the fly'.
« Last Edit: October 16, 2023, 06:00:23 pm by hushcoden »
Logged

netnut

  • Sr. Member
  • ****
  • Posts: 272
  • Karma: 33
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #35 on: November 05, 2023, 09:57:43 pm »
Quote
Anyway, I changed the WAN interface MTU value back to 1492 and 'magically' no more errors in/collisions for the parent interface

You still didn't confirm if your ISP is supporting RC4638, which is mandatory to make "this" work.

The only last suggestion I have, when your are using PPPOE on top of a VLAN, try to set the MTU on the physical parent interface to 1512. If that doesn't work I'm out of options...   :)
Logged

hushcoden

  • Hero Member
  • *****
  • Posts: 551
  • Karma: 23
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #36 on: November 06, 2023, 06:37:10 pm »
I did contact my ISP to confirm that, but no response so far. Besides, I had to replace my modem and the new one doesn't support MTU higher than 1500, so never mind I can live with 1492  ;D

Many thanks !
Logged

truesword88

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #37 on: January 03, 2024, 04:30:25 am »
Does this patch apply to '23.7.10_1-amd64' - I seem to be getting something like 4 out of 5 failed block messages.
Logged

netnut

  • Sr. Member
  • ****
  • Posts: 272
  • Karma: 33
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #38 on: January 03, 2024, 05:06:04 pm »
Quote from: truesword88 on January 03, 2024, 04:30:25 am
Does this patch apply to '23.7.10_1-amd64' -

https://forum.opnsense.org/index.php?topic=21207.msg176018#msg176018

Quote
I seem to be getting something like 4 out of 5 failed block messages.

Block messages ? This is about MTU, not packet filter.
Logged

truesword88

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #39 on: January 03, 2024, 09:46:09 pm »
The exact message when trying to apply the patch is: 'hunks' - 4 out of 5 hunks failed, see attached image.

It was at this point, it occurred to me that the patch might only apply to 23.7.3 & not 23.7.10_1..


Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17707
  • Karma: 1618
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #40 on: January 04, 2024, 08:25:28 am »
Patches eventually reach the stable release. I think that most of the time patching something to make it work may alter the success rate in the future considerably.

To my knowledge there are no more complaints about PPPoE MTU since we worked on it in early 23.7.x.


Cheers,
Franco
Logged

Marinoz

  • Full Member
  • ***
  • Posts: 116
  • Karma: 0
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #41 on: January 21, 2024, 07:08:47 pm »
Newbie here. If my isps config uses only vlan tag do I follow iptv or vlan ipv4/6 config ? And BTW I found this info at the router config cause I got no manual from my isp or any kind of instructions  neither for oknsense neither for what to set at each label.
Logged

netnut

  • Sr. Member
  • ****
  • Posts: 272
  • Karma: 33
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #42 on: January 23, 2024, 10:40:33 pm »
Quote from: Marinoz on January 21, 2024, 07:08:47 pm
Newbie here. If my isps config uses only vlan tag do I follow iptv or vlan ipv4/6 config ? And BTW I found this info at the router config cause I got no manual from my isp or any kind of instructions  neither for oknsense neither for what to set at each label.

If your ISP is using VLAN's you need to know which VLAN ID's for which service upfront. This How-To is using VLAN ID 4 & 6 for IP connectivity and IPTV, but this will/may be different for each and every other ISP.

The only thing that matters is the VLAN ID of the VLAN interface you create, it should match the ID your ISP is using for the service you like to consume.

You're free to name this interface anything you like. The required IP configuration on this interface also depends on the specs and requirements of your ISP (ie. Static, DHCP, PD etc)
Logged

Marinas

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #43 on: January 31, 2024, 12:10:59 pm »
Quote from: netnut on January 23, 2024, 10:40:33 pm
Quote from: Marinoz on January 21, 2024, 07:08:47 pm
Newbie here. If my isps config uses only vlan tag do I follow iptv or vlan ipv4/6 config ? And BTW I found this info at the router config cause I got no manual from my isp or any kind of instructions  neither for oknsense neither for what to set at each label.

If your ISP is using VLAN's you need to know which VLAN ID's for which service upfront. This How-To is using VLAN ID 4 & 6 for IP connectivity and IPTV, but this will/may be different for each and every other ISP.

The only thing that matters is the VLAN ID of the VLAN interface you create, it should match the ID your ISP is using for the service you like to consume.

You're free to name this interface anything you like. The required IP configuration on this interface also depends on the specs and requirements of your ISP (ie. Static, DHCP, PD etc)

hello its marinoz but i cant access my other account at the time. How can i know what is the vlan used for? i just ask to name it correctly although there is no need
Logged

Patrick M. Hausen

  • Hero Member
  • *****
  • Posts: 6923
  • Karma: 583
    • View Profile
Re: [HowTo] - PPPoE, VLAN & RFC4638
« Reply #44 on: January 31, 2024, 12:28:12 pm »
Quote from: Marinas on January 31, 2024, 12:10:59 pm
hello its marinoz but i cant access my other account at the time. How can i know what is the vlan used for? i just ask to name it correctly although there is no need
The only existing way is to ask your ISP which VLAN they are using and if at all.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

  • Print
Pages: 1 2 [3] 4
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Tutorials and FAQs »
  • [HowTo] - PPPoE, VLAN & RFC4638
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2