DHCP 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:

(adsbygoogle = window.adsbygoogle || []).push({});

cisco>en
cisco#conf t
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(dhcp-config)#exit
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(config)#exit
cisco#copy run start.

Note: You are to enter only the commands following the special characters (> and #). I hope this helps.

Spread the love

Timigate

Ashioma Michael, a BSc (Computer Science)., MTCNA, CCNA, and CCNP holder with many years of industry-proven experience in network design, implementation and optimization. He has tutored and guided many professionals towards obtaining their Cisco certifications. Mike works as a senior network engineer with one of the leading internet service providers in West Africa.

One thought on “DHCP on a Cisco Router

Leave a Reply

Your email address will not be published. Required fields are marked *