Meanings of the lease field in dhcp snooping command output on S series switch

For S series switches, the lease field in the outputs of DHCP snooping configuration indicates the lease of IP addresses configured on the DHCP server.
The lease time varies depending on network access requirements. By default, the IP address lease is one day.
- In locations where clients often move, for example, cafes, airports, and hotels, plan a short-term lease to ensure that IP addresses are released quickly after the clients go offline.
- In locations where clients seldom move, for example, office areas of an enterprise, plan a long-term lease to prevent services from being affected by frequent address renewals.
Different address pools on a DHCP server can be configured with different IP address leases, but the IP addresses in an address pool must be configured with the same lease. You can run the following commands to modify the lease time:
- Run the dhcp server lease { day day [ hour hour [ minute minute ] ] | unlimited } command to set the lease for IP addresses in an interface address pool. For example, set the IP address lease of the address pool on VLANIF 100 to 2 days 2 hours and 30 minutes.
[HUAWEI] dhcp enable
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ip address 10.10.10.10 24
[HUAWEI-Vlanif100] dhcp select interface
[HUAWEI-Vlanif100] dhcp server lease day 2 hour 2 minute 30
- Run the lease { day day [ hour hour [ minute minute ] ] | unlimited } command to set the lease for IP addresses in a global IP address pool. For example, set the IP address lease of the global address pool global1 to 2 day 2 hours and 30 minutes.
[HUAWEI] ip pool global1
[HUAWEI-ip-pool-global1] lease day 2 hour 2 minute 30

Scroll to top