Showing results for 
Search instead for 
Did you mean: 

How to set static IPs instead of DHCP on APs using script on SmartZone

New Contributor III
Hi, I have SmartZone with 490 APs, I need to set static IP addresses, at the moment APs are operating via IP from DHCP. Is there any possibility to configure each AP via SZ's cli, like I did in ZD's case?

I need a script example, please advise

Hi Bart,

Command I have provided you is the one to change the AP's LAN IP address (internal IP).

"remote ap-cli" gives you a way to run the commands, which you can also run directly from the AP CLI.

Syamantak Omer

Syamantak Omer | Community moderator | Staff TSE | CWNA | CCNA | RASZA | RICXI | Follow me at

New Contributor II
The way I did it was import the mac addresses into the dhcp server as reservations.

New Contributor III
Hi Guys,

@Syamantak - you are right about internal IP, it has been changed a bit later, the problem I am facing now is that the ip address is still shown as 'dynamic' or 'Keep AP's settings', even if I I can see it static in SZ CLI, AP CLI or SZ API in Postman. Please see attached screenshots. AP reboot did not help.

Another big problem is - if I prepared commands in excel for all 490 APs, the commands can be executed only one by one, is there any method to run it faster?

I would be thankful for any advise

Image_ images_messages_5f91c45e135b77e247a4c62f_1522ee5e1e35b44a2698ce9d5b0dfd3f_RackMultipart20201012601741du0-5a269477-19c7-4c9f-b581-2e65d2d4f293-115387629.PNG1602528146Image_ images_messages_5f91c45e135b77e247a4c62f_79efed32407b9763af265c25a3fab5e0_RackMultipart20201012538ewo339-f0a1af05-7cba-4a6e-9569-60b3e97ffc4a-1728308323.PNG1602528193
Image_ images_messages_5f91c45e135b77e247a4c62f_248211685d129f3c09bd37ea36705a48_RackMultipart2020101211402fe47-afc531e3-08aa-4e8e-bdc1-6d9a13f9ee88-1750483262.png1602528690

Hi Bart,

Using vSZ remote CLI makes the changed directly to the APs, not on the AP's profile in vSZ.

If you want to update the AP IP from vSZ, that is totally different thing, because then you are pushing the configuration on AP's profile in vSZ, once saved, vSZ will push it to the AP.

To make the changes that way, you have to run below commands.

vSZ-H-27# conf

vSZ-H-27(config)# ap aa:bb:cc:dd:ee:ff

vSZ-H-27(config-ap)# ip static yyy.yyy.yyy.yyy zzz.zzz.zzz.zzz

vSZ-H-27(config-ap)# end
Do you want to save this context configuration (or input 'no' to cancel)? [yes/no] yes

aa:bb:cc:dd:ee:ff= AP's MAC address
x= IP
y= subnet
z= gateway

Syamantak Omer

Syamantak Omer | Community moderator | Staff TSE | CWNA | CCNA | RASZA | RICXI | Follow me at

it worked perfectly!
Many thanks!