DHCP on 3750

Unanswered Question
Sep 22nd, 2010
User Badges:

Hi there,

I have setup a DHCP server on cisco 3750 switch and it works perfectly fine except lease time, it looks like it never reuse ip address if it was assignt before:

My config below

   lease 2

is there anything i am missing in my config ?

Kind regards


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
gatlin007 Sat, 09/25/2010 - 15:47
User Badges:
  • Silver, 250 points or more

It looks like your lease time is set for two days.  Perhaps lower it to something like 6 hours?



To configure the duration of the lease for an IP address that is  assigned from a Cisco IOS Dynamic Host Configuration Protocol (DHCP)  server to a DHCP client, use the lease command in DHCP pool configuration mode. To restore the default value, use the no form of this command.

lease {days [hours [minutes]] | infinite}

no lease

Syntax Description


Specifies the duration of the lease in numbers of days.


(Optional) Specifies the number of hours in the lease. A days value must be supplied before you can configure an hours value.


(Optional) Specifies the number of minutes in the lease. A days value and an hours value must be supplied before you can configure a minutes value.


Specifies that the duration of the lease is unlimited.


1 day

Command Modes

DHCP pool configuration

Command History



This command was introduced.


The following example shows a 1-day lease:

lease 1

The following example shows a 1-hour lease:

lease 0 1

The following example shows a 1-minute lease:

lease 0 0 1

The following example shows an infinite (unlimited) lease:

lease infinite

marcin.piesio Thu, 09/30/2010 - 09:11
User Badges:

I have changed my lease time to

   lease 0 0 1

and after unpluging my pc and reconnecting my pc after 5 min i got next ip from the pool.

i had x.x.x.7

and now i got x.x.x.8 ...

any other ideas i could try ?

gatlin007 Thu, 09/30/2010 - 10:10
User Badges:
  • Silver, 250 points or more

I believe that is normal behavior.  The DHCP daemon will  go through the pool and start over at the beginning.  Are you experiencing a situation where the DHCP pool is exhausted and the DHCP daemon isn't issuing addresses?  From the 3750 if you execute a 'show ip dhcp binding' or a 'show ip dhcp conflicts' do you see anything conflicting?


marcin.piesio Fri, 10/08/2010 - 06:47
User Badges:

Hi Chris,

Thanks for your replay.

show ip dhcp binding - shows ip add which are leased right now

show ip dhcp conflicts - shows 3 machines with "Gratuitous ARP" as a detection method and no conflicts.

Is there any config i can apply so DHCP daemon is not going thrue whole pool but start recycling ip sooner ?

Once again thanks for your help.

Kind regards


Robert Taylor Fri, 10/08/2010 - 07:16
User Badges:
  • Cisco Employee,

If you need a client to keep the same IP address all the time, then a static binding will be more appropriate, or even assign it a static address.

A longer lease would also satisfy this need in some situations.

The way dhcp pools work, once the lease is over, we will move on to the next ip in the pool, even for the same host.  This is how its designed.

So, the answer to your last question is, no .. no configuration to make it sticky (other than extending the lease time).



This Discussion