cisco Catalyst 2960 — Enabling DHCP Server Port-Based Address Allocation

Monitoring DHCP Snooping Information Table 2: Commands for Displaying DHCP Information Displays the DHCP snooping configuration for a switch show ip dhcp snooping Displays only the dynamically configured bindings in the DHCP snooping bind also referred to as a binding table. show ip dhcp snooping binding Displays the DHCP snooping binding database status and statistics. show ip dhcp snooping database Displays the DHCP snooping statistics in summary or detail form. show ip dhcp snooping statistics Display the dynamically and statically configured bindings.

show ip source binding If DHCP snooping is enabled and an interface changes to the down state, the switch does not delete the statically configured bindings. Note Enabling DHCP Server Port-Based Address Allocation Follow these steps to globally enable port-based address allocation and to automatically generate a subscriber identifier on an interface. Configuring DHCP Monitoring DHCP Snooping Information Command or Action Purpose Step 6 exit Example: Device(config)# exit Exits global configuration mode and returns to privileged EXEC mode. Step 7 ip dhcp snooping binding mac-address vlan vlan-id ip-address interface interface-id expiry seconds Example:

Device# ip dhcp snooping binding 0001.1234.1234 vlan 1 172.20.50.5 interface gigabitethernet 1/1/0 expiry 1000 (Optional) Adds binding entries to the DHCP snooping binding database. The vlan-id range is from 1 to 4904. The seconds range is from 1 to 4294967295. Enter this command for each entry that you add. Use this command when you are testing or debugging the switch. Step 8 show ip dhcp snooping database [detail] Example: Device# show ip dhcp snooping database detail Displays the status and statistics of the DHCP snooping binding database agent. Configuring DHCP 19