The lock command locks an IP address pool.
The undo lock restores the default configuration.
By default, no IP address pool is locked.
After the lock command is run, the specified IP address pool is locked and IP addresses in this address pool cannot be assigned to clients. When a DHCP server needs to be redeployed, you need to migrate address pools on the DHCP server to another DHCP server on the live network. To retain the addresses that have been assigned to clients from a global address pool, run the lock command to lock the global address pool. When new users get online after the address pool migration, they apply for IP addresses from a new address pool.