How to withdraw the invalid DHCP server IP address when it cannot be automatically cleared

1

To solve this problem, run the dhcp server lease command to set the IP address lease.

Other related questions:
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.

How to solve the problem that invalid IP addresses cannot be automatically cleared on S series switches
The time for reclaiming IP addresses on S series switches is configurable: - In global address pool mode, run the lease command in the IP address pool view. - In interface address pool mode, run the dhcp server lease command in the corresponding interface view.

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

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.

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