DHCP server configuration on a Cisco Router

DHCP server configuration on a Cisco Router

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#conf t
cisco(cinfig)#ip dhcp pool cisco (gives the pool a name)
cisco(dhcp-config)#netw (Defines the pool.Please, use your IP settings)
cisco(dhcp-config)#default-router the default gateway for hosts)
cisco(dhcp-config)#dns-server (Sets the dns for hosts.Depending on what your dns server is)
cisco(config)#ip dhcp excluded-add
cisco(config)#ip dhcp excluded-add (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.

Spread the love

1 thought on “DHCP server configuration on a Cisco Router”

Leave a Comment