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

DHCP failing when moving between AP's

DHCP and DNS
dhcp unifi access point
4
13
2.1k
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
    jafr
    last edited by Oct 8, 2018, 8:33 AM

    Right now we're having a pfSense running on an old computer, acting as a firewall, DCHP Server, FreeRADIUS server (with external database) and so forth.
    It's been running smoothly for all the time I've been in the company, however when we decided to switch from AeroHive AP's to Unifi UAP-Pro AP's, for some reason we're experiencing DHCP issues for some devices. It's not always the same devices, and it's not always on the same AP.

    We increased the amount of AP's from 3 to 5, but I'm having a hard time seeing why this should be the cause of issues.
    I've checked the DHCP range on both of the Wireless Network VLAN's, and neither are close to being completely used.
    They're running on the following ranges;
    10.20.0.10 - 10.20.0.254
    10.80.0.10 - 10.80.0.254

    The heaviest load I've seen on them so far is 76 on VLAN 80 and 45 on VLAN 20 at the same time. But this shouldn't even be close to max capacity, as far as I know?

    Anyone have an idea of what I need to check, to make sure everything is set up correct, or maybe how to increase the capacity of the DHCP server?

    1 Reply Last reply Reply Quote 0
    • D
      Derelict LAYER 8 Netgate
      last edited by Derelict Oct 8, 2018, 8:46 AM Oct 8, 2018, 8:40 AM

      What is in the DHCP server logs? Is it even seeing the DISCOVERs and REQUESTs of the clients that are failing? When you get one that fails note the time and the MAC address of the device and check the logs.

      I ran pfSense DHCP with 650 APs and thousands of simultaneous clients. Looking at pfSense for the problem is probably not where the solution will be found (other than using its debugging tools like packet capture and logging).

      Increasing the number of APs should not matter to DHCP. It's only concerned with the number of clients with leases.

      You do have to be sure that your DHCP pools are large enough to accommodate the device churn and lease time. If you have devices coming and going a lot you might need to increase the pool size or decrease the lease time. You didn't state that you were using captive portal but that also plays into this formula.

      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)

      J 1 Reply Last reply Oct 8, 2018, 8:47 AM Reply Quote 0
      • J
        jafr @Derelict
        last edited by Oct 8, 2018, 8:47 AM

        @derelict
        There is no REQUEST when the device fails to get an IP assigned.
        However, if I set my device to use a known IP in the same range it connects right away.

        The error is mainly happening on two AP's that are in the same area of the building.
        I've tried swapping around the AP's and the error is still happening in the same spot, now on other AP's though. But at the same time, some clients can just connect to the network right away on the AP, so I'm having a hard time seeing exactly where the problem is happening.

        We don't have a lot of guests in the house, so it's mainly the same clients connecting to the different AP's.
        Right now the lease expires in 10 minutes on both VLANs. But given that we don't even have 250 devices in total I don't know how it should be a problem, specially when they're split on two VLANs.

        None of the networks are using a captive portal, but VLAN 20 is using FreeRADIUS authentication.

        1 Reply Last reply Reply Quote 0
        • D
          Derelict LAYER 8 Netgate
          last edited by Derelict Oct 8, 2018, 8:56 AM Oct 8, 2018, 8:53 AM

          "Roaming" between APs does not require a new DHCP lease. The client just continues to use the same lease.

          If pfSense is not even seeing a DISCOVER/REQUEST when one is necessary you need to look at the layer 2 - the controller, switches, and APs to see what's going on there.

          dhcpd cannot answer a request it never receives.

          I would capture on a SPAN/Mirror port on the switch to see if the AP is sending the DHCP DISCOVER/REQUEST from the client.

          10 minutes is really short. If you don't have a lot of client churn I'd increase that to at least 3600 seconds (1 hour). At 10 minutes you could possibly be confusing some DHCP clients but that's pretty much a guess.

          The WPA2 Enterprise RADIUS authentication would have to succeed before a lease request would be put on the network. But it sounds like this is happening on both SSIDs.

          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)

          J 1 Reply Last reply Oct 8, 2018, 8:59 AM Reply Quote 0
          • J
            jafr @Derelict
            last edited by Oct 8, 2018, 8:59 AM

            @derelict
            Regarding the REQUEST that's exactly what I'm thinking. It makes complete sense that it doesn't receive an IP when there's no REQUEST for it.
            I just don't understand why the REQUEST comes in when I set an IP on my device, but not if I set my device to receive the IP from the DHCP.

            The problem is happening on both SSID's yes, so I don't think the FreeRADIUS is the problem.

            1 Reply Last reply Reply Quote 0
            • D
              Derelict LAYER 8 Netgate
              last edited by Derelict Oct 8, 2018, 9:01 AM Oct 8, 2018, 9:00 AM

              If you set a static IP address there is no REQUEST because there is no DHCP.

              https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol

              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)

              J 1 Reply Last reply Oct 8, 2018, 9:05 AM Reply Quote 0
              • J
                jafr @Derelict
                last edited by jafr Oct 8, 2018, 9:09 AM Oct 8, 2018, 9:05 AM

                @derelict
                That makes a lot more sense then.
                I'm thinking the problem is occuring with the switch it is connected to, given that the same AP works without issues when set up on another port of the switch, and other APs are failing on the same port as well.

                1 Reply Last reply Reply Quote 0
                • D
                  Derelict LAYER 8 Netgate
                  last edited by Derelict Oct 8, 2018, 9:08 AM Oct 8, 2018, 9:08 AM

                  Some managed switches have higher-layer code for things like DHCP snooping and abuse prevention. I'd look there.

                  The fact that setting a static IP address always works leads me to believe that you have good layer 2 between the APs (and the clients) and the firewall port. So it must be something at a higher layer.

                  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)

                  1 Reply Last reply Reply Quote 0
                  • G
                    Gertjan
                    last edited by Gertjan Oct 8, 2018, 9:21 AM Oct 8, 2018, 9:20 AM

                    Hi,

                    What exactly is the problem ?

                    Client did ask for an IP, and didn't get one ?

                    Oops - didn't saw the 3 replies ...

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    J 1 Reply Last reply Oct 8, 2018, 9:22 AM Reply Quote 0
                    • J
                      jafr @Gertjan
                      last edited by Oct 8, 2018, 9:22 AM

                      @gertjan
                      Hi,

                      Well, the problem is that a REQUEST isn't sent to the DHCP server from one (mainly) AP, when clients are connecting to it, even though it's working like a charm on the other APs in the building that are connecting to the same DHCP server.

                      1 Reply Last reply Reply Quote 0
                      • G
                        Gertjan
                        last edited by Oct 8, 2018, 9:23 AM

                        Between this "AP" and pfSense "smart" switch ?
                        What happens when you change it for a less-smarter switch ? ;)

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

                        J 1 Reply Last reply Oct 8, 2018, 9:25 AM Reply Quote 0
                        • J
                          jafr @Gertjan
                          last edited by Oct 8, 2018, 9:25 AM

                          @gertjan
                          The Switch is an HP 2530 PoE switch, and it is the only PoE device I have available at the moment, so I can't test with a "dumb" switch unfortunately.

                          1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator
                            last edited by Oct 8, 2018, 1:05 PM

                            @jafr said in DHCP failing when moving between AP's:

                            HP 2530

                            Quick look shows that that switch can do dhcp snooping since I see in the manual dhcp snooping events for snmp.. So you need to look at the configuration of that switch or the port your AP is connected to.

                            If pfsense does not see the discover for dhcp then no it would never offer an IP..

                            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

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