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

    VLAN tag on more than 1 interface

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    22 Posts 3 Posters 1.8k 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.
    • N
      ncm-com
      last edited by

      I'm so confused about how to tag the same VLAN on two-ports on pfSense.
      The following from a Watchguard firewall that I can tag or untag traffic on multiple interfaces, Can I do the same on pfSense?
      bb965ac1-a97d-4f27-a1a0-d8bf0e8e9d44-image.png

      JKnottJ 1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott @ncm-com
        last edited by

        @ncm-com

        Yes, you can. Why do you think you can't?

        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
          ncm-com
          last edited by ncm-com

          what if I wanna tag VLAN 40 on vmx 3 I have no option? also tried to add the same interface to VLAN but no luck.
          1cc44b43-fbfa-48c2-b18f-f352faf5db01-image.png

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

            @ncm-com said in VLAN tag on more than 1 interface:

            'm so confused about how to tag the same VLAN on two-ports on pfSense

            How would that work?? I you want more than 1 interface in the same vlan you would need to setup a lagg..

            The ports are not switch ports.. And if your doing this as VM.. Why would you think you even want or need to do such a thing? What do you think this would accomplish?

            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

            JKnottJ N 2 Replies Last reply Reply Quote 0
            • JKnottJ
              JKnott @johnpoz
              last edited by

              @johnpoz

              I suspect he's talking about one VLAN on the WAN interface and one on the LAN. In that case, it shouldn't be an issue.

              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
                ncm-com @johnpoz
                last edited by ncm-com

                @johnpoz
                Thanks for your reply
                I'm trying to untag VLAN on to Vswitch so I can connect to the physical switch outside the esxi, I think I have to setup lagg but not sure how to do this ?
                19014a3c-0e86-44df-a955-f40ef4538bbc-image.png

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

                  @JKnott said in VLAN tag on more than 1 interface:

                  I suspect he's talking about one VLAN on the WAN interface and one on the LAN

                  Is that what your talking about @ncm-com.. Vlans outside of pfsense have zero to do with pfsense..l

                  Please explain exactly what your wanting to do... Your statements as of now don't really make any sense..

                  You can not place the same vlan on 2 different interfaces in pfsense.. You can't.. You could create a bridge or lag if you want 2 different physical interfaces to be in the same vlan.

                  As to what your wanting to do with esxi? Do you want it to handle the tags or pass those tags on to pfsense? 4095 vlan id in esxi will pass the tags, any other setting will strip tags.

                  Thee would be be zero point to creating multiple vnics in esxi and handing them to pfsense and putting them in the same vlan..

                  I am more than happy to try and help you - but currently have no idea what your trying to accomplish..

                  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

                  JKnottJ 1 Reply Last reply Reply Quote 1
                  • N
                    ncm-com
                    last edited by ncm-com

                    Many thanks
                    You can not place the same vlan on 2 different interfaces in pfsense.. You can't.. You could create a bridge or lag if you want 2 different physical interfaces to be in the same vlan.

                    So I think I have to create a LAGG in order to sent traffic through both interfaces? any idea how to do this? I guess I have to create the firewall rules as I can't add the existing VLAN to a new LAGG interface

                    Thee would be be zero point to creating multiple vnics in esxi and handing them to pfsense and putting them in the same vlan..
                    there are physical switches connecting outside the esxi so it would be an advantage to untag/tagged traffic to another port

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

                      @johnpoz said in VLAN tag on more than 1 interface:

                      You can not place the same vlan on 2 different interfaces in pfsense.. You can't..

                      You can place the same VLAN number on more than one interface. I just did that. I created VLAN 3 on my WAN interface, which I already had on my LAN interface.

                      bge0.3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
                      options=80003<RXCSUM,TXCSUM,LINKSTATE>
                      ether 00:16:17:a7:f2:d3
                      inet6 fe80::216:17ff:fea7:f2d3%bge0.3 prefixlen 64 scopeid 0x8

                      re0.3: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
                      options=80003<RXCSUM,TXCSUM,LINKSTATE>
                      ether 00:14:d1:2b:ed:ea
                      inet6 fe80::214:d1ff:fe2b:edea%re0.3 prefixlen 64 scopeid 0xa

                      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
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        @ncm-com said in VLAN tag on more than 1 interface:

                        So I think I have to create a LAGG in order to sent traffic through both interfaces?

                        Why do you want to send traffic through 2 virtual interfaces that are the same network - that serves no purpose...

                        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 Reply Quote 0
                        • JKnottJ
                          JKnott @ncm-com
                          last edited by

                          @ncm-com said in VLAN tag on more than 1 interface:

                          So I think I have to create a LAGG in order to sent traffic through both interfaces? any idea how to do this? I guess I have to create the firewall rules as I can't add the existing VPAN in this case?

                          Perhaps you'd better describe what exactly you want to do.

                          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
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator
                            last edited by johnpoz

                            @JKnott said in VLAN tag on more than 1 interface:

                            just did that. I created VLAN 3 on my WAN interface, which I already had on my LAN interface.

                            That is not the same vlan... that is the same vlan ID.. Not the same vlan.. And even if pfsense doesn't stop you from doing that.. Its a horrible IDEA..

                            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

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

                              @johnpoz

                              Yes, I am aware of that and know there is no data connection between them, unless set up in routing. However, the way you wrote what you said left the question open. Regardless, we still need to find out what he wants to do. Earlier on, I got the impression he wanted VLANs on more that one interface, which is certainly possible, even with the same VLAN ID.

                              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
                                ncm-com @johnpoz
                                last edited by

                                @johnpoz
                                3ce5ef90-9b22-4798-9e9d-14f2cb80b0f3-image.png

                                Please see the above scenario,

                                I can use LAN1 interface goes to VLAN switch and LAN2 interface to the non-manage switch so the bandwidth will use both interfaces?

                                JKnottJ 1 Reply Last reply Reply Quote 0
                                • JKnottJ
                                  JKnott @ncm-com
                                  last edited by

                                  @ncm-com

                                  So, you want the unmanaged switch to be on VLAN 20? If so, then you'd have to create a bridge between LAN 1 & LAN 2. However, the better way would be to just configure a port for VLAN 20 on the managed switch, which would then connect to the unmanaged one.

                                  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
                                  • johnpozJ
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by johnpoz

                                    @ncm-com said in VLAN tag on more than 1 interface:

                                    so the bandwidth will use both interfaces?

                                    But your pfsense is virtual... You handle the physical interfaces in esxi... let it do the tagging.. All pfsense needs to know is that its the "lan" and on vnic x

                                    vmx is internal and would be 10ge interface to pfsense..

                                    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

                                    JKnottJ N 2 Replies Last reply Reply Quote 0
                                    • JKnottJ
                                      JKnott @johnpoz
                                      last edited by

                                      @johnpoz said in VLAN tag on more than 1 interface:

                                      But your pfsense is virtual...

                                      Forgot about that.

                                      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
                                        ncm-com @johnpoz
                                        last edited by

                                        @johnpoz
                                        I actually connect them to physical adaptors from the esxi
                                        92463f65-aeef-4c05-8b5a-91c725dbfa4f-image.png
                                        they are gigabit interfaces

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

                                          Also what is the bandwidth getting you? Is where this traffic going more than 1 gig? Your wan, multiple other vlans?

                                          Traffic between devices on the same network traffic doesn't even flow through pfsense... So why do you think you need more bandwidth and more than 1 connection into pfsense to leverage that more bandwidth?

                                          Connect both of the physical nics to the same vswitch/port group..

                                          This makes ZERO sense to setup..

                                          makesnosense.jpg

                                          What exactly do you think that accomplishes???

                                          Connect your physical nics to same vswitch, and then break out your different vlans via port groups.

                                          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 Reply Quote 0
                                          • N
                                            ncm-com @johnpoz
                                            last edited by

                                            @johnpoz
                                            the pfsense is a VM on the host, and I'm trying to send traffic out to different physical adaptors let say vmnic 2 and vmnic 3

                                            Connect both of the physical nics to the same vswitch/port group..
                                            I tried the above but no luck

                                            I got it, I could untag VLAN 20 using the Vswitch connected to the vmnic2,

                                            but let say if the traffic between VLANs reaching 500mbps it will create a bottleneck on one interface that would not be the case if the traffic using two ports?

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