Administrator Guide

Table Of Contents
Enabling DHCP Snooping
To enable DHCP snooping, use the following commands.
1. Enable DHCP snooping globally.
CONFIGURATION mode
ip dhcp snooping
2. Specify ports connected to DHCP servers as trusted.
INTERFACE mode
INTERFACE PORT EXTENDER mode
ip dhcp snooping trust
3. Enable DHCP snooping on a VLAN.
CONFIGURATION mode
ip dhcp snooping vlan name
Enabling IPv6 DHCP Snooping
To enable IPv6 DHCP snooping, use the following commands.
1. Enable IPv6 DHCP snooping globally.
CONFIGURATION mode
ipv6 dhcp snooping
2. Specify ports connected to IPv6 DHCP servers as trusted.
INTERFACE mode
ipv6 dhcp snooping trust
3. Enable IPv6 DHCP snooping on a VLAN or range of VLANs.
CONFIGURATION mode
ipv6 dhcp snooping vlan vlan-id
Adding a Static Entry in the Binding Table
To add a static entry in the binding table, use the following command.
Add a static entry in the binding table.
EXEC Privilege mode
ip dhcp snooping binding mac mac-address vlan-id vlan-id ip ip-address interface
interface-type interface-number lease lease-value
If multiple IP addresses are expected for the same MAC address, repeat this step for all IP addresses.
Adding a Static IPV6 DHCP Snooping Binding Table
To add a static entry in the snooping database, use the following command.
Add a static entry in the snooping binding table.
EXEC Privilege mode
ipv6 dhcp snooping binding mac address vlan-id vlan-id ipv6 ipv6-address interface
interface-type | interface-number lease value
Clearing the Binding Table
To clear the binding table, use the following command.
Delete all of the entries in the binding table.
EXEC Privilege mode
Dynamic Host Configuration Protocol (DHCP)
299