Scroll To Top

How to Configure DHCP on Cisco Router?

Posted in Articles, CCNA, Networking10 months ago • Written by Shais15 Comments

Configure DHCP on Cisco Router. The last week we had send a topic about installation and configuration of DHCP Server in Windows Server 2012 R2. We have introduced the DHCP Server “Install and Configure DHCP Server on Windows Server 2012 R2” and told the necessary services and network protocols requirement, if you don’t know the basic of DHCP Server? you must read the article first.

Create and Configure a CCNA Lab within Cisco Packet Tracer.

Create the network diagram with tow routers and there LAN networks and then configure it with the following step by step guides. Name the routers, R1 and R2.

Configure DHCP Server Using Cisco Router - Technig

Configure DHCP on Cisco Router

Configure the Router 1 with below IP address and initial configuration. I assume you know and understand  the basic router and Switch configuration clearly. So no need to explain the functions of basic router and switch commands line.

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R1
R1(config)#interface serial 0/0/0
R1(config-if)#ip address
R1(config-if)#no shutdown

R1(config-if)#clock rate 64000

For Router 2, configure the same interface serial 0/0/0 and fastEthernet 0/0 with the following commands.

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#interface serial 0/0/0
R2(config-if)#ip address
R2(config-if)#no shutdown


R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address
R2(config-if)#no shutdown

Configure DHCP on Cisco Router configure dhcp on cisco router Using Packet Tracer

Lets config Router 2 as DHCP Server and set the clients to get there IP addresses from DHCP Server.

In the R2 while you are in the config mode, type the command ‘ip dhcp excluded-address‘ and then press enter. This command ‘ip dhcp excluded-address’ will create an exclusive range of IP addresses which reserved for Network Servers and DHCP Server will not assign theme to clients.

The ‘ip dhcp pool‘ command create a pool for a network. You can create many pools on a router for all Local area network that connected to the router.

How to Configure DHCP on Cisco Router - Technig

How to Configure DHCP on Cisco Router – Technig

R2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip dhcp excluded-address
R2(config)#ip dhcp pool Technig_Clients

Now go to client setting and set the IP Configuration to DHCP and see the client get new IP address from DHCP Server.

Get IP From DHCP Server

Get IP From DHCP Server

So that’s it, configure DHCP on Cisco router within a minute! Simple and easy.

DHCP Options on Cisco Router

Remember some DHCP options when you need to provide IP addresses from a DCHP server to clients that are outside of your network or are not in the same Local Area Network. You must use the ‘ip helper-address‘ to forward the DHCP client requests to remote host.

DHCP Options - IP Helper-address

DHCP Options – IP Helper-address

Configure the R1 to relay the DHCP client request. It is not work without routing. So configure Routers with static or dynamic routing. Here I’m testing with RIP.

R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip helper-address

R1(config)#router rip

Go to the client IP configuration setting and see the forwarded request by DHCP Server.

Forward DHCP client request on Cisco Router

Forward DHCP client request on Cisco Router

Hope you learn the configuration of DHCP Server on Cisco Routers and Download the CCNA Lab – DHCP Configuration on Cisco Router.

The file password is

Searches related to How to Configure DHCP on Cisco Router?

Configure dhcp on cisco router interface
Configure dhcp on cisco router in packet tracer
What is dhcp pool
Configure dhcp on cisco switch 2960
How to configure dhcp pool on cisco switch
IP dhcp excluded-address
Cisco dhcp lease command
IP dhcp server

TAGS: , , ,
About this Author

I’m a network and Information Security instructor. Here is my online pictorial notebook. I would like to write and share my experience through this website for computer enthusiasts and technology geeks.

Like us on Facebook
on Facebook

Follow me on Twitter
Follow @technigs on Twitter
Add me on Google+
on Google+

15 Comments so far. Feel free to join this conversation.

  1. CVSDecember 9, 2015 at 8:34 pm - Reply

    The Packet Tracer file linked is locked with a password.

    • Shais
      ShaisDecember 9, 2015 at 10:42 pm - Reply

      Sorry, the password is

  2. daveDecember 10, 2015 at 8:07 am - Reply

    What is the password for the protected ccna lab practical. CCNA Lab – DHCP Configuration on Cisco Router

  3. daveDecember 10, 2015 at 8:09 am - Reply

    sorry just seen the password nvm

  4. amanullahApril 29, 2016 at 1:02 am - Reply

    why the IP helper dose not work? The other network machines can not get IP from DHCP. I tried more and more but I could not configure the tow network with DHCP. Pleas help me.

    Just the router DHCP has been Inistaled get IP.

    • Shais
      ShaisApril 30, 2016 at 10:03 pm - Reply

      Hi Aman,

      Try to crate and configure the DHCP on a router and configure the DHCP-Relay agent to other routers to get deploy IP address for their clients.

  5. kalgerMay 10, 2016 at 7:35 pm - Reply

    You forgot to mention, that we need to create another dhcp pool for the second network.

    ip dhcp pool Technig-BNetwork

    • Shais
      ShaisMay 10, 2016 at 8:13 pm - Reply

      Hi Kalger,
      Thanks for mentioning my mistake.

  6. khalidJuly 27, 2016 at 12:00 pm - Reply

    the default router ip give above is from which network we give ……and what is the dns ip…

    • Shais
      ShaisJuly 27, 2016 at 4:38 pm - Reply

      DNS is the network domain naming system. It resolve the IP address to name and name to IP address.
      Here I just set a DNS IP address for testing the lab.

  7. MilanAugust 3, 2016 at 10:57 am - Reply

    if we need
    ip dhcp pool Technig-BNetwork

    on another router then that was the purpose of ip helper-address command in this network sir????

    • Shais
      ShaisAugust 3, 2016 at 12:51 pm - Reply

      Hi Milan,

      The IP helper works as DHCP relay agent to gain IP from main DHCP server and deploy to the clients connected to this router.

  8. faizMay 6, 2017 at 3:56 pm - Reply

    Thanks sir.

  9. aditiJuly 12, 2017 at 1:14 pm - Reply

    why are we using two routers…?what is need of r2 router…?

    • Shams
      ShamsJuly 12, 2017 at 3:42 pm - Reply

      This is just a test lab for understanding DHCP and features. But in the real network, you can optimize your network hardware.

Leave A Response