Hi Guys, the last post was on DHCP configuration on Mikrotik. Today, I am gonna give the commands for configuring DHCP on a cisco router. These commands are to be entered on the CLI of a cisco router.
To configure DHCP on a cisco router, enter the following commands depending on your IP address settings:
cisco(cinfig)#ip dhcp pool cisco (gives the pool a name)
cisco(dhcp-config)#netw 192.168.10.0 255.255.255.0 (Defines the pool.Please, use your IP settings)
cisco(dhcp-config)#default-router 192.168.10.1(sets the default gateway for hosts)
cisco(dhcp-config)#dns-server 192.168.10.1 (Sets the dns for hosts.Depending on what your dns server is)
cisco(config)#ip dhcp excluded-add 192.168.10.1
cisco(config)#ip dhcp excluded-add 192.168.10.255 (we excluded both default gateway and the broadcast address of the network. These addresses are not to be given out to hosts.
cisco#copy run start.
You may also like: How to configure dhcp relay agents on cisco routers
Note: You are to enter only the commands following the special characters (> and #). I hope this helps.
If you enjoyed this tutorial, please subscribe to this blog to receive my posts via email. Also subscibe to my YouTube channel, like my Facebook page and follow me on Twitter. To get the Packet Tracer file for this lab, simply drop your email address in the comment section of this blog.