Configure DHCP on Cisco devices

I like to use DHCP server on networking devices, especially in smaller networks. Those networks, mostly have one server, serving as FTP, Web, DNS and who knows what else. So, if you can, unload server and configure DHCP on you router or L3 switch.

First, notice topology on slide 1.

Configure DHCP on Cisco devices

Slide 1.

Cisco 2811 will be you default gateway with interface fastEthernet as inside inteface. So, our first job is to address that interface with IP address that will be default gateway:

DHCP_Router#configure terminal
DHCP_Router(config)#interface fastEthernet 0/0
DHCP_Router(config-if)#ip address 192.168.100.1 255.255.255.0
DHCP_Router(config-if)#no shutdown

Now we have to define pool and all other parameters that DHCP will give to clients. Remember that DHCP service can equip clients with around 50 parameters. For this tutorial I have configured just few, necessary parameters:

DHCP_Router(config)#ip dhcp pool Net100
DHCP_Router(dhcp-config)#network 192.168.100.0 255.255.255.0
DHCP_Router(dhcp-config)#default-router 192.168.100.1
DHCP_Router(dhcp-config)#dns-server 4.4.4.4

Of course, you need to exclude some addresses from pool, due to fact that you already assign some static addresses to devices in your network:

DHCP_Router(config)#ip dhcp excluded-address 192.168.100.252

It would be about it for beginning. You cat test your configuration by plugin your PC or some other device to you switch as I did in topology above. If every thing is OK, you will receive IP address (Slide 2.).

Configure DHCP on Cisco devices

You can test you connectivity to your default gateway using ping command (Slide 3.).

Configure DHCP on Cisco devices

Slide 3.

I hope that this tutorial was informative to you ant hank you for visiting this website.

Dejan Dzodan

Dejan Dzodan

IT professional for more then 15 years, mostly in financial institutions but with experience in ISP and retail. Proven in networking and overall infrastructure projects. Cisco instructor.

Leave a Reply

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


7 + 1 =