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

    DHCP on VLAN

    Scheduled Pinned Locked Moved L2/Switching/VLANs
    25 Posts 6 Posters 1.9k 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.
    • J
      JustSumDad
      last edited by

      I have run into a wall and dont know where to turn now, I need some help here.

      I was running a full Unifi system, USG, switches, wifi AP's, and a self hosted controller.
      All was working good until the USG died, and I decided to switch to a hosted pfSense router as unifi does not have any better router than the USG-PRO that I can get hold of...
      Now I get to learn many things...

      So everything works except my guest wifi network.
      I followed a guide that showed me how to create the vlan interface in pfsense and set the firewall rules, dhcp etc all for the guest network. This is the guide I followed:
      https://www.youtube.com/watch?v=hhPGN4UJHAM

      It covered every aspect but where I cannot figure things out is for some reason my clients are not getting DHCP. I ran thru the video four times now and I am certain I did everything exactly the same!
      I am wondering if my LAN DHCP that runs on my windows domain server VM is a problem somehow? It is not reporting any issues.
      Everything is on VLAN so I just dont get it!

      V ? S 3 Replies Last reply Reply Quote 0
      • V
        viragomann @JustSumDad
        last edited by

        @justsumdad said in DHCP on VLAN:

        I am wondering if my LAN DHCP that runs on my windows domain server VM is a problem somehow?

        Quite improbably.

        I rather suspect, your VLAN is not working properly.
        Your pfSense is virtualized?

        What is the other end of the VLAN? The switch or the wifi AP?
        Did it work this way before?

        J 2 Replies Last reply Reply Quote 0
        • J
          JustSumDad @viragomann
          last edited by

          @viragomann
          the vlan is created in pfSense, under interfaces. Simply called guest.
          parent interface is lan
          ipv4 address of 10.10.0.1/24
          VLAN 30 on vmx2 - lan (Guest)
          The DHCP Server is created under pfSense as well, taged to the guest interface.
          firewall rule is created to pass all on guest, any protocol. will be hardened later.

          for the Unifi side, a network was added just for VLAN, to inform the switches of the vlan
          called Guest

          then a wifi network was created, very basic, connected to the guest vlan.

          No, this setup has never worked with pfSense it only worked when all components were unifi.

          1 Reply Last reply Reply Quote 0
          • J
            JustSumDad @viragomann
            last edited by

            @viragomann
            oh and yes, I am running the pfSense virtualized.
            Under vmware.

            ? V johnpozJ 3 Replies Last reply Reply Quote 0
            • ?
              A Former User @JustSumDad
              last edited by

              @justsumdad said in DHCP on VLAN:

              for some reason my clients are not getting DHCP.

              in pfsense configure the dhcp relay? or dhcpserver?

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

                @justsumdad said in DHCP on VLAN:

                oh and yes, I am running the pfSense virtualized.

                How many NICs do you have in your VMware? and how are brige mode?

                I want to know physically, how to connect everything.

                J 1 Reply Last reply Reply Quote 0
                • V
                  viragomann @JustSumDad
                  last edited by

                  @justsumdad
                  Are you sure, VMware is passing VLAN tags?

                  ? J 2 Replies Last reply Reply Quote 0
                  • ?
                    A Former User @viragomann
                    last edited by

                    @viragomann said in DHCP on VLAN:

                    Are you sure, VMware is passing VLAN tags?

                    I ask myself the same question.

                    1 Reply Last reply Reply Quote 0
                    • J
                      JustSumDad @A Former User
                      last edited by JustSumDad

                      @silence said in DHCP on VLAN:

                      want to know physically, h

                      The server has unused NIC's onboard, setup as per this guide:
                      https://www.youtube.com/watch?v=UCLWSAc3QrY

                      works great.

                      not in bridge mode, the fiber modem is in bridge mode, one nic is direct to the modem called WAN
                      Another port is direct to the switch bay, Called LAN.

                      So its doing NAT. 3a9a736f-387c-4f54-8154-c26cca2a9b58-image.png

                      1 Reply Last reply Reply Quote 0
                      • J
                        JustSumDad @viragomann
                        last edited by

                        @viragomann
                        I really belive it is passing VLAN tags, if I set a static IP on the wifi test client it does get access to the internet.
                        Only DHCP seems to be an issue.

                        ? V 2 Replies Last reply Reply Quote 0
                        • ?
                          A Former User @JustSumDad
                          last edited by

                          @justsumdad said in DHCP on VLAN:

                          DHCP seems to be an issue.

                          please answer my previous question dhcp relay or dhcp server in pfsense ?

                          J 1 Reply Last reply Reply Quote 0
                          • V
                            viragomann @JustSumDad
                            last edited by viragomann

                            @justsumdad
                            So the VLAN should work.

                            To investigate, sniff the traffic on the VLAN interface (Diagnostic > Packet capture).
                            Set a port filter:

                            67|68
                            

                            to catch only DHCP packets.

                            Start the capture and connect a client to the VLAN. Then see what you get.

                            J 1 Reply Last reply Reply Quote 1
                            • J
                              JustSumDad @A Former User
                              last edited by

                              @silence said in DHCP on VLAN:

                              @justsumdad said in DHCP on VLAN:

                              DHCP seems to be an issue.

                              please answer my previous question dhcp relay or dhcp server in pfsense ?

                              Sorry, pfSense is the DHCP server, there is no DHCP relay in the network at all.

                              The lan DHCP is takeing place in the Windows server.

                              The VLAN DHCP server is takeing place in pfSense.

                              1 Reply Last reply Reply Quote 0
                              • J
                                JustSumDad @viragomann
                                last edited by

                                @viragomann said in DHCP on VLAN:

                                @justsumdad
                                So the VLAN should work.

                                To investigate, sniff the traffic on the VLAN interface (Diagnostic > Packet capture).
                                Set a port filter:

                                57|58
                                

                                to catch only DHCP packets.

                                Start the capture and connect a client to the VLAN. Then see what you get.

                                Nothing, no packets appear. I did an ipconfig /renew on the laptop that is connected while the capture was on:
                                27fa75bd-5b70-4894-ab93-d85d57ecf185-image.png

                                ? V 2 Replies Last reply Reply Quote 0
                                • ?
                                  A Former User @JustSumDad
                                  last edited by

                                  @justsumdad, configure a dhcp relay to your dhcp server in windows server?

                                  Disable DHCP Server in pfsense.

                                  J 1 Reply Last reply Reply Quote 0
                                  • V
                                    viragomann @JustSumDad
                                    last edited by

                                    @justsumdad
                                    Oh, sorry, I was wrong. We need port 67|68.
                                    I'll correct it above.

                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      JustSumDad @A Former User
                                      last edited by

                                      @silence
                                      not sure how to tag a DHCP to a vlan in windows.
                                      Will look into it, but if pfSense cant do it, I expect that would bring more issues into the mix.

                                      ? 1 Reply Last reply Reply Quote 0
                                      • J
                                        JustSumDad @viragomann
                                        last edited by

                                        @viragomann said in DHCP on VLAN:

                                        @justsumdad
                                        Oh, sorry, I was wrong. We need port 67|68.
                                        I'll correct it above.

                                        I just got a nasty ph call from the boss, had to whip up a temp guest wifi from our backup ISP via a small USG I have in stock for satellite offices.
                                        told to keep my paws off till after hours for now.

                                        will pick this up another day :(

                                        Thanx for the assist thus far everyone!

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          SteveITS Galactic Empire @JustSumDad
                                          last edited by

                                          @justsumdad You could try setting up a PC on VLAN 30 with a static IP to verify it can ping the pfSense IP. That would at least verify communication.

                                          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                                          Upvote 👍 helpful posts!

                                          ? bingo600B 2 Replies Last reply Reply Quote 0
                                          • ?
                                            A Former User @SteveITS
                                            last edited by

                                            @steveits said in DHCP on VLAN:

                                            try setting up a PC on VLAN 30 with a static IP to verify it can ping the pfSense IP

                                            Excuse me but if you can read above @JustSumDad He said he already did that.

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