Delete static IP addresses from the global address pool on S series switch

29

On an S series switch, you run the undo static-bind [ ip-address ip-address | mac-address mac-address ] command to delete a static IP address from a global address pool. For example:
- Delete a static IP address based on a specified IP address:
[HUAWEI] ip pool global1
[HUAWEI-ip-pool-global1] undo static-bind ip-address 10.10.10.10
- Delete a static IP address based on a specified MAC address:
[HUAWEI] ip pool global1
[HUAWEI-ip-pool-global1] undo static-bind mac-address dcd2-fc96-e4c0

Other related questions:
How to delete static IP addresses in the global address pool on S series address
For S series switches, use the following method to delete static IP addresses in the global address pool: In the global address pool, run the undo static-bind [ ip-address ip-address | mac-address mac-address ] command to delete static IP addresses. - Delete static IP addresses based on the IP address. [HUAWEI] ip pool global1 [HUAWEI-ip-pool-global1] undo static-bind ip-address 10.10.10.10 - Delete static IP addresses based on the MAC address. [HUAWEI] ip pool global1 [HUAWEI-ip-pool-global1] undo static-bind mac-address dcd2-fc96-e4c0

DHCP address pool modes on S series switches
When an S series switch excluding the S1700 functions as the DHCP server, the switch supports the interface-based and global address pools. - Interface-based address pool The interface address pool is on the network segment where the primary IP address of an interface is located. The DHCP server can only select and assign IP addresses on the network segment to clients. - Global address pool 1. If the DHCP server is on the same network segment as clients (no relay agent is deployed), the DHCP server selects IP addresses in the address pool on the network segment where the primary IP address of the interface connected to clients is located. If the interface is not configured with the primary IP address or no address pool is on the same network segment as the primary IP address, clients cannot request IP addresses. 2. If the DHCP server and clients are on different network segments (a relay agent is deployed), the DHCP server parses the received IP address (the primary IP address of the first interface configured with the relay function) specified by the giaddr field in the DHCP Request message, and selects the address pool on the same network segment as the IP address to assign addresses. If the IP address does not match the corresponding address pool, clients cannot request IP addresses. Follow the preceding rules to ensure that a client can obtain an IP address.

Delete entries in binding tables for IPSG (user-bind binding tables) on S series switches
Delete entries in a binding table for IPSG (user-bind binding table) on an S series switch (except the S1700) as follows: Binding entries include static entries and dynamic entries. Dynamic entries are automatically generated when DHCP snooping is enabled. To delete dynamic entries, disable DHCP snooping. Static entries are configured manually. To delete static entries, perform the following operations: 1. Run the display dhcp static user-bind all command to view all static binding entries on the switch. [HUAWEI] display dhcp static user-bind all 2. Delete binding entries as required. a. Delete the static binding entry of IP address 192.168.1.1. [HUAWEI] undo user-bind static ip-address 192.168.1.1 mac-address 0001-0001-0001 b. Delete the static binding entry of MAC address 0002-0002-0002. [HUAWEI]undo user-bind static mac-address 0002-0002-0002 c. Delete all static binding entries of GE0/0/1. [HUAWEI] undo user-bind static interface gigabitethernet 0/0/1 d. Delete all static binding entries in VLAN 10. [HUAWEI] undo user-bind static vlan 10 e. Delete all entries in the static binding table. [HUAWEI]undo user-bind static

IP addresses in a DHCP address pool on S series switch are exhausted
If the number of allocatable IP addresses in the address pool exceeds the number of DHCP clients connected to the DHCP server, the address pool resources may be exhausted in the following situation: - Many attackers apply for IP addresses or an attacker applies for many IP addresses by changing the CHADDR field in DHCP Discover messages. In this case, configure DHCP snooping. - The DHCP server ping function has been configured on the DHCP server. This function allows the switch to ping allocated IP addresses before sending DHCP Offer messages. Any reply to the ping packets may cause the DHCP server to consider that an IP address conflict occurs, resulting in exhaustion of address pool resources. To solve this problem, use either of the following methods: 1. Configure port mirroring on the DHCP server to obtain the packet header, and determine whether address pool exhaustion is caused by the second reason. If yes, disable the corresponding client. 2. Run the undo dhcp server ping packet command to disable the DHCP server ping function.

Static DHCP binding error on S series switch
For S series switches (except S1700 switches), if the message "Error: The static-MAC is exist in this IP-pool" or "Error: The IP address's status is error" is displayed when you configure a static DHCP binding entry, the configuration will fail. The failure occurs because the IP address to bind has been assigned to a client, and an internal mapping entry has already been created on the switch. In this case, you can run the reset ip pool { interface pool-name | name ip-pool-name } { start-ip-address [ end-ip-address ] | all | conflict | expired | used } command in the user view to manually reclaim the IP address in the address pool, and configure a new static binding entry.

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