Method used to configure DHCP lease on the AR

20

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.

Other related questions:
Method used to check the DHCP lease on the AR
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.

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

Method used to configure NAT and DHCP on the AR
Huawei AR series routers support DHCP and NAT so that users can dynamically obtain IP addresses and access the Internet. This function applies to all versions and models of the AR.

Method used to configure DHCP client on the AR
The AR can function as a DHCP client to dynamically obtain configuration parameters such as an IP address from a DHCP server. This reduces the configuration costs and the errors and facilitates centralized management. Assume that RouterA functions as the DHCP client and RouterB as the DHCP server. The configuration is as follows: 1. Configure RouterA. [HUAWEI] dhcp enable //Enable the DHCP function. [HUAWEI] interface GigabitEthernet0/0/0 [HUAWEI-GigabitEthernet0/0/0] ip address dhcp-alloc //Enable the DHCP client on an interface. [HUAWEI-GigabitEthernet0/0/0] quit 2. Configure RouterB. [HUAWEI] dhcp enable //Enable the DHCP function. [HUAWEI] ip pool p1 [HUAWEI-ip-pool-p1] gateway-list 10.202.1.1 //Configure the gateway IP address. [HUAWEI-ip-pool-p1] network 10.202.1.0 mask 255.255.255.0 //Specify the range of IP addresses that can be dynamically allocated in the global address pool. [HUAWEI-ip-pool-p1] quit [HUAWEI] interface GigabitEthernet0/0/0 [HUAWEI-GigabitEthernet0/0/0] ip address 10.202.1.1 255.255.255.0 [HUAWEI-GigabitEthernet0/0/0] dhcp select global //Configure the global address pool mode. 3. Verify the configuration. Run the display ip interface brief command on RouterA to view the IP address that GE0/0/0 has obtained.

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