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

VLAN tagging with untagged parent interface

L2/Switching/VLANs
8
16
4.1k
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.
  • B
    b82rez
    last edited by Jun 6, 2018, 12:15 PM

    Hi,

    Let me start by saying this is the first time I'm configuring a pfsense firewall so please excuse any dumb questions or obvious issues :)

    I'm running a pfSense as an edge firewall in a setup something like this:

    ix1: INTERNET
    ix0: Untagged LAN, currently assigned 10.0.1.1/24

    The ix0 interface goes to a HP switch with its port currently in access mode in vlan 2.

    What I want to do is segment the inside networks into different VLANs whilst keeping the ix0 interface unchanged.

    I did the following:

    HP Switch: Change the HP switchport to a trunk allowing all VLANs and specifying vlan 2 as the native/un-tagged VLAN.
    Pfsense: Add VLANs 10 and 20 , assign them ip addresses and send them out on interface ix0

    Now the setup looks like this:

    ix1: INTERNET, DHCP
    ix0: Untagged, 10.0.1.0/24
    ix0.10 VLAN 10 tag, 10.0.10.0/24
    ix0.20 VLAN 20 tag, 10.0.20.0/24

    The untagged ix0 is working fine but I cannot get the tagged subinterfaces to work.
    I cannot see any MAC addresses in vlan 10 or 20 on the HP switch.

    I verified that the vlans are trunking from the HP to pfSense. and that the VLANs are created on the HP.
    That leaves the pfSense.

    I keep reading that I have to restart pfsense to make the VLAN tagging work, is that correct?

    Many thanks!

    J 1 Reply Last reply Jun 6, 2018, 12:41 PM Reply Quote 0
    • J
      JeGr LAYER 8 Moderator @b82rez
      last edited by Jun 6, 2018, 12:41 PM

      @b82rez said in VLAN tagging with untagged parent interface:

      I keep reading that I have to restart pfsense to make the VLAN tagging work, is that correct?

      Not that I know of. Configuring a VLAN is no operation that has to require a reboot to work.

      I verified that the vlans are trunking from the HP to pfSense. and that the VLANs are created on the HP.

      How did you verify, that the VLANs are trunking from the HP to pfSense? Do you have another client in one of those VLANs that you can test from to reach the VLAN interface on the pfSense side? Did you setup IPs, rules etc. on those new virtual interfaces in pfSense?

      Greets

      Don't forget to upvote πŸ‘ those who kindly offered their time and brainpower to help you!

      If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

      1 Reply Last reply Reply Quote 0
      • N
        NogBadTheBad
        last edited by NogBadTheBad Jun 6, 2018, 12:50 PM Jun 6, 2018, 12:48 PM

        If it's been set up as you mention, it shouldn't be a pfSense issue,

        To prove it do a packet capture in promiscuous mode on the parent interface, then import the capture into wireshark.

        You should see untagged packets and tagged packets, create an extra column with vlan.id as the field.

        πŸ”’ Log in to view

        Andy

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

        1 Reply Last reply Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by Jun 6, 2018, 12:50 PM

          Where did you read that you have to reboot to get vlans to work? That is not true.

          you can sniff on pfsense with tcpdump directly and the -e to see vlan tags.

          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

          N 1 Reply Last reply Jun 6, 2018, 12:52 PM Reply Quote 0
          • N
            NogBadTheBad @johnpoz
            last edited by NogBadTheBad Jun 6, 2018, 12:53 PM Jun 6, 2018, 12:52 PM

            @johnpoz said in VLAN tagging with untagged parent interface:

            you can sniff on pfsense with tcpdump directly and the -e to see vlan tags.

            tcpdump -i ix0 -e would do it

            So you can :)

            Andy

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

            1 Reply Last reply Reply Quote 0
            • J
              johnpoz LAYER 8 Global Moderator
              last edited by Jun 6, 2018, 12:52 PM

              saves a step if all your doing is validating there is traffic being seen tagged and untagged, etc. ;)

              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 0
              • B
                b82rez
                last edited by Jun 6, 2018, 1:03 PM

                Thanks for the fast replies!

                Verify trunking on HP:
                <sw001>display vlan 10
                VLAN ID: 10
                VLAN Type: static
                Route Interface: not configured
                Description: VLAN 0010
                Name: VLAN-10
                Tagged Ports:
                Ten-GigabitEthernet1/0/27 <<--- PFsense
                Untagged Ports: none

                Caught the "Reboot to get the VLAN tagging to work" from various google searches, perhaps this is referencing an old release.

                Just to confirm, it's a supported design to run IP ontop of the parent interface whilst tagging like I've done here?

                I'll look at doing the capture also, thanks!

                J 1 Reply Last reply Jun 6, 2018, 1:08 PM Reply Quote 0
                • H
                  heper
                  last edited by Jun 6, 2018, 1:06 PM

                  If you don't have untagged ports on that vlan, you can't connect dumb clients

                  1 Reply Last reply Reply Quote 0
                  • J
                    JeGr LAYER 8 Moderator @b82rez
                    last edited by Jun 6, 2018, 1:08 PM

                    @b82rez said in VLAN tagging with untagged parent interface:

                    Just to confirm, it’s a supported design to run IP ontop of the parent interface whilst tagging like I’ve done here?

                    I'd avoid it in the end to avoid debugging chaos with tagged or untagged traffic on the same interface, but yes it is working and supported. We run it like that at our office location, too. Untagged traffic (vlan1) is the old deprecated server network, all other new networks are using a proper VLAN and are tagged (or using a switch access port in the appropriate VLAN). So yes, that works.

                    Don't forget to upvote πŸ‘ those who kindly offered their time and brainpower to help you!

                    If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                    N 1 Reply Last reply Jun 6, 2018, 1:21 PM Reply Quote 0
                    • N
                      NogBadTheBad @JeGr
                      last edited by Jun 6, 2018, 1:21 PM

                      @jegr said in VLAN tagging with untagged parent interface:

                      @b82rez said in VLAN tagging with untagged parent interface:

                      Just to confirm, it’s a supported design to run IP ontop of the parent interface whilst tagging like I’ve done here?

                      I'd avoid it in the end to avoid debugging chaos with tagged or untagged traffic on the same interface, but yes it is working and supported. We run it like that at our office location, too. Untagged traffic (vlan1) is the old deprecated server network, all other new networks are using a proper VLAN and are tagged (or using a switch access port in the appropriate VLAN). So yes, that works.

                      I do it and use it just for my LAN management subnet, switch management addresses, wireless controller & ap YMMV.

                      Andy

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

                      1 Reply Last reply Reply Quote 0
                      • J
                        johnpoz LAYER 8 Global Moderator
                        last edited by Jun 6, 2018, 3:42 PM

                        Yes I run parent native (untagged) with network 192.168.2 and then vlans on top of that parent interface with different networks .3 and .4 with vlan id 3 and 4, etc.

                        Derelict is sure not a fan of this sort of setup :) But yes it works just fine if you know what your doing and setup your switch ports correctly.

                        Partly this way because unifi AP until recently had to be untagged. And previous had network is place already that used untagged, and adding the vlans to this was easier than just tagging everything, etc.

                        I might get around to changing it - but it works no issue, it is a well supported configuration. It allows for being able to connect a device to that port without having to worry about the device support tags, etc.

                        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 0
                        • DerelictD
                          Derelict LAYER 8 Netgate
                          last edited by Derelict Jun 6, 2018, 6:04 PM Jun 6, 2018, 5:59 PM

                          It has its place. Unifi being one of them. It is always sort of a crap shoot how the connected switch will handle it but if it works it works. It has been a while since I saw a switch that didn't like it. I would still absolutely make the untagged VLAN on the switch something other than VLAN 1.

                          Another nicety is you can directly connect a laptop to the port and get to a network without having to worry about tagging traffic there. Handy for smaller networks.

                          Another consideration is if you run Diagnostics > Packet Capture on the parent interface, you get all traffic for all VLANs with the dot1q tags present on the tagged VLANs. This might or might not be what you want.

                          Chattanooga, Tennessee, USA
                          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                          Do Not Chat For Help! NO_WAN_EGRESS(TM)

                          1 Reply Last reply Reply Quote 0
                          • jahonixJ
                            jahonix
                            last edited by Jun 6, 2018, 9:26 PM

                            I can remember times when it was a no-go to mix tagged and untagged traffic on the same interface. I still cringe when I read about it ... but try to 🀐 at least.

                            JKnottJ 1 Reply Last reply Jun 7, 2018, 9:50 AM Reply Quote 0
                            • JKnottJ
                              JKnott @jahonix
                              last edited by Jun 7, 2018, 9:50 AM

                              @jahonix said in VLAN tagging with untagged parent interface:

                              I can remember times when it was a no-go to mix tagged and untagged traffic on the same interface. I still cringe when I read about it ... but try to 🀐 at least.

                              You'll find that's typical when VoIP phones and computers share the same cable. Same with WiF access points and multiple SSIDs.

                              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 jahonixJ 2 Replies Last reply Jun 7, 2018, 11:54 AM Reply Quote 0
                              • J
                                JeGr LAYER 8 Moderator @JKnott
                                last edited by Jun 7, 2018, 11:54 AM

                                @jknott said in VLAN tagging with untagged parent interface:

                                @jahonix said in VLAN tagging with untagged parent interface:

                                I can remember times when it was a no-go to mix tagged and untagged traffic on the same interface. I still cringe when I read about it ... but try to 🀐 at least.

                                You'll find that's typical when VoIP phones and computers share the same cable. Same with WiF access points and multiple SSIDs.

                                Exactly. One of the corner cases, where other solutions aren't workable (at least not with a single wire solution) ;)

                                But even if client ports are configured that way, one is still a bit cleaner in configuring the upstream port to pfsense as trunk with VLANs only. But that's just IMHO :)

                                Don't forget to upvote πŸ‘ those who kindly offered their time and brainpower to help you!

                                If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                                1 Reply Last reply Reply Quote 0
                                • jahonixJ
                                  jahonix @JKnott
                                  last edited by Jun 7, 2018, 10:34 PM

                                  @jknott said in VLAN tagging with untagged parent interface:

                                  You'll find that's typical when VoIP phones and computers share the same cable.

                                  Do I sound as if I needed this explained?
                                  Being able to remember the distant past but not 5 minutes ago is called Morbus Alzheimer. My mom suffers from it badly.

                                  Same with WiF access points and multiple SSIDs.

                                  Buy serious wireless APs with all traffic tagged, not consumer gear on steroids.

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