Reset an IP address pool

16

You can manually reclaim IP addresses that fail to be released due to exceptions after they are allocated by a DHCP server. 
If an IP address conflict occurs because an IP address is allocated to two clients, run the following command to reset the conflicting IP address: 
<HUAWEI> reset ip pool name pool1 conflict

Other related questions:
How to reset the address pool on the AR
If the IP addresses in the address pool cannot be released (when repeated IP address assignment causes IP address conflicts), you can reset a specified IP address pool. Method used to reset the address pool:
-  for global address pool
<Huawei> reset ip pool name pool1 all //Reset the global address pool. pool1
-  For the interface address pool
<Huawei> reset ip pool interface vlanif100 all //Reset the interface address pool.
Note: After the reset ip pool command is run, a user may be disconnected if its IP address is within the address range specified in this command.

How is IP address range increased on an AR
When addresses in the address pool are insufficient, use the following methods:
- Increase the mask.
[Huawei] ip pool global1
[Huawei-ip-pool-global1] undo network
[Huawei-ip-pool-global1] network 192.168.0.0 mask 16 //Change the mask from 24-bit mask 255.255.255.0 to 16-bit mask 255.255.0.0.
There are great changed. The mask on the DHCP client needs to be changed to 16-bit.
- Create an address pool and configure the primary address of the interface as the address on the network segment.
[Huawei] ip-pool new_p //Create an address pool.
[Huawei-ip-pool-new_p] network 192.168.2.0 mask 255.255.255.0
[Huawei-ip-pool-new_p] quit
[Huawei] interface gigabitethernet1/0/0
[Huawei-GigabitEthernet1/0/0] ip address 192.168.2.1 255.255.255.0 //Configure the same network segment of new addresses as that of the primary IP address.
[Huawei-GigabitEthernet1/0/0] ip address 192.168.1.1 255.255.255.0 sub //Configure the same network segment of new addresses as that of the secondary IP address.
Automatically allocated addresses are addresses on the new network segment.

Reclaim IP addresses on S series switch
On S series switches except S1700 switches, IP addresses that fail to be released in an IP address pool can be reclaimed. The reclaimed IP addresses enter the idle state and can be assigned to clients again. The reset ip pool { interface pool-name | name ip-pool-name } { start-ip-address [ end-ip-address ] | all | conflict | expired | used } command reclaims the conflicting, expired, and used IP addresses.
For example, you can reclaim IP address 10.1.1.5 that has been assigned to a client and bound to the client's MAC address as follows:
- For a global address pool:
<HUAWEI> reset ip pool name pool1 used //Reclaim the IP addresses in use.
<HUAWEI> system-view   //If an IP address is not bound to any MAC address, skip the following operation.
[HUAWEI] ip pool pool1
[HUAWEI-ip-pool-pool1] undo static-bind ip-address 10.1.1.5 //Unbind the IP address from the MAC address.
- For an interface address pool:
<HUAWEI> reset ip pool interface vlanif100 used //Reclaim the IP addresses in use.
<HUAWEI> system-view   //If an IP address is not bound to any MAC address, skip the following operation.
[HUAWEI] interface vlanif 100  
[HUAWEI-Vlanif100] undo dhcp server static-bind ip-address 10.1.1.5  //Unbind the IP address from the MAC address.
After the preceding commands are executed, a user may be disconnected if its IP address is within the address range specified in this command.

How does an AR reclaim IP addresses
You can manually reclaim IP addresses that cannot be released due to exceptions. The reclaimed IP addresses become idle and can be re-allocated to clients. The command is as follows: reset ip pool { interfacepool-name | nameip-pool-name } { start-ip-address [ end-ip-address ] | all | conflict | expired | used } Conflicting, expired, and used IP addresses can be reclaimed.
To reclaim the allocated IP address of 10.1.1.5 that has been bound to a MAC address, use the following method:
- For the global address pool
<Huawei> reset ip pool name pool1 used //Release the allocated IP address.
<Huawei> system-view   //If IP addresses are not bound to MAC addresses, you do not need to perform the following operations.
[Huawei] ip pool pool1
[Huawei-ip-pool-pool1] undo static-bind ip-address 10.1.1.5 //Remove the static binding.
- For the address pool:
<Huawei> reset ip pool interface vlanif100 used //Release the allocated IP address.
<Huawei> system-view   //If IP addresses are not bound to MAC addresses, you do not need to perform the following operations.
[Huawei] interface vlanif 100  
[Huawei-Vlanif100] undo dhcp server static-bind ip-address 10.1.1.5  //Remove the static binding.
Note: If a used IP address is within the IP address range specified by the command, performing the preceding operations may cause unexpected logout.

IP addresses conflict in the address pool of a WLAN device
An IP address conflict occurs when two STAs on a LAN are allocated the same IP address. For example, a STA's IP address has been released using a Release packet or the reset ip pool command, or because the lease has expired for 3 days. However, the AC does not notify the STA that the IP address has been released. The AC then allocates this IP address to another STA. This STA pings the IP address and receives a reply, so it sends a Decline packet to the AC. The AC sets this IP address to conflicted state. You can run the reset ip pool { interface pool-name | name ip-pool-name } { start-ip-address [ end-ip-address ] | conflict } command to release a conflicting IP address.

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