Method used to check the DHCP lease on the AR

6

On the AR, you can run the following command to check the IP address lease.
-If IP addresses are assigned based on the interface address pool, run the display ip pool interface interface-pool-name [ start-ip-address [ end-ip-address ] ] command.
-If IP addresses are assigned based on the global address pool, run the display ip pool [ name ip-pool-name [ start-ip-address [ end-ip-address ] ] ] command.
The value of the Lease field is the lease of the address.

Other related questions:
Method used to configure DHCP lease on the AR
Except for the static addresses that are assigned to clients, the IP addresses dynamically assigned by the DHCP server to clients have the lease. By default, the lease is one day. The lease can be configured as needed. You can specify the lease for the global or interface address pool. For example, the address lease in the address pool p1 is 10 days. The configuration method is as follows: - 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 one address pool must be configured with the same lease.

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.

Method used to check static DHCP binding on the AR
On the AR, run the display ip pool { interface interface-pool-name | name ip-pool-name } used command to check the static DHCP binding that is configured on a device. For example, check the binding between IP addresses and MAC addresses in the global address pool test 1. [Huawei] display ip pool name test1 used Pool-name : test1 Pool-No : 0 Lease : 1 Days 0 Hours 0 Minutes Domain-name : - DNS-server0 : - NBNS-server0 : - IMPORT-DNS0 : - IMPORT-NBNS0 : - IMPORT-domain : - Netbios-type : - Position : Local Status : Unlocked Gateway-0 : 10.1.1.1 Mask : 255.255.255.0 VPN instance : -- ----- ----- ----- ----- ----- ----- ----- ----- ----- Start End Total Used Idle(Expired) Conflict Disable ----- ----- ----- ----- ----- ----- ----- ----- ----- 10.1.1.1 10.1.1.254 253 1 252 0 0 0 ----- ----- ----- ----- ----- ----- ----- ----- ----- Network section : ----- ----- ----- ----- ----- ----- ----- ----- ----- Index IP MAC Lease Status ----- ----- ----- ----- ----- ----- ----- ----- ----- 1 10.1.1.2 dcd2-fc96-e4c0-Static-bind ----- ----- ----- ----- ----- ----- ----- ----- -----In the preceding information, the value of Status is Static-bind. That is, IP addresses are bound to MAC addresses, and then DHCP allocates IP addresses to clients.

DHCP lease period configuration on USG firewalls
You can configure (or modify) the DHCP lease period on the USG2000, USG5000, and USG6000 as follows: 1. Configuration on the web UI: a. Choose Network > DHCP Server > Service. b. Complete basic DHCP configurations. c. Click Advanced. Configure the domain name, address lease period, and WINS server. d. Click Apply. 2. Configuring on the CLI: a. Configure the lease period in address pool mode. [USG] dhcp server ip-pool 2 [USG-dhcp-2] network 10.1.1.128 mask 255.255.255.128 [USG-dhcp-2] gateway-list 10.1.1.129 [USG-dhcp-2] expired day 5 [USG-dhcp-2] quit b. Configure the lease period in interface mode. [USG]interface Vlanif10 [USG-interface-VLANif10] ip address 10.1.1.1 255.255.255.0 [USG-interface-VLANif10] dhcp server expired day 10 hour 12

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