DHCP from a 1721?

Answered Question
Mar 27th, 2006
User Badges:

Is it possible to make my 1721 router the DHCP server as well.

I am replacing a linksys unit that did this and I need the Cisco to do it as well.

If you would include the configs or a link to them it would be greatly appreciated.


Thanks

Dale

Correct Answer by ankurbhasin about 11 years 4 months ago

Hi Dale,


default-router command will be the ip address which you want your clinets to get as a defaut gateway.


As an example if you are configuring your router as DHCP server for your machines in lan then your machines should also get default gateway also fom DHCP server which should be the lan interface of your router so default-router command will make that wprk for you.


HTH, if yes please rate all post.


Ankur

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
ankurbhasin Mon, 03/27/2006 - 08:42
User Badges:
  • Red, 2250 points or more

Hi Dale,


Yes ofcourse 1721 can be configured as DHCP server.


The config will look as follows


ip dhcp pool

network x.x.x.x x.x.x.x

default-router x.x.x.x


!

ip dhcp excluded-address


Check this link to get the details of each and every command which I have mentioned in my config above


http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fipras_r/1rfdhcp.htm


HTH, if yes please rate the post.


Ankur

Dale_Bosley Mon, 03/27/2006 - 08:59
User Badges:

Ankur,


Thanks for your quick reply, yes this looks like this will work, but I have one question. What is the default-router supposed to be. The router I'm putting these commands on is also the gateway router to the internet. do I make it the address of this router?

Please advise.

I will rate the post highly if you can explain this part to me


Thanks

Dale

Richard Burts Mon, 03/27/2006 - 09:05
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Dale


The address you put in there will usually be the router interface address. Remember that you are configuring the router to act as a DHCP server and to supply addressing information to PCs that will connect on that subnet. The default router is the default gateway for those PCs and will almost always the be router interface address for that subnet.


HTH


Rick

Correct Answer
ankurbhasin Mon, 03/27/2006 - 09:07
User Badges:
  • Red, 2250 points or more

Hi Dale,


default-router command will be the ip address which you want your clinets to get as a defaut gateway.


As an example if you are configuring your router as DHCP server for your machines in lan then your machines should also get default gateway also fom DHCP server which should be the lan interface of your router so default-router command will make that wprk for you.


HTH, if yes please rate all post.


Ankur

Dale_Bosley Mon, 03/27/2006 - 11:09
User Badges:

Ankur


Thank you very much for your help.

Yes that solved my issue


Thanks

Dale

Actions

This Discussion