DHCP address lease configuration on S series switch

7

For S series switches (except S1700 switches), IP addresses that are dynamically allocated by a DHCP server have leases. The lease is configurable and defaults to 1 day. IP address leases can be specified for global and interface address pools.
For example, to set the IP address lease of the address pool pl to 10 days, perform the following configuration:
- Global address pool
[HUAWEI] ip pool p1
[HUAWEI-ip-pool-p1] lease day 10
- Interface address pool
[HUAWEI] interface vlanif 10
[HUAWEI-Vlanif10] dhcp select interface
[HUAWEI-Vlanif10] dhcp server lease day 10
Different address pools on a DHCP server can be configured with different IP address leases, but IP addresses in the same address pool must have the same lease.

Other related questions:
DHCP address lease configuration on S series switch
For S series switches (except S1700 switches), IP addresses that are dynamically allocated by a DHCP server have leases. The lease is configurable and defaults to 1 day. IP address leases can be specified for global and interface address pools. For example, to set the IP address lease of the address pool pl to 10 days, perform the following configuration: - Global address pool [HUAWEI] ip pool p1 [HUAWEI-ip-pool-p1] lease day 10 - Interface address pool [HUAWEI] interface vlanif 10 [HUAWEI-Vlanif10] dhcp select interface [HUAWEI-Vlanif10] dhcp server lease day 10 Different address pools on a DHCP server can be configured with different IP address leases, but IP addresses in the same address pool must have the same lease.

Method to release DHCP address pool and configure the lease on S series switches
S series switches excluding the S1700 allow the DHCP address pool to be manually released and support configurable lease for IP addresses dynamically assigned through DHCP.

Check DHCP IP address lease on S series switch
On S series switches except S1700 switches, you can view the lease of IP addresses in an address pool as follows: - If an interface address pool is used, run the display ip pool interface interface-pool-name [ start-ip-address [ end-ip-address ] ] command. - If a global address pool is used, run the display ip pool name ip-pool-name [ start-ip-address [ end-ip-address ] ] command. The Lease field in the command output indicates the lease of IP addresses.

The leases of some addresses are displayed as - on S series switch
When the display ip pool [ { interface interface-pool-name | name ip-pool-name } [ start-ip-address [ end-ip-address ] | all | conflict | expired | used ] ] command is executed on an S series switch (except an S1700 switch) to display information about IP addresses in a DHCP address pool, the Lease field in the command output is displayed as hyphens (-) for idle, excluded, statically bound, and conflicting IP addresses.

Method to lock a DHCP address on an S series switch
For S series switches excluding the S1700, when the DHCP server is deployed again, you need to migrate the address pool 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. 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 new users get online after the address pool is migrated, they apply for IP addresses from a new address pool. The configuration is as follows: [HUAWEI] ip pool global1 [HUAWEI-ip-pool-global1] lock

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top