DGS-6604
m
clear ip dhcp binding
CLI Reference Guide
99
clear ip dhcp binding
Use this command to delete an address binding from the DHCP Server
database.
clear ip dhcp binding [pool
NAME
] [
ADDRESS
]
Default
None
Command Mode
Privileged EXEC
Usage Guideline
Use this command to delete the address of the binding. The address denotes the
assigned client's IP address. If no IP address is specified, DHCP server clears all
bindings.
Note
the following behavior for the
clear ip dhcp binding
command:
• If the pool
NAME
option is not specified and an IP
ADDRESS
is speci-
fied, it is assumed that the IP address is an address in the global address
space and the command will parse all the DHCP pools for the specified
binding.
• If both the pool
NAME
option and the
ADDRESS
option are not specified,
it is assumed that all bindings in all pools are to be deleted.
• If the pool
NAME
option is specified without the ADDRESS option being
specified, then all the bindings in the specified pool will only be cleared.
• If the pool
NAME
option and an IP
ADDRESS
is specified, the specified
binding will be deleted from the specified pool.
Examples
The following example deletes the address binding 10.12.1.99 from DHCP
server database:
The following example deletes all bindings from all pools:
Syntax Description
pool
NAME
(Optional) Name of the DHCP pool. If the pool name option is not specified the
command will parse all the DHCP pools for the specified binding.
ADDRESS
(Optional) The IP address of binding to be deleted. If no address is specified, all
of bound addresses are cleared.
swtich# clear ip dhcp binding 10.12.1.99
swtich#
switch# clear ip dhcp binding