DHCP is a dynamic host configuration protocol. We don't need to manually set IP address to the hosts in the local network by configuring DHCP in the routers. The router will automatically set by itself. The example of how to configure DHCP in Cisco IOS Router is shown in the below with the picture together. I hope this example will be benefit for brothers and sisters who are learning Cisco Networking.
ip address 192.168.1.1 255.255.255.0
ip dhcp pool Test
network 192.168.1.0 255.255.255.0
copy run start
If you want to see sample configuration in packet tracer, you can download pkt file. Click here to download.