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

    VLAN suddenly stopped working

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    21 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.
    • B
      Brian Smit
      last edited by Brian Smit

      Hello everyone,

      I have 2 VLANs:
      Vlan 1 (internal Wifi)
      Vlan 2 (guest Wifi)

      And somehow , all of the sudden, when a guest connects to the Guest Wifi , the device won't get a IP-address anymore.
      The accesspoint config has been checked
      The config of the switch has been checked

      Edit:
      If i configure a port manually , as a trunk port with just vlan id 2, then i get an IP...

      Is there someone with tips maybe, how to troubleshoot this

      Hardware:
      1 PFsense router connected to 1 aerohive switch which is directly connected to the APs (from Aerohive)

      Thank you in advance!

      N J 2 Replies Last reply Reply Quote 0
      • N
        NRgia @Brian Smit
        last edited by NRgia

        @brian-smit please specify the pfSense version, any packages that you have installed?
        Also it will help to know the model of both AP and switch.

        B 1 Reply Last reply Reply Quote 0
        • B
          Brian Smit @NRgia
          last edited by

          @nrgia

          Thank You! I'm using PFsense 2.6.0

          Aerohive AP122Accesspoints and the Aerohive SR2324P switch, everything with the latest firmware

          1 Reply Last reply Reply Quote 0
          • J
            Jarhead @Brian Smit
            last edited by Jarhead

            @brian-smit said in VLAN suddenly stopped working:

            If i configure a port manually , as a trunk port with just vlan id 2, then i get an IP...

            Is there someone with tips maybe, how to troubleshoot this

            How exactly are you getting both vlans to your switch if not using a trunk?
            Explain in detail. What does "manually configure as trunk" mean? Which port are you configing?

            If you have 2 vlans in pfSense, you would have to have a trunk port on your switch connected to your pfSense unless you have separate interfaces per vlan.

            B 1 Reply Last reply Reply Quote 0
            • B
              Brian Smit @Jarhead
              last edited by Brian Smit

              @jarhead

              Thank you for thinking with me.

              I connected my Pfsense machine directly to the switch and every port of the switch has been configured like this :
              Trunk port / all VLANs allowed

              929dce10-7e81-4e02-ad9f-cd9cb5e0e3ee-image.png

              If i change "Native" to 2 of a port connected to my laptop , then i get a IP-address from Pfsense which belongs to VLan 2, if i change it back to 1, then i get an IP-address which belongs to teh private LAN, VLAN1

              J 1 Reply Last reply Reply Quote 0
              • J
                Jarhead @Brian Smit
                last edited by

                @brian-smit Show me vlan 2 in the switch.
                Should be a place to add vlans, you should have vlan 1 and 2 at least.
                Why would you allow all vlans on all ports?
                Isn't the point of this to separate the guest from the internal??

                B 2 Replies Last reply Reply Quote 0
                • B
                  Brian Smit @Jarhead
                  last edited by

                  @jarhead

                  I did it as a test , and it honestly worked like this , where it says "Allowed all" , i can change it to 1,2

                  J 1 Reply Last reply Reply Quote 0
                  • B
                    Brian Smit @Jarhead
                    last edited by

                    @jarhead

                    yes: if you connect to the Guest Wlan , it will use Vlan2 , if you connect to the Private WLAN, it will use Vlan1.

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      Jarhead @Brian Smit
                      last edited by Jarhead

                      @brian-smit Are you connected to pfSense on one interface or two?
                      If one, layer 2 traffic would never get to the router. If you allow all vlans on every port, you're not separating the networks.
                      Assuming a trunk port to pfSense (since you didn't answer that), set the trunk to native 1, tagged 2.
                      Set the port that connects to the guest AP to untagged 2 only.
                      Set all other ports to 1 only

                      1 Reply Last reply Reply Quote 0
                      • J
                        Jarhead @Brian Smit
                        last edited by

                        @brian-smit said in VLAN suddenly stopped working:

                        @jarhead

                        yes: if you connect to the Guest Wlan , it will use Vlan2 , if you connect to the Private WLAN, it will use Vlan1.

                        How can you say that?? Are the AP's dhcp? If both vlans are going to it, what's to stop it from getting a vlan 1 IP address?

                        B 1 Reply Last reply Reply Quote 0
                        • B
                          Brian Smit @Jarhead
                          last edited by

                          @jarhead

                          yes, this is configured inside the AP , a connecting to the Private SSID sents you to Vlan1, connecting to the guest SSID sents you to Vlan2

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            Jarhead @Brian Smit
                            last edited by

                            @brian-smit Ok, so you need a trunk going to the AP as well. Same as pfSense port, native 1, tagged 2.

                            B 1 Reply Last reply Reply Quote 0
                            • B
                              Brian Smit @Jarhead
                              last edited by

                              @jarhead

                              Yes indeed, i will change the settings tomorrow and keep you informed !

                              Thank you for the help!

                              N 1 Reply Last reply Reply Quote 0
                              • N
                                NRgia @Brian Smit
                                last edited by

                                @brian-smit From the manual: "802.1Q VLAN Trunk Ports for APs
                                The trunk ports are the ones through which Aerohive APs connect to the wired network. They support 802.1Q tagging and must allow all the VLANs to which the APs assign user traffic, the management VLAN for the APs, and the native (untagged) VLAN. "
                                You can find more here: https://docs.aerohive.com/330000/docs/guides/Aerohive-Switch-Deployment-Essentials.pdf under "Configuring a Network Policy" section.

                                B 1 Reply Last reply Reply Quote 1
                                • B
                                  Brian Smit @NRgia
                                  last edited by

                                  @nrgia

                                  Thank You ! I will go through the steps tomorrow. A small change has been made and that had big consequences (and i am overseeing it)

                                  1 Reply Last reply Reply Quote 0
                                  • B
                                    Brian Smit
                                    last edited by Brian Smit

                                    is there someone maybe with tips where to find the problem ?

                                    I wonder if (DHCP) requests are being received by PFsense

                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      Jarhead @Brian Smit
                                      last edited by

                                      @brian-smit Did you tag the vlan on the correct port? Do you have the correct vlan untagged on the ports you need?

                                      Post pictures of pfSense and switch configs

                                      B 1 Reply Last reply Reply Quote 1
                                      • B
                                        Brian Smit @Jarhead
                                        last edited by Brian Smit

                                        @jarhead said in VLAN suddenly stopped working:

                                        Did you tag the vlan on the correct port? Do you have the correct vlan untagged on the ports you need?

                                        Yes - i double checked this.

                                        Pictures of my PFsense config:

                                        Interface Assignments:
                                        9e94e78f-73e1-4df8-9306-c93a11284b6b-image.png

                                        Interfaces - VLANs:
                                        fafd4ef5-f4f7-4495-8420-d72f3539c912-image.png

                                        Interfaces - Guests (igb1.2)
                                        4326ae10-51bd-4bce-b9bd-91b1034b9486-image.png

                                        Services - DHCP Server - Guests
                                        f9e0d4f5-b024-4e14-980b-15103cfd9807-image.png

                                        Switch port configuration:

                                        5c8a9f17-780d-42c1-bb87-d31c02fa09eb-image.png

                                        fb7a09d2-1adc-49c0-9c61-fb0eea360127-image.png

                                        2fc6bbc9-087f-417f-b286-27fb536f77dc-image.png

                                        J 1 Reply Last reply Reply Quote 0
                                        • J
                                          Jarhead @Brian Smit
                                          last edited by

                                          @brian-smit So I'll ask again... Why are you allowing all vlans on all ports?

                                          Set it up correctly. All ports do not nned to be trunks, it will still work if correct vlans are on them but not needed.

                                          Set up untagged ports which conect to clients.
                                          Set up tagged ports that connect to pfSense and AP's.
                                          These ports should only allow the vlan's needed on each.

                                          B 2 Replies Last reply Reply Quote 1
                                          • B
                                            Brian Smit @Jarhead
                                            last edited by

                                            @jarhead

                                            I'm going to change it and will change the other ports indeed into access ports.

                                            I'll report back :-)

                                            Above switch config could be the whole issue?

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