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

PfSense VLAN + switch tagging trunk questions

General pfSense Questions
6
29
3.7k
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 Apr 22, 2018, 11:21 PM

    Much of the confusion here is due to the different terminology and subtle differences in the way settings are applied between manufacturers.

    The term trunk port or trunk connection is actually a Cisco term I believe but has come to be widely used to mean a link/port carrying tagged VLAN traffic, usually multiple VLANs but doesn't have to be.

    I like to think of it like this, effectively there are three options for traffic on a VLAN leaving a switch port:

    Tagged; the packet leaves the port with VLAN tags. Trunk port.

    Untagged; the VLAN tags are stripped when the packet leaves the port. Access port. The PVID would almost always be set to that VLAN to re-tag the packets coming back in.

    Excluded; packets from that VLAN are not permitted to leave via that port.

    And indeed some switches mark the ports exactly like that which I always found the easiest to read. At least some HP switches are like that but lower end maybe…

    It is better to avoid untagged and tagged traffic on the same link if you can. It's easy to make mistakes doing that. Some switches can behave unexpectedly. However it is valid.

    The definitions between trunk port and access port blur when you have a port that is tagged on some VLANs but untagged on another.

    They blur even further when you have multiple VLANs untagged on one port! Many (most?) switches won't allow that and it's of 'limited' use.  ;)

    My own exposure to different switches is limited, open to thoughts on that.

    Steve

    1 Reply Last reply Reply Quote 0
    • ?
      A Former User
      last edited by Apr 23, 2018, 1:04 AM

      Thanks for your replies.

      The 1820 web administration has a VLAN section to define the VLANs and configure the ports as tagged, untagged or excluded. What adds to the confusion is that the web administration also has a separate section for trunking.

      More a question for HP, but if tagging = trunking, why can I apply a bunch of VLAN tags to a port in one section and then in a separate assign that port as a proper trunk? I would refer to a manual but the only one I can find is no help.

      I've attached screenshots of the web adminstration GUI.

      Trunk-section.png
      Trunk-section.png_thumb
      VLAN-section.png
      VLAN-section.png_thumb

      1 Reply Last reply Reply Quote 0
      • A
        AndyC
        last edited by Apr 23, 2018, 6:11 PM

        On HP tagging != trunking. Trunking is used for link aggregation. No need to touch that if you just need VLAN functionality.

        1 Reply Last reply Reply Quote 0
        • ?
          A Former User
          last edited by Apr 23, 2018, 10:35 PM

          Thanks Andy. I did a bit more digging and found that same answer too.
          Cheers.

          1 Reply Last reply Reply Quote 0
          • S
            stephenw10 Netgate Administrator
            last edited by Apr 23, 2018, 11:35 PM

            …..and there's the confusion!  ;)

            But that's especially confusing. Good to know.  Thanks.

            Steve

            1 Reply Last reply Reply Quote 0
            • J
              jwhitewick01 @A Former User
              last edited by Feb 20, 2020, 2:13 AM

              @SR190 has anyone been able to resilve this as i have not been able to transport vlan traffic to tagged ports

              Here is my setup

              Port 48 goes to my pfsense firewall

              Untagged vlan 1 by default on port 48
              Vlan 11 tagged on port 48
              Vlan 12 tagged on port 48
              Vlan 13 tagged on port 48

              The switch model is hpe 1820-48G

              J 1 Reply Last reply Feb 20, 2020, 2:23 AM Reply Quote 0
              • J
                JKnott @jwhitewick01
                last edited by Feb 20, 2020, 2:23 AM

                @jwhitewick01

                Have you configured those VLANs on pfSense?

                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 Feb 20, 2020, 2:24 AM Reply Quote 0
                • J
                  jwhitewick01 @JKnott
                  last edited by Feb 20, 2020, 2:24 AM

                  @JKnott yes all vlans are configured on pfsense.

                  J 1 Reply Last reply Feb 20, 2020, 4:18 AM Reply Quote 0
                  • J
                    JKnott @jwhitewick01
                    last edited by Feb 20, 2020, 4:18 AM

                    @jwhitewick01

                    Well, fire up wireshark, to see what's happening. Wireshark has a column for VLAN ID, but you have to enable it.

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

                    N 1 Reply Last reply Feb 20, 2020, 4:20 PM Reply Quote 0
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Feb 20, 2020, 4:15 PM

                      I assume you have those VLANs untagged on other ports on the switch where you testing connecting hosts to them?

                      1 Reply Last reply Reply Quote 0
                      • N
                        NogBadTheBad @JKnott
                        last edited by NogBadTheBad Feb 20, 2020, 4:25 PM Feb 20, 2020, 4:20 PM

                        @JKnott said in PfSense VLAN + switch tagging trunk questions:

                        @jwhitewick01

                        Well, fire up wireshark, to see what's happening. Wireshark has a column for VLAN ID, but you have to enable it.

                        login-to-view

                        Andy

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

                        J 1 Reply Last reply Feb 20, 2020, 4:30 PM Reply Quote 0
                        • J
                          JKnott @NogBadTheBad
                          last edited by Feb 20, 2020, 4:30 PM

                          @NogBadTheBad

                          All I can see is there's no VLAN traffic at whatever point you're looking at. Are the VLANs configured on that interface? You'll have to do something to generate traffic on the VLANs, such as pinging a non-existent address. This will cause multiple ARP broadcasts, which give you something to watch for.

                          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
                          • N
                            NogBadTheBad
                            last edited by Feb 20, 2020, 4:31 PM

                            The ID column shows traffic tagged vlan 4, 5 & 6.

                            Andy

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

                            J 1 Reply Last reply Feb 20, 2020, 4:40 PM Reply Quote 0
                            • J
                              JKnott @NogBadTheBad
                              last edited by Feb 20, 2020, 4:40 PM

                              @NogBadTheBad

                              Sorry, my mistake. I haven't had my morning beer yet. 😉

                              So, you have VLANs enabled on that switch. Is that traffic coming from the switch where you're monitoring or is it being received by it? With managed switches, you can test at each end and then see what happens. So, if you see those tagged frames coming in, are they being sent out on the appropriate port? I see STUN packets. That implies VoIP or perhaps games? Where is that port you're monitoring in relation to your Internet connection. Hopefully, you're not trying to send VLAN frames out to the Internet.

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

                              N 1 Reply Last reply Feb 20, 2020, 5:00 PM Reply Quote 0
                              • N
                                NogBadTheBad @JKnott
                                last edited by Feb 20, 2020, 5:00 PM

                                @JKnott

                                Yup vlan 4 is my IOT vlan and vlan 6 is VOIP, the screen shot was just to show @jwhitewick01 what to set as a column rule.

                                I did a capture on my pfsense parent interface.

                                Andy

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

                                J 1 Reply Last reply Feb 20, 2020, 5:10 PM Reply Quote 0
                                • J
                                  JKnott @NogBadTheBad
                                  last edited by Feb 20, 2020, 5:10 PM

                                  @NogBadTheBad

                                  Then why is VLAN4 showing a STUN packet? That should be on VLAN6. Is that packet incoming to pfSense? Or outgoing? I also see a router advertisement on there. I assume that MAC address matches the pfSense port and you don't another router out on VLAN5. And that 172.16.6.1 is pfSense on VLAN6. There is at least some communication between 172.16.6.2 and .1 Is that .2 on the correct VLAN?

                                  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
                                  • N
                                    NogBadTheBad
                                    last edited by NogBadTheBad Feb 20, 2020, 5:43 PM Feb 20, 2020, 5:42 PM

                                    The STUN packet would appear to be from my Apple-TV.

                                    login-to-view

                                    I don't normally resolve hostnames.

                                    The capture was done on my pfSense interface hence the RA.

                                    Ah they do use STUN.

                                    https://support.apple.com/en-us/HT202944

                                    Andy

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

                                    J 1 Reply Last reply Feb 20, 2020, 6:02 PM Reply Quote 0
                                    • J
                                      JKnott @NogBadTheBad
                                      last edited by Feb 20, 2020, 6:02 PM

                                      @NogBadTheBad

                                      Whoever it it, it's a STUN packet on a VLAN that's supposed to be IoT, You'd normally only see STUN with VoIP or some games. Also, the VLAN IDs on pfSense don't appear to match up with those on the switch. They must be the same everywhere. So, if you have IoT on VLAN4 in pfSense, then it must also be VLAN4 on the switch trunk port.

                                      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
                                      • N
                                        NogBadTheBad
                                        last edited by Feb 20, 2020, 6:20 PM

                                        The VLAN IDs are correct both end as I said previously "vlan 4 is my IOT vlan and vlan 6 is VOIP"

                                        The STUN packets on vlan 4 are from 2 x Apple-TVs.

                                        I'd see STUN packets on vlan 4 (IOT) and vlan 6 (VOIP).

                                        Andy

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

                                        J 1 Reply Last reply Feb 20, 2020, 6:24 PM Reply Quote 0
                                        • J
                                          JKnott @NogBadTheBad
                                          last edited by Feb 20, 2020, 6:24 PM

                                          @NogBadTheBad said in PfSense VLAN + switch tagging trunk questions:

                                          The VLAN IDs are correct both end

                                          Then what's this?

                                          Port 48 goes to my pfsense firewall

                                          Untagged vlan 1 by default on port 48
                                          Vlan 11 tagged on port 48
                                          Vlan 12 tagged on port 48
                                          Vlan 13 tagged on port 48

                                          Those certainly don't look like 4, 5 & 6 to me.

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

                                          N 1 Reply Last reply Feb 20, 2020, 6:27 PM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.