Syntax
•
ip dhcp snooping binding mac-address vlan-id ip-address {ethernet interface | port-channel port-
channel-number} expiry seconds
•
no ip dhcp snooping database binding mac-address vlan-id
•
mac-address — Specifies a MAC address.
•
vlan-id — Specifies a VLAN number.
•
ip-address — Specifies an IP address.
•
interface — Specifies an Ethernet port.
•
port-channel-number — Specifies a Port-channel number.
•
expiry seconds — Specifies the interval, in seconds, after which the binding entry is no longer
valid. (Range 10 – 4294967295 seconds)
Default Configuration
The default configuration is that no static binding exists.
Command Mode
Privileged EXEC mode.
User Guidelines
•
After entering this command an entry is added to the DHCP snooping database. If a DHCP snooping
binding file exists, the entry is also added to that file.
•
The entry is displayed in the show commands as a "DHCP Snooping entry".
Example
The following example configures the DHCP snooping binding database and adds binding entries to the
database.
Console# ip dhcp snooping binding 3aa2.64b3.a245 1000
131.108.1.27 ethernet 1/e16 expiry 3000
clear ip dhcp snooping database
The clear ip dhcp snooping database Privileged EXEC mode command clears the DHCP snooping
binding database.
Syntax
•
clear ip dhcp snooping database
158
DHCP Snooping