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

    When creating a VLAN, what does the priority setting actually do?

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    9 Posts 5 Posters 17.0k 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.
    • J
      jhavlat
      last edited by

      Can anyone explain how the priority setting when creating a VLAN in pfSense affects traffic? Would it function any different than if I setup a PRIQ traffic shaping rule on a VLAN interface after I created it?
      pfsense_vlan_priority.png

      1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad
        last edited by

        802.1p values.

        https://en.wikipedia.org/wiki/IEEE_P802.1p

        If I set vlan 5 to proirity 5 I see the following:-

        Screenshot 2020-09-24 at 20.45.48.png

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        1 Reply Last reply Reply Quote 0
        • J
          jhavlat
          last edited by

          So from what I'm reading its QoS applied at the Layer 2 level. Maybe this is a dumb question but does that mean this is only really useful if I'm saturating my switch capacity?

          JKnottJ 1 Reply Last reply Reply Quote 0
          • JKnottJ
            JKnott @jhavlat
            last edited by

            @jhavlat

            More saturating the output to a single port. There's a problem with switches often called "funneling" where a port is overwhelmed with traffic from multiple ports. Beyond that, these days, it takes some effort to saturate a switch. If you're worried about end to end priority, you have to look at diffserv at the IP level.

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

            J 1 Reply Last reply Reply Quote 1
            • J
              jhavlat @JKnott
              last edited by

              @JKnott

              I could see that being a possibility on a trunk port but its never been a problem that I have witnessed. I don't personally have any traffic flow problems but I read a guide about setting up VLANs in pfSense for VoIP and they said it was absolutely critical to set the priority when creating the VLAN. I was just curious whether it provided much benefit or not.

              JKnottJ 1 Reply Last reply Reply Quote 1
              • JKnottJ
                JKnott @jhavlat
                last edited by

                @jhavlat

                Well, you have to understand the traffic on the LAN to say it's critical. With Gb LANs, it's not likely to be an issue, unless you have a lot of traffic. A lot of this sort of thing was developed back in the 10 Mb days, when it was easier to saturate a LAN.

                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
                • S
                  seanmcb
                  last edited by

                  That wikipedia article suggests that the default should be 1, not 0. The pfsense docs say of VLAN Priority: "Leave at the default value, blank". But blank isn't the default in the web UI, 0 is.

                  So I'm wondering if there's a UI bug here, and the default should really be 1...

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @seanmcb
                    last edited by johnpoz

                    default is best effort.. Which is what it will be when you leave it at 0

                    besteffort.png

                    In the article you linked to - look at the pcp value.

                    It just shows that 0 in the gui, because you haven't set a value. ie its blank ;) and zero is the default. Notice how the 0 is grey.. and its not really there if you try and edit it.

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                    1 Reply Last reply Reply Quote 1
                    • S
                      seanmcb
                      last edited by

                      Wow that grey is subtle, but I see it now.

                      Looking at the wiki article again, I see the confusion: look how the first column has 0 and 1 reversed, unlike the second column.

                      So what wiki refers to as "priority" (second column) is not what pfsense means by "priority". In fact, pfsense wants the raw PCP value, it seems.

                      Thanks!

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.