• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

[solved] Different MTU for IP v4 & v6 possible?

Scheduled Pinned Locked Moved General pfSense Questions
15 Posts 3 Posters 583 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S
    stephenw10 Netgate Administrator
    last edited by Aug 8, 2024, 12:27 PM

    Hmm, not seen that. Is IPv6 using dhcpv6 over PPPoE there? Other way around perhaps?

    I'd expect IPv4 to use MTU 1492 unless the have mini-jumbo frames (1508).

    B 1 Reply Last reply Aug 8, 2024, 1:08 PM Reply Quote 0
    • B
      Bob.Dig LAYER 8 @stephenw10
      last edited by Bob.Dig Aug 8, 2024, 1:47 PM Aug 8, 2024, 1:08 PM

      @stephenw10 said in Different MTU for IP v4 & v6 possible?:

      I'd expect IPv4 to use MTU 1492 unless the have mini-jumbo frames (1508).

      Fritzbox is not very open, so I can only show you what is going on at a client on LAN-side, not WAN. I don't think they will use mini-jumbo frames. The ISP is using which most vDSL-providers use around here. And those will use the same settings for fiber, too, like PPPoE etc.

      Hmm, not seen that. Is IPv6 using dhcpv6 over PPPoE there? Other way around perhaps?

      Last time I used pfSense directly with that ISP, I had to activate Dhcpv6 and "Use IPv4 connectivity as parent interface" and the Fritzbox shows that "DHCPv6 Rapid Commit" is used.

      1 Reply Last reply Reply Quote 0
      • J
        JKnott @Bob.Dig
        last edited by Aug 8, 2024, 1:41 PM

        @Bob-Dig said in Different MTU for IP v4 & v6 possible?:

        I noticed that my first router will set different MTU for IP v4 & v6 on its LAN.

        That doesn't make sense. MTU refers to the size of the Ethernet payload, which should be the same for IPv4 and IPv6. Also, NAT has nothing to do with MTU size.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        B 1 Reply Last reply Aug 8, 2024, 1:45 PM Reply Quote 0
        • B
          Bob.Dig LAYER 8 @JKnott
          last edited by Bob.Dig Aug 8, 2024, 1:49 PM Aug 8, 2024, 1:45 PM

          @JKnott said in Different MTU for IP v4 & v6 possible?:

          That doesn't make sense.

          But packets are IPv 4 or 6, not both. I don't know this stuff, not working in tech, but I doubt the fritzbox would do that by mistake.

          J 1 Reply Last reply Aug 8, 2024, 1:52 PM Reply Quote 0
          • J
            JKnott @Bob.Dig
            last edited by Aug 8, 2024, 1:52 PM

            @Bob-Dig

            I'm not saying it's not possible as the MTU is provided by 2 different methods in IPv4 & IPv6, so different values could be provided. However, the question is why? Back when I was using a tunnel for IPv6, the MTUs were different. Is there some sort of tunnel for one or the other? 1492 is often used for PPPoE. However, if it applies for one, it should apply for the other. Maybe whoever wrote Fritzbox goofed.

            PfSense running on Qotom mini PC
            i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
            UniFi AC-Lite access point

            I haven't lost my mind. It's around here...somewhere...

            B 1 Reply Last reply Aug 8, 2024, 2:01 PM Reply Quote 0
            • B
              Bob.Dig LAYER 8 @JKnott
              last edited by Bob.Dig Aug 8, 2024, 2:07 PM Aug 8, 2024, 2:01 PM

              @JKnott said in Different MTU for IP v4 & v6 possible?:

              1492 is often used for PPPoE. However, if it applies for one, it should apply for the other.

              I am sure they use 1492 for IPv4 on WAN too. But they don't use it for LAN IPv4. So it is a design consideration, maybe because they can. I saw and liked it. Now I want to replicate.

              B 1 Reply Last reply Aug 8, 2024, 2:28 PM Reply Quote 0
              • B
                Bob.Dig LAYER 8 @Bob.Dig
                last edited by Bob.Dig Aug 8, 2024, 2:32 PM Aug 8, 2024, 2:28 PM

                @Bob-Dig said in Different MTU for IP v4 & v6 possible?:

                Now I want to replicate.

                Holy. PfSense is already doing it too?

                I changed the MTU on pfSense WAN and I see basically the same on my pfSense LAN. So maybe it has nothing to do with anything. 😵

                PS C:\Users\Bobby> Get-NetIPInterface | Format-Table -AutoSize
                
                ifIndex InterfaceAlias              AddressFamily NlMtu(Bytes) InterfaceMetric Dhcp     ConnectionState PolicyStore
                ------- --------------              ------------- ------------ --------------- ----     --------------- -----------
                6       Ethernet 2                  IPv6                  1492              25 Enabled  Connected       ActiveStore
                1       Loopback Pseudo-Interface 1 IPv6            4294967295              75 Disabled Connected       ActiveStore
                6       Ethernet 2                  IPv4                  1500              25 Enabled  Connected       ActiveStore
                1       Loopback Pseudo-Interface 1 IPv4            4294967295              75 Disabled Connected       ActiveStore
                

                Maybe it's Windows.

                J 1 Reply Last reply Aug 8, 2024, 2:46 PM Reply Quote 0
                • J
                  JKnott @Bob.Dig
                  last edited by Aug 8, 2024, 2:46 PM

                  @Bob-Dig said in Different MTU for IP v4 & v6 possible?:

                  Maybe it's Windows.

                  'Nuff said. 😉

                  PfSense running on Qotom mini PC
                  i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                  UniFi AC-Lite access point

                  I haven't lost my mind. It's around here...somewhere...

                  1 Reply Last reply Reply Quote 1
                  • B
                    Bob.Dig LAYER 8
                    last edited by Aug 8, 2024, 2:46 PM

                    Looks like it is a Windows thing and has nothing to do with pfSense, Fritzbox etc.
                    Marked this thread as solved.

                    1 Reply Last reply Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Aug 8, 2024, 3:54 PM

                      Mmm, curious. I would have expected the same for both.

                      More likely I might have expected v4 at 1492 and v6 (perhaps incorrectly) at 1500 because a common setup if for v6 to use dhcpv6 over the pppoe once it's established.

                      1 Reply Last reply Reply Quote 0
                      • B
                        Bob.Dig LAYER 8
                        last edited by Bob.Dig Aug 8, 2024, 7:14 PM Aug 8, 2024, 7:12 PM

                        To conclude things, the effect that I saw last, that pfSense LAN was also showing different MTU sizes in Windows came from me changing the MTU on WAN to 1492. WAN was the parent interface of my LAN, which is a VLAN.
                        So changing the MTU of the parent also changes MTU on all the VLANs.
                        Realizing this made me change my WAN also to a VLAN and not using the parent at all.
                        Now only the WAN has 1492 (set by me), all the others have their usual default which is 1500. And Windows is showing 1500 for both IPv4&6.
                        This shows that the fritzbox is using 1492 for the LAN too, which Windows will change to 1500 for IPv4 for whatever reason.

                        J 1 Reply Last reply Aug 8, 2024, 8:24 PM Reply Quote 1
                        • J
                          JKnott @Bob.Dig
                          last edited by Aug 8, 2024, 8:24 PM

                          @Bob-Dig said in [solved] Different MTU for IP v4 & v6 possible?:

                          So changing the MTU of the parent also changes MTU on all the VLANs.

                          Yep. The only difference is the VLAN tag, which adds an extra 4 bytes to the frame, but does not affect the underlying MTU. They are not separate physical interfaces.

                          PfSense running on Qotom mini PC
                          i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                          UniFi AC-Lite access point

                          I haven't lost my mind. It's around here...somewhere...

                          B 1 Reply Last reply Aug 8, 2024, 8:33 PM Reply Quote 0
                          • B
                            Bob.Dig LAYER 8 @JKnott
                            last edited by Bob.Dig Aug 8, 2024, 8:33 PM Aug 8, 2024, 8:33 PM

                            @JKnott said in [solved] Different MTU for IP v4 & v6 possible?:

                            They are not separate physical interfaces.

                            Good to know.

                            Maybe it would be better if I had not changed from the parent to a VLAN. Because now, if I want to change the MTU, I will have to do it for every VLAN, which is a hassle.
                            But than, I only use IPv6 on three VLANs right now and for the rest, Windows would use 1500 for IPv4 anyways, so everything is good I guess.

                            MTU kinda is a rabbit-hole...

                            J 1 Reply Last reply Aug 8, 2024, 8:53 PM Reply Quote 0
                            • J
                              JKnott @Bob.Dig
                              last edited by Aug 8, 2024, 8:53 PM

                              @Bob-Dig

                              There is some info here:
                              IEEE 802.1Q

                              This shows an Ethernet frame both without and with VLANs. You can see where the tag goes. The size of the payload is what is determined by the MTU.

                              If you run Wireshark you can examine the frames and see the VLAN tags and more.

                              PfSense running on Qotom mini PC
                              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                              UniFi AC-Lite access point

                              I haven't lost my mind. It's around here...somewhere...

                              1 Reply Last reply Reply Quote 0
                              15 out of 15
                              • First post
                                15/15
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                This community forum collects and processes your personal information.
                                consent.not_received