Configure Cisco router as a basic DHCP server
Posted by Quinn McHenry in Cisco router
Using a Cisco router as a DHCP server can simplify a network configuration by cetralizing DHCP services in a large network or decentralizing DHCP services to the endpoint routers at satellite locations. The ease of remote management of Cisco-based DHCP services is a great advantage.
conf t
service dhcp
ip dhcp pool 192.168.1.0/24
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 192.168.1.5 192.168.1.6
exit
ip dhcp excluded-address 192.168.1.1 192.168.1.199
ip dhcp excluded-address 192.168.1.241 192.168.1.255
^Z
This example shows a Cisco router configuration as a basic DHCP server in the 192.168.1.0/24 network. The DHCP options implemented are default-router (DHCP option 3) and dns-server (DHCP option 6). Two DNS servers are configured. With the excluded-address commands, using only ip addresses between 192.168.1.200-192.168.1.240 will be available for client use.
About Quinn McHenry
View more articles by Quinn McHenry
The Conversation
Follow the reactions below and share your own thoughts.





December 21, 2008 at 3:24 am, winelle said:
where did you get the dns server?? and what ip should be use is it the lan or wan?
March 16, 2009 at 12:15 pm, ABC said:
DNS Servers are manually configured by the System admin… In the above example the DNS Servers are assigned IP from the Excluded range because DNS Servers need to be configured by Static IP’s..
April 10, 2009 at 5:56 am, Sridhar V said:
We are getting a 4 mb internet leased line to our college. We have a cisco 2600 series router. I want to config NAT as well as DNS in the router so that the clients will be given static IP address in the local LAN side with Gate way only. WIll the router be able to resolve the DNS queries of the computers. If can please give me details how to configure the above in the router.
August 19, 2009 at 4:51 pm, Buddie said:
Is it really manadatory to configure dns server on the router along with the dhcp server.
pls do mail me for details bfun4real@gmail.com .
Thank u
October 17, 2009 at 5:28 am, Anonymous said:
thanks
January 07, 2010 at 5:24 pm, abdulelah said:
how can configruation router until don’t change ip for client inside (the ip is dhcp between range)
May 09, 2010 at 8:48 pm, Anonymous said:
good one example
February 13, 2011 at 3:17 pm, Fffff said:
thanx
May 09, 2010 at 8:51 pm, Anonymous said:
good one example
October 07, 2010 at 10:27 am, Armin_zakarian said:
almost its useful you use in your configuration :
Specify the lease duration for the addresses you’re using from the pool.
Router(dhcp-config)#lease 7
## Armin Zakarian – iran ##
November 13, 2010 at 2:59 pm, Martin DePores said:
How do I disable a Cisco SR2024C DHCP SERVER on this switch? I am a novice but willing to learn
December 06, 2010 at 3:55 pm, Jim Flerlage said:
I’am new at this and not sure of a cisco 3750 swt. when plug a IP 2002 PH INTO JUST A FREE PORT i JUST GET DIAL TONE NO PROGRAM FEATURES and what program is used in the cisco router to make the phone programable. Thanks jim.
February 13, 2011 at 3:15 pm, Faizrel1 said:
what purpose using for these IP range from it means without excluded ip mentioned above 192.168.1.200 192.168.1.240
April 04, 2011 at 12:35 pm, Arutembesa said:
Hi I have a Cisco router 878w , and I have a LAN, and I need to connect the router to my LAN and give it a DHCP wirless sercer setting , in case all the computers with wireless can get internet via my wireless router.
June 16, 2011 at 2:02 pm, Pool Installation said:
I’ll back again for sure, thanks for great article
July 12, 2011 at 4:53 am, Gitesh said:
My requirememnt is to install DHCP for providing the IP’s automatically.. is it necessary to install DNS with it ..if yes any guidelines to install it…
July 12, 2011 at 4:53 am, Gitesh said:
My requirememnt is to install DHCP for providing the IP’s automatically.. is it necessary to install DNS with it ..if yes any guidelines to install it…
April 26, 2012 at 6:43 pm, Al said:
How do you configure a cisco 1841 to obtain an IP address and DNS addresses from an ISP using a cable modem ?
May 04, 2012 at 12:04 pm, wanyakala edwin said:
thank you so much, we want you to help us such that we can help others too.