< Home

How Do I Delete Static Binding Entries?

If a binding entry is incorrect or the network rights of a bound host have been changed, you can run the undo user-bind static [ { { ip-address | ipv6-address } { start-ip [ to end-ip ] } &<1-10> | ipv6-prefix prefix/prefix-length } | mac-address mac-address | interface interface-type interface-number | vlan vlan-id [ ce-vlan ce-vlan-id ] ] * command to delete the entry.

The following example shows how to delete a static binding entry:

Run the display dhcp static user-bind all command to view all static binding entries on the device.
<HUAWEI> display dhcp static user-bind all                                          
DHCP static Bind-table:                                                         
Flags:O - outer vlan ,I - inner vlan ,P - Vlan-mapping                          
IP Address                      MAC Address     VSI/VLAN(O/I/P) Interface       
--------------------------------------------------------------------------------
192.168.1.1                     0001-0001-0001  --  /--  /--    --              
192.168.1.2                     0002-0002-0002  --  /--  /--    GE1/0/2         
192.168.2.1                     --              --  /--  /--    GE0/0/1         
192.168.2.2                     --              --  /--  /--    GE0/0/1         
192.168.2.3                     --              --  /--  /--    GE0/0/1         
192.168.3.1                     0004-0004-0004  10  /--  /--    --              
192.168.3.2                     0005-0005-0005  10  /--  /--    --              
--------------------------------------------------------------------------------
Print count:           7          Total count:           7                      
# Delete the static binding entry of IP address 192.168.1.1.
<HUAWEI> system-view
[HUAWEI] undo user-bind static ip-address 192.168.1.1 mac-address 0001-0001-0001
# Delete the static binding entry of IP address 192.168.1.2.
<HUAWEI> system-view
[HUAWEI] undo user-bind static ip-address 192.168.1.2 mac-address 0002-0002-0002 interface gigabitethernet 1/0/2
# Delete all static binding entries on GE0/0/1.
<HUAWEI> system-view
[HUAWEI] undo user-bind static interface gigabitethernet 0/0/1
# Delete all static binding entries in VLAN 10.
<HUAWEI> system-view
[HUAWEI] undo user-bind static vlan 10

After the preceding steps are performed in sequence, all binding entries are deleted.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic