This section describes how to lock an IP address pool so that the address pool cannot be used to assign IP addresses to new users.
An IP address pool with an in-use IP address cannot be deleted. Therefore, configure the drain function to lock the address pool before you delete the address pool. After an IP address pool is locked using the lock drain command, DHCP Request messages for lease renewal from online users will be discarded. The address pool can be deleted after all online users using the address pool go offline upon lease expiry. If you only need to disable an IP address pool so that the address pool will not be used to assign IP addresses to new users but online users can still use assigned IP addresses, configure the lock function to lock the address pool using the lock command.
The system view is displayed.
The IP address pool view is displayed.
Configure the drain function to lock the address pool.
Run lock drain
The IP address pool is locked so that the address pool cannot be used to assign IP addresses to new users and Request messages for lease renewal from online users using the address pool are discarded.
Run commit
The configuration is committed.
Configure the lock function to lock the address pool.