service dhcp #enable DHCP on device
ip dhcp pool #create DHCP pool with name network 10.1.1.0 /24 default-router 10.1.1.1 netbios-name-server 10.1.1.2 netbios-node-type h-node dns-server lease
ip dhcp pool host 10.1.1.100 /24 hardware-address 0005.5e1f.8222 #create static binding
(config)# ip dhcp excluded-address 10.1.1.252 10.1.1.254 (config)# ip dhcp excluded-address 10.1.1.200 10.1.1.202 (config)# ip dhcp conflict logging #logging of DHCP address conflicts (config)# ip dhcp ping packet 5 #ping IP address 5 times before allocating (config)# ip dhcp ping timeout 300 #ping timeout is 300ms for the ping test pre allocation
show ip dhcp binding show ip dhcp conflit show ip dhcp database debug ip dhcp server [events|packet]