DHCP issue on router

Answered Question
Sep 24th, 2008
User Badges:

Soho 97 router running 12.3.


Configured as a DHCP server however when DHCP client reaches end of lease router gives it a new IP address. Is there anyway to allow the client to retain the IP address when lease ends or bind the client to a particular IP address?

Correct Answer by satish_zanjurne about 8 years 7 months ago

Configure the lease as infinite to retain the IP Address.


Router(config-dhcp)# lease {days [hours][minutes] | infinite}



To bind the client to a particular IP Address

use following commands


ip dhcp pool name

host address [mask | /prefix-length]

hardware-address hardware-address type



HTH...rate if helpful..

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (2 ratings)
Loading.
Marwan ALshawi Wed, 09/24/2008 - 03:44
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

u can give the client a static IP from the PC

and exclude that IP from the DHCP pool in the router with command

ip dhcp exclude-address [ip address]


good luck

if helpful Rate

g.leonard Wed, 09/24/2008 - 03:47
User Badges:

Sorry should have stated that I didn't want to give the client a static address.

Richard Burts Wed, 09/24/2008 - 03:48
User Badges:
  • Super Silver, 17500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Gary


The normal behavior for DHCP is that when the lease reaches its end the client will receive the same address if it is available. Sometimes the DHCP server will have assigned that address to some other device (especially if the client has been off line for a while and if the address pool is small). From your description that seems to not be happening. Perhaps you can post the router configuration so that we can see it. Also it would help to know how many devices are receiving addresses from the router/server.


It is possible to statically bind an IP address to a specific MAC address. That might solve your issue. But if there are many devices that you want to do it for then it becomes a bit cumbersome.


HTH


Rick

Correct Answer
satish_zanjurne Wed, 09/24/2008 - 03:48
User Badges:
  • Silver, 250 points or more

Configure the lease as infinite to retain the IP Address.


Router(config-dhcp)# lease {days [hours][minutes] | infinite}



To bind the client to a particular IP Address

use following commands


ip dhcp pool name

host address [mask | /prefix-length]

hardware-address hardware-address type



HTH...rate if helpful..

Marwan ALshawi Wed, 09/24/2008 - 04:07
User Badges:
  • Purple, 4500 points or more
  • Community Spotlight Award,

    Best Publication, December 2015

nice one Satish this 4 point :)

Actions

This Discussion