401
Configuring DHCP
Monitoring and Maintaining DHCP
Monitoring and Maintaining DHCP
Configuration Examples for Configuring DHCP
Enabling DHCP Server Port-Based Address Allocation: Examples
In this example, a subscriber identifier is automatically generated, and the DHCP server ignores any client identifier fields
in the DHCP messages and uses the subscriber identifier instead. The subscriber identifier is based on the short name
of the interface and the client preassigned IP address 10.1.1.7.
switch# show running config
Building configuration...
Current configuration : 4899 bytes
!
version 12.2
!
4. address ip-address client-id string [ascii] Reserves an IP address for a DHCP client identified
by the interface name.
string—Can be an ASCII value or a hexadecimal value.
5. reserved-only (Optional) Uses only reserved addresses in the DHCP
address pool. The default is to not restrict pool
addresses.
6. end Returns to privileged EXEC mode.
Command Purpose
Command Purpose
show interface interface id Displays the status and configuration of a specific interface.
show ip dhcp pool Displays the DHCP address pools.
show ip dhcp binding Displays address bindings on the Cisco IOS DHCP server.
ip dhcp snooping database timeout seconds Specifies (in seconds) how long to wait for the database
transfer process to finish before stopping.
ip dhcp snooping database write-delay seconds Specifies (in seconds) the duration for which the transfer
should be delayed after the binding database changes.
clear ip dhcp snooping database statistics Clears the DHCP snooping binding database agent statistics.
renew ip dhcp snooping database Renews the DHCP snooping binding database.
show ip dhcp snooping database [detail] Displays the status and statistics of the DHCP snooping
binding database agent.
show ip dhcp snooping Displays the DHCP snooping configuration for a switch
show ip dhcp snooping binding Displays only the dynamically configured bindings in the DHCP
snooping binding database, also referred to as a binding table.
show ip dhcp snooping database Displays the DHCP snooping binding database status and
statistics.
show ip dhcp pool Verifies DHCP pool configuration.
copy running-config startup-config Saves your entries in the configuration file.