Minimum requirements of the DHCP client:
*IP address
*Subnet mask
*Default gateway
*DNS server
Requirements to setup a DHCP server:
*Pool --- 10Network
*Network --- 192.168.10.0/24
*Default gateway --- 192.168.10.1
*DNS server --- 8.8.8.8
*Excluded addresses --- 192.168.10.1 - 192.168.10.5
Coding
DHCP-Server:
conf t
service dhcp //turn on dhcp service
ip dhcp pool 10Network //create the dhcp pool
network 192.168.10.0 255.255.255.0 //configure the network address.
default-router 192.168.10.1 //configure the default gateway
dns-server 8.8.8.8 //configure the dns server
exit
ip dhcp excluded-address 192.168.10.1 192.168.10.5 //setting the excluded addresses on leasing
show ip dhcp pool //to check ip pool and details
show ip dhcp binding //to check dhcp binding details/leasee