Dynamic Host Configuration Protocol (DHCP) is a protocol to dynamically giva an IP address to different devices. In cisco, defining DHCP is following these steps:

  1. Define DHCP exclude-address: We separate unwanted address in DHCP

  2. Define DHCP Pool : We define DHCP pool which is assigned to clients

  3. Define network, dns-server and default router

SW1# conf t
SW1(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.10
SW1(config)#ip dhcp pool HRT
SW1(dhcp-config)#network 192.168.10.0
SW1(dhcp-config)#dns-server 4.2.2.4 8.8.8.8
SW1(dhcp-config)#default-router 192.168.10.1