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

    New VLAN setup

    Scheduled Pinned Locked Moved General pfSense Questions
    50 Posts 5 Posters 17.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.
    • ?
      A Former User
      last edited by

      @marcelloc:

      well, you can use only one cable to hp-vlan switch, just tag port with all vlans you need and connect re1.

      But if you need more then 100Mbit, you may need two interfaces.

      ok, i do follow what your saying, but now i dont understand the purpose of a VLAN.  in this scenario, i am not creating a VLAN, i am just creating another LAN.

      i guess this is why i never tried to setup a vlan, everytime i try, i get going in 5 different directions and can never get down the basics.

      thanks.

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by

        also, if there is a better way to setup a VLAN to do some practical testing, let me know and i would be glad to give that way a shot.

        thanks.

        1 Reply Last reply Reply Quote 0
        • marcellocM
          marcelloc
          last edited by

          on your switch configure:

          • wifi port with vlan 100 untaged

          • firewall port with vlan 1 and 100 tagged

          on firewall configure:

          • vlan1 on re1 for lan interface

          • vlan100 on re1 for wifi interface

          • Assign dhcp range 192.168 to lan

          • Assign dhcp range 10.0.10 for wifi

          After this, you will have two working networks on re1.

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User
            last edited by

            @marcelloc:

            on your switch configure:

            • wifi port with vlan 100 untaged

            • firewall port with vlan 1 and 100 tagged

            on firewall configure:

            • vlan1 on re1 for lan interface

            • vlan100 on re1 for wifi interface

            • Assign dhcp range 192.168 to lan

            • Assign dhcp range 10.0.10 for wifi

            After this, you will have two working networks on re1.

            ok.  for the wifi port on the hp switch…i will untag that...what should i do with the rest?  e?

            for the firewall port, i will tag 1 and 100, but what do i with the rest...e?

            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              The default vlan id is 1 and default configuration for all ports are vlan id 1 untag, so you do not need to do anything, just check if it's configured on your switch

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User
                last edited by

                @marcelloc:

                The default vlan id is 1 and default configuration for all ports are vlan id 1 untag, so you do not need to do anything, just check if it's configured on your switch

                what about vlan100?

                1 Reply Last reply Reply Quote 0
                • ?
                  A Former User
                  last edited by

                  vlan1

                  wifi vlan 100

                  1 Reply Last reply Reply Quote 0
                  • marcellocM
                    marcelloc
                    last edited by

                    change port1 vlan1 from U to T and wifi port on vlan100 toU

                    Treinamentos de Elite: http://sys-squad.com

                    Help a community developer! ;D

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by

                      @marcelloc:

                      change port1 vlan1 from U to T and wifi port on vlan100 toU

                      ok, i am going to do that now, but this is why i am confused

                      "The default vlan id is 1 and default configuration for all ports are vlan id 1 untag, so you do not need to do anything, just check if it's configured on your switch"

                      makes it seem like i need to leave everything as is on the default vlan…but like i said, i am changing it now.

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User
                        last edited by

                        @marcelloc:

                        change port1 vlan1 from U to T and wifi port on vlan100 toU

                        when i go to make these changes on vlan1 it tells me i might lose web management connection.

                        also, is the wifi port, port 1 as well, or should i use port 2 for that?

                        1 Reply Last reply Reply Quote 0
                        • marcellocM
                          marcelloc
                          last edited by

                          change configuration with a machine connected to any port other then ports you are changing

                          leave port 1 for firewall machine as you are tagging vlan on it and use port 2 for the wifi router as you are not changing anything there.

                          when you use tagged ports, the machine/router plugged on this port must have vlan tags configured to work

                          when you use untag portsm the machine does not need to know that it is on a vlan.

                          just pay attention to do not use tag and untag on same port.

                          Treinamentos de Elite: http://sys-squad.com

                          Help a community developer! ;D

                          1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User
                            last edited by

                            @marcelloc:

                            change configuration with a machine connected to any port other then ports you are changing

                            leave port 1 for firewall machine as you are tagging vlan on it and use port 2 for the wifi router as you are not changing anything there.

                            when you use tagged ports, the machine/router plugged on this port must have vlan tags configured to work

                            when you use untag portsm the machine does not need to know that it is on a vlan.

                            just pay attention to do not use tag and untag on same port.

                            vlan1

                            T U U U U U U U

                            vlan 100 (wifi)

                            E T E E E E E E

                            is what i should end up with?

                            1 Reply Last reply Reply Quote 0
                            • marcellocM
                              marcelloc
                              last edited by

                              this way:
                              vlan1

                              T E U U U U U U

                              vlan 100 (wifi)

                              T U E E E E E E

                              port 1 firewall

                              port 2 wifi

                              Treinamentos de Elite: http://sys-squad.com

                              Help a community developer! ;D

                              1 Reply Last reply Reply Quote 0
                              • ?
                                A Former User
                                last edited by

                                @marcelloc:

                                this way:
                                vlan1

                                T E U U U U U U

                                vlan 100 (wifi)

                                T U E E E E E E

                                port 1 firewall

                                port 2 wifi

                                ok, so once a port is tagged, it has to be marked as tagged in every vlan you create?

                                i just made those changes…moving to pfsense now.

                                1 Reply Last reply Reply Quote 0
                                • ?
                                  A Former User
                                  last edited by

                                  here is pfsense setup

                                  i am not done, i am stuck, here.

                                  i cant set two things on re1.  only one at a time.

                                  1 Reply Last reply Reply Quote 0
                                  • marcellocM
                                    marcelloc
                                    last edited by

                                    Lan will be vlan1 on re1 and opt1 will be vlan100 on re1.

                                    Disconnect re2

                                    Treinamentos de Elite: http://sys-squad.com

                                    Help a community developer! ;D

                                    1 Reply Last reply Reply Quote 0
                                    • ?
                                      A Former User
                                      last edited by

                                      and then i can plug in my 16 port netgear into a port on the HP that i didnt configure yet…we forgot to calculate that.  everything on that 16 port netgear is on 192.168.1.0 /24 network...do i need to tag another port on the hp vlan switch?

                                      so it will look like this

                                      isp-----cable modem-------pfsense-------hp vlan switch--------16 port netgear

                                      1 Reply Last reply Reply Quote 0
                                      • marcellocM
                                        marcelloc
                                        last edited by

                                        Or use re2 as opt2 to connect netgear.

                                        Treinamentos de Elite: http://sys-squad.com

                                        Help a community developer! ;D

                                        1 Reply Last reply Reply Quote 0
                                        • ?
                                          A Former User
                                          last edited by

                                          @marcelloc:

                                          Or use re2 as opt2 to connect netgear.

                                          but isnt network 192.168.1.1 already existing on re1?

                                          1 Reply Last reply Reply Quote 0
                                          • marcellocM
                                            marcelloc
                                            last edited by

                                            If both switches are on same network, just plug netgear on port 3

                                            Treinamentos de Elite: http://sys-squad.com

                                            Help a community developer! ;D

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