How does an AR reclaim IP addresses

9

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.

Other related questions:
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 is the IP address of an AR queried
Use either of the following methods to view the IP address of a device: - Run the display ip interface brief command to view the IP address information of a device interface, including the IP address, subnet mask, as well as the status of physical link and protocol. - Run the display ip interface command to view detailed information about the number of sent or received packets, bytes, and multicast packets, as well as the number of sent, received, forwarded, and discarded broadcast packets. - Enter the specific interface view and run the display this command to view the IP address of the interface.

How is an IP address configured for an AR interface
You can configure one primary IP address and multiple secondary IP addresses for an interface. The IP address followed by sub is a secondary IP address. If an interface of an AR router is connected to networks in different network segments, you can configure IP addresses of the multiple network segments on the interface as secondary IP addresses. - The commands are as follows: [Huawei] interface gigabitethernet 1/0/0 [Huawei-GigabitEthernet1/0/0] ip address 1.1.1.1 255.255.255.0 //Configure a primary IP address 1.1.1.1/24. [Huawei-GigabitEthernet1/0/0] ip address 2.2.2.1 255.255.255.0 sub //Configure a secondary IP address 2.2.2.1/24. Note: You can configure IP addresses for Layer 3 interfaces only. Some Ethernet interfaces can switch between Layer 2 and Layer 3 modes. For example, Ethernet0/0/0 on AR150&AR200 works in Layer 2 mode by default. Run the undo portswitch command to switch from Layer 2 mode to Layer 3 mode. After an interface is switched to Layer 3 mode, you can configure IP addresses for the interface. The commands are as follows: [Huawei] interface ethernet 0/0/0 [Huawei-Ethernet0/0/0] undo portswitch [Huawei-Ethernet0/0/0] ip address 1.1.1.1 255.255.255.0 [Huawei-Ethernet0/0/0] ip address 1.1.2.1 255.255.255.0 sub

What is the difference between Easy IP and address pool
The differences between NAT and easy IP are as follows: - When Easy IP is used, the interface IP address is used as the mapped public IP address. - When the address pool is used, the public address pool needs to be configured. The public address that maps the private address is selected from the public address pool. When a user accesses the public network through NAT, use either of the following modes based on the IP plan of the public network: - When the IP address of the outbound interface and other applications are configured on the NAT device, if there are idle public IP addresses, use the address pool mode. - When the IP address of the outbound interface and other applications are configured on the NAT device, if there are no idle public IP addresses, use the Easy IP mode.

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.

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