lock (Server IP address pool view)

Function

The lock command locks an address pool.

The undo lock command restores the default configuration.

By default, no Server IP address pool is locked.

Format

lock

undo lock

Parameters

None

Views

IP address pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

If you want to delete an address pool that is currently in use, run the lock command to prevent new users from using IP addresses in this address pool. The address pool can be deleted after all users using this address pool go offline.

Precautions

After the lock command is executed to lock an address pool, no IP address in the address pool can be assigned to DHCP clients. An address pool that is being created cannot be locked.

Example

# Lock an address pool named huawei.
<HUAWEI> system-view
[~HUAWEI] ip pool huawei server
[~HUAWEI-ip-pool-huawei] lock
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >