Method used to configure the logging function when IP addresses are allocated through DHCP on the AR

6

Huawei AR series routers record logs when IP addresses are allocated through DHCP. The logs are stored in a non-TXT file. The configuration procedure is as follows.
-Interface address pool
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] dhcp select interface
[Huawei-GigabitEthernet1/0/0] dhcp server logging //Enable the DHCP server to record logs when the DHCP server allocates IP addresses.
-Global address pool
[Huawei] ip pool global
[Huawei-ip-pool-global] logging //Enable the DHCP server to record logs when the DHCP server allocates IP addresses.

Other related questions:
How is an AR used as the DHCP server enabled to record logs when the DHCP server allocates IP addresses
A Huawei AR records logs when IP addresses are allocated through DHCP. The logs are stored in a non-TXT file. Perform the following configurations: - Interface-based [Huawei] interface gigabitethernet 1/0/0 [Huawei-GigabitEthernet1/0/0] dhcp select interface [Huawei-GigabitEthernet1/0/0] dhcp server logging //Enable the DHCP server to record logs when the DHCP server allocates IP addresses. - Global mode [Huawei] ip pool global [Huawei-ip-pool-global] logging //Enable the DHCP server to record logs when the DHCP server allocates IP addresses.

Method used to configure the USG firewall to release an IP address allocated by DHCP to the PC
On the USG2000, USG5000, and USG6000, you can release the IP address allocated by DHCP to the PC using the following commands: Clear address 10.110.1.1 reset dhcp server ip-in-use ip 10.110.1.1 The commands can clear both expired and valid address binding information.

How does an AR used as the DHCP server allocate IP addresses to many DHCP clients
When an AR functions as a DHCP server, you can enlarge the address pool range and shorten the lease of IP addresses to allow DHCP clients to quickly connect to and disconnect from the network.

Methods used to configure the excluded IP address on the AR
During network planning, some IP addresses in an address pool may be used by servers or other hosts, or some clients can be configured with specified IP addresses only because of special requirements. In this case, you need to exclude these IP addresses that cannot be automatically allocated from the address pool, preventing IP address conflicts. Assume that IP addresses in the range of 10.10.10.11 to 10.10.10.20 cannot be dynamically allocated. The configuration on the AR is as follows: - Interface address pool [Huawei] dhcp enable [Huawei] interface gigabitethernet 1/0/1 //Enter the view of the interface connected to the DHCP clients. [Huawei-GigabitEthernet1/0/1] undo portswitch [Huawei-GigabitEthernet1/0/1] ip address 10.10.10.10 24 [Huawei-GigabitEthernet1/0/1] dhcp select interface [Huawei-GigabitEthernet1/0/1] dhcp server excluded-ip-address 10.10.10.11 10.10.10.20 - Global address pool [Huawei] dhcp enable [Huawei] interface gigabitethernet 1/0/1 //Enter the view of the interface connected to the DHCP clients. [Huawei-GigabitEthernet1/0/1] undo portswitch [Huawei-GigabitEthernet1/0/1] ip address 10.10.10.10 24 [Huawei-GigabitEthernet1/0/1] dhcp select global [Huawei-GigabitEthernet1/0/1] quit [Huawei] ip pool global1 [Huawei-ip-pool-global1] network 10.10.10.0 mask 24 [Huawei-ip-pool-global1] excluded-ip-address 10.10.10.11 10.10.10.20

Invalid IP addresses allocated through DHCP cannot be automatically deleted
S series switches (except S1700 switches) allow you to configure the time to reclaim IP addresses as follows: - In global address pool mode, run the dhcp server lease command in the IP address pool view. - In interface address pool mode, run the lease command in the view of the interface.

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