How do I change to static addresses?

  • 3
  • Question
  • Updated 2 years ago
  • Answered
Hi

We have 25 Aerohive APs that are assigned IP address automatically.  I would like to put them on to static address.  Can you help please?
Photo of Tom H

Tom H

  • 5 Posts
  • 0 Reply Likes
  • confused

Posted 4 years ago

  • 3
Photo of Brian Powers

Brian Powers, Champ

  • 396 Posts
  • 92 Reply Likes
From within HiveManager, modify each AP individually and under "Optional Settings", expand MGT0 Interface Settings.  Change it from DHCP to Static IP and assign as necessary. 

From the CLI, I believe its just: interface mgt0 <ip address> <netmask>

Photo of Tom H

Tom H

  • 5 Posts
  • 0 Reply Likes
Hi Brian

Thanks for getting back to me.

I've tried what you suggested but when I try and upload the config to the AP is sticks on 'Staged' and the after that I can no longer connect to it through the hive. 

The IP address on the hive shows the old address with no connection obviously.

There's definitely not an IP conflict because I've excluded the addresses from our scope.

Thanks
Photo of Brian Powers

Brian Powers, Champ

  • 396 Posts
  • 92 Reply Likes
So you will see the old IP still in HiveManager until the AP reconnects.  Are you changing it from the Web or CLI?  Are you changing it to a different VLAN/network IP range or just statically assigning within the same VLAN/network range they are currently pulling DHCP from. 

If memory serves me correctly, it will go to staged and even think it failed, but once the AP goes through its CAPWAP connection process to re-establish link to HiveManager, it should all mellow out.  And even the Device Update Results page will show as Successful. 

Does the AP fallback to the previous IP and reconnect to HM (using the 10 minute rollback default if HM access is not re-established after a config change)? 

Another option, some folks like, some dont is to create DHCP reservations in your DHCP server for the devices.  That way they can still utilize DHCP, but will always pull the same IP when they are connected within that particular LAN...
Photo of Tom H

Tom H

  • 5 Posts
  • 0 Reply Likes
Hi Brian

The first thing I tried was by adjusting the IP address throught the online hive and I had the problem of it displaying 'staged'  I think it did however revert back to it's original IP address after a delay (otherwise I still wouldn't be able to manage it right now).


Because that didn't work I then tried by typing the IP address in the web browser and then changing to a static address.  This caused it to disconnect from the hive for a short time but when it returned it did appear as the new static address.  But eventually it just returned to it's original DHCP address.


We are currently assigning the IP addresses using a reservation but the IP address are all over the place.

The dynamic address is in the same subnet as the static address that I want to assign.

I hope this makes sense, I really am confused.
Photo of Nick Lowe

Nick Lowe, Official Rep

  • 2491 Posts
  • 451 Reply Likes
I always use DHCP with a reservation in a management or just wireless management specific VLAN. What are you trying to achieve by statically assigning them on the APs themselves?
(Edited)
Photo of Tom H

Tom H

  • 5 Posts
  • 0 Reply Likes
I want my APs to have addresses all next to each other, rather than all over the place.  Is there a way I can adjust the reservation on the domain controller?
Photo of Nick Lowe

Nick Lowe, Official Rep

  • 2491 Posts
  • 451 Reply Likes
Dear Tom,

There are many instructions online that you can use to do this, such as:

http://technet.microsoft.com/en-us/library/cc779507%28v=ws.10%29.aspx

You can choose the DHCP server that you wish to manage within the MMC snap-in.

Nick

(Edited)
Photo of Andrew Garcia

Andrew Garcia, Official Rep

  • 368 Posts
  • 120 Reply Likes
I concur with Nick's assessment that a DHCP reservation is the right way to go if you want to ensure the APs use a continuous block of addresses.  

However, there are some cases where we require static addressing (RADIUS server, PPSK server, etc), so I think the issue Tom is having is still worth investigation.  

Tom, what kind of update were you doing?  The standard delta/auto update, or a complete config update?  If the former, did you try a complete config update?


Photo of Crowdie

Crowdie, Champ

  • 972 Posts
  • 272 Reply Likes
Were you using the DHCP scope to assign the access point's DNS servers?  If you push an update to an access point that removes its DNS settings then the update will not complete and the access point will sit with a "Staged" status.
Photo of Chris Stuart

Chris Stuart

  • 3 Posts
  • 0 Reply Likes
I am having the same exact issue. We have scopes for all the AP's at different sites. They all fall under the same 10.x.x.x subnet, but each site is supposed to be site specific. 10.20.x.x, 10.25.x.x, 10.30.x.x. For some reason the 10.20.x.x site gets 10.25.x.x and also 10.30.x.x ip's and each site ends up getting each others address. Some ap's end up getting the right IP but usually that's just luck. I ended up doing this yesterday: deleting the DHCP lease, pushing a full configuration update with reboot until it got the right IP address. Finally I got the entire site with the same subnet 10.20.x.x and was happy. I come in the next day to see that more than half had reverted back to another sites IP scope and was very frustrated. Any help would be most appreciated.
Photo of Chris Stuart

Chris Stuart

  • 3 Posts
  • 0 Reply Likes
attached are some pictures of what I am talking about to help better understand my concern.
Photo of Brian Powers

Brian Powers, Champ

  • 396 Posts
  • 92 Reply Likes
DHCP is a broadcast contained within whatever VLAN is native to the switch port (or whatever mgmt VLAN is configured on the gear).  If they're pulling the wrong IPs, I'd start looking there first.

The other thing is the DHCP server you show shows DHCP pools ranging from 10.1.x.x - 10.26.x.x yet all of your APs are pulling from 10.50.x.x or 10.54.x.x.  Where are those DHCP scopes at?  Further down?  

Knowing how the network policy is configured and how the switchport the APs connect to are configured will tell us more than the above images.