Unifi AP Pro DHCP issue
-
I am having an issue getting my Unifi AP adopted, I think it has to do with the fact it is not getting a DHCP address and I have no idea why? Everything else I plug into the switch gets an address from dhcp except for the unifi APs. Has anybody come across this issue before?
-
Start with the cable. I don't have a PRO, but I have two APs running. Testing the cable is a quick thing.
Are you using a POE injector as well?
-
@gjacobse I'm using a ubiquiti EdgeSwitch with POE, using the same cable I get address info from my dhcp server on my laptop. I have also tried switching the cables out.
-
Are they powering on?
-
Yes, They power on, the show up on the controller with a default 192.168.1.20 address. When I go to adopt it, it starts trying then says adoption failed. I'm guessing it is a DHCP issue, but it may not be...
-
They will adopt if I change the controller to an IP in that network(192.168.1.0/24), but it doesn't do any good for me since it is not in my IP scheme.
-
Are these new AP's?
getting that 192 address seems like maybe they are hard coded.
Try resetting the APs
-
@Dashrender New APs, the 192 address is what ubiquiti says they will default to when it doesnt get a dhcp. I have reset the device, also used a temp controller on 192 network to upgrade firmware as well... just at a loss at what could be happening...
-
Well, I got it adopted. Still don't know why the AP won't receive a DHCP address. Clients that connect to it will so not sure where the problem is...
Here is how I got it to work:
-
I ssh'ed in to the AP on the 192.168.1.20 address.
-
Edit the following file: /etc/udhcpc/udhcpc
UDHCPC_FALLBACK_IP="AVAILABLE_IP_ON_NETWORK"
once file is saved, it will auto change the ip to the one specified in the config file.
-
Open Unifi Controller, it will show the AP as managed by another controller, force adopt it, then once adopted go in and set the static IP.
I'm not sure if this will survive a firmware upgrade, i'll have to wait and see...
-
-
You have something else going on.
Do you have VLAN in use?
Do you have a DHCP server on VLAN1 (ie untagged).
-
@JaredBusch I know I have something else going on, there is a dhcp server on vlan1 untagged, everything else gets an IP from it. Things connected to the AP get an IP from it... I did read about some issues with unifi AP and Cisco switches... I do have a cisco switch it runs through before hitting the dhcp server...
-
Ah, well in that case, you are stuck in the hard place of watching the packet logs during the dhcp request.
-
It's the weirdest thing... i'm sure I'll come across something else that is broken that will finally point me to the problem... just haven't found it yet.
-
but you're saying that if you plug a laptop into that same cable it will get a DHCP address?
-
correct.