clear ip dhcp snooping binding

Deletes the specified binding entries from the DHCP snooping binding database.

Syntax

clear ip dhcp snooping binding [ [ mac-addr| ip-addr ] |vlan vlan-id | interface switchport interface ]
clear ip dhcp snooping binding vlan vlan-id
clear ip dhcp snooping binding interface switchport interface

Command Default

By default, DHCP snooping binding entries are present in the binding database.

Parameters

binding [ mac-addr| ip-addr ]
Specifies the MAC or IP address of the host for the entry in the binding database.
vlan vlan-id | interface [ switchport | physical interface ]]
Deletes the specified binding entry from the binding database.
vlan vlan-id
Deletes all binding entries for the specified VLAN from the binding database.
interface switchport interface
Deletes all binding entries from the binding database that were learned on the specified switchport.

Modes

Privileged EXEC mode

Examples

This example clears one binding entry from the database.

device# clear ip dhcp snooping binding <mac-addr> <ip-addr> vlan <vlan-id> 
interface <switchport/physical interface>

This example clears all binding entries for the specified VLAN.

device# clear ip dhcp snooping binding vlan <vlan-id>

This example clears all binding entries learned on the specified switchport.

clear ip dhcp snooping binding interface <switchport/physical interface>