Configuration of DHCP :
(config)#ip dhcp excluded-address (1st ip address) (last ip address)
(config)#ip dhcp pool (name of the pool)
(dhcp-config)#network (network address) (mask)
(dhcp-config)#default-router (default router ip address)
(dhcp-config)#dns-server (ip address of dns server)
(dhcp-config)#domain-name (name of domain)
(dhcp-config)#lease (days) (hours)
Enable DHCP services :
(config)#service dhcp
DHCP Relay Agent !
When configurating The relay agent on the devices you have to configure it on the ingress port connected to the hosts . Then you assign the ip address of the interface of the dhcp router .
(config)#interface (interface connected towards your hosts)
(config-if)#ip helper-address (ip address of the dhcp router)
more to come …