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

    How to make multiplie VLANs on one ETH port?

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    11 Posts 4 Posters 1.1k 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
      nick.loenders
      last edited by

      Hi, I managed to have a LAN and a VLAN on a Netgate XG-7100 when using 2 cables on ETH2 and ETH8, to seperate the traffic.

      But is it possible to have the LAN and VLAN on only the ETH2?

      So I have:

      2373d236-f441-4378-8743-ddcce498bec1-image.png 53cd8577-15df-4b3f-a7f0-770d59d01a58-image.png

      d527f938-b9bc-4d30-8eb7-3f3a468fd0bf-image.png 091aaaef-4ca3-4ef0-a9e6-8e49297b000d-image.png

      35451ecb-07b9-44ec-8e22-d09af5e52ca7-image.png

      And that way I can get it to work. But this is in a test setup. In the live environment I can do this to the first switch. But to the second switch I only have 1 cable.... On other Netgate it is easier to do, but on the XG-7100 it seems I cannot find the solution to put the 2 vlans on one ETH port?

      Anyone can help or tell me it just is not possible?

      JKnottJ DerelictD 2 Replies Last reply Reply Quote 0
      • JKnottJ
        JKnott @nick.loenders
        last edited by

        @nick-loenders

        You make them the same was as the first. Just use a different VLAN number when you create 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...

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate @nick.loenders
          last edited by

          @nick-loenders You certainly have to tag them. You may only have one untagged VLAN on a switch port.

          If it is an inter-switch link (vlan trunk) I would just set them all to tagged on each side. The pfSense interface will not change, just the tagged status on the switch ports.

          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)

          N 1 Reply Last reply Reply Quote 0
          • N
            nick.loenders @Derelict
            last edited by

            @derelict @JKnott
            Can anyone show me a screenshot of how it should be?

            if the VLAN tag is 70, how can it be 4090 and 70 (and 80 and 90) ??

            JKnottJ DerelictD 2 Replies Last reply Reply Quote 0
            • JKnottJ
              JKnott @nick.loenders
              last edited by JKnott

              @nick-loenders

              What's to show? If you did it once, you can do it again. You do the exact same thing except pick a different VLAN number.

              You go into Interfaces / VLANs and add a VLAN, filling in the appropriate details
              Then you to into Interfaces / Interface Assignments to add it and assign a name.

              You will then have two VLANs, one with each number. It sounds like you have to brush up on VLAN frames. When you create a VLAN, all you do is add a 4 byte tag, which identifies which VLAN a frame belongs to. So, with the different VLANs, the ID within a frame will be different.

              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
              • DerelictD
                Derelict LAYER 8 Netgate @nick.loenders
                last edited by

                @nick-loenders Connect port 8 to a switch port on the switch that also tags VLANs 70, 80, and 90. Note that those VLANs are tagged (8t) not untagged (8)

                2cfea3ab-5ab2-4bbf-8201-5e6af4d07635-image.png

                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)

                N 1 Reply Last reply Reply Quote 0
                • N
                  nick.loenders @Derelict
                  last edited by

                  @derelict OK, so the VLAN I changed and in my example I also added the vlan80
                  But how do I make the LAN, vlan70 and vlan80 connect on ETH2 ?

                  9d13d666-b572-43c6-9e9e-225c91a5b0b8-image.png

                  46a16823-433d-40a3-a17f-9ad30969b61d-image.png

                  DerelictD 1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate @nick.loenders
                    last edited by

                    @nick-loenders said in How to make multiplie VLANs on one ETH port?:

                    @derelict OK, so the VLAN I changed and in my example I also added the vlan80
                    But how do I make the LAN, vlan70 and vlan80 connect on ETH2 ?

                    You would need to add VLANs 70 and 80 as tagged on port 2 just like port 8. (VLAN groups 3 and 4 should be 2t,8t,9t,10t)

                    Whatever is connected to port 2 would then be on VLAN 4091 for untagged traffic, and VLANs 70 or 80 if tagged for them.

                    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)

                    N 2 Replies Last reply Reply Quote 0
                    • N
                      nick.loenders @Derelict
                      last edited by

                      @derelict so it should be like this?

                      929d65ac-1824-4dc4-8365-412c9dd2d313-image.png

                      and then all the vlans are on ETH2 ?

                      1 Reply Last reply Reply Quote 0
                      • N
                        nick.loenders @Derelict
                        last edited by

                        @derelict I mean, I think this is working, but I'm looking for confirmation :)

                        NogBadTheBadN 1 Reply Last reply Reply Quote 0
                        • NogBadTheBadN
                          NogBadTheBad @nick.loenders
                          last edited by

                          @nick-loenders Do a packet capture on the interface and look at the packet tags ?

                          Andy

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

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