Networking Forums

Networking Forums > Computer Networking > Windows Networking > DHCP released leases go to new computers too soon

Reply
Thread Tools Display Modes

DHCP released leases go to new computers too soon

 
 
rschatz
Guest
Posts: n/a

 
      08-17-2007, 12:47 AM
I recently noticed that my computers get a lease and use it for the day and
then when they shut down release it. That's normal. Then, the next day,
someone else gets the IP that machine had been using. Our lease times are set
to about 2 weeks. The DHCP server is Windows 2003.
In the past those IPs would not be given to someone new so that when the
first computer connected again it could get the same IP that it had before.
This way, computers tended to always have the same IP. By the way, the PCs
are Windows XP.
The problem with this is that WINS seems to not be releasing the registered
name; so, I can ping the name of a computer that is off and it might respond
because some other computer now has the IP that WINS has registered with the
name. Also, if I use sp_who with SQL 2000 server, it might show a connection
that belonged to one computer yesterday, but now even though SQL shows one
name, it is actually a different computer. This seems to be because the
connection to SQL is not being terminated even though a client computer may
be turned off. So, it keeps the name and when a computer with the same IP
connects, it seems to think it is the same computer. Any ideas? How can I get
DHCP to give the same IP always to the same PC? Is it because the PC must ask
for it and for some reason it is not?

 
Reply With Quote
 
 
 
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      08-17-2007, 06:08 AM
Hello,

Do you have the option "002 Microsoft Release DHCP on shutdown" on your DHCP
?

If you want to be sure to never change IP, you can make reservation based on
mac. So your computers will never change it's IP. Not possible on large
network anyway...

--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"rschatz" <(E-Mail Removed)> wrote in message
news:6393D9F6-7ED7-49E6-BD45-(E-Mail Removed)...
>I recently noticed that my computers get a lease and use it for the day and
> then when they shut down release it. That's normal. Then, the next day,
> someone else gets the IP that machine had been using. Our lease times are
> set
> to about 2 weeks. The DHCP server is Windows 2003.
> In the past those IPs would not be given to someone new so that when the
> first computer connected again it could get the same IP that it had
> before.
> This way, computers tended to always have the same IP. By the way, the PCs
> are Windows XP.
> The problem with this is that WINS seems to not be releasing the
> registered
> name; so, I can ping the name of a computer that is off and it might
> respond
> because some other computer now has the IP that WINS has registered with
> the
> name. Also, if I use sp_who with SQL 2000 server, it might show a
> connection
> that belonged to one computer yesterday, but now even though SQL shows one
> name, it is actually a different computer. This seems to be because the
> connection to SQL is not being terminated even though a client computer
> may
> be turned off. So, it keeps the name and when a computer with the same IP
> connects, it seems to think it is the same computer. Any ideas? How can I
> get
> DHCP to give the same IP always to the same PC? Is it because the PC must
> ask
> for it and for some reason it is not?
>


 
Reply With Quote
 
rschatz
Guest
Posts: n/a

 
      08-17-2007, 04:06 PM
In the scope options? No. I don't have it there and don't see anything like
that anywhere else either. Thanks for the suggestion. And, no, I don't want
to try to use reservations. That's not practical in this case.

"Mathieu CHATEAU" wrote:

> Hello,
>
> Do you have the option "002 Microsoft Release DHCP on shutdown" on your DHCP
> ?
>
> If you want to be sure to never change IP, you can make reservation based on
> mac. So your computers will never change it's IP. Not possible on large
> network anyway...
>


 
Reply With Quote
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      08-17-2007, 05:24 PM
Can you check again the lease duration ?
By default, windows will try to use again the previous leasing if it's still
valid.
It will ping the default gateway to check for ip validity. Is it possible to
ping your gateway ?


--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"rschatz" <(E-Mail Removed)> wrote in message
news:EC41BB63-0961-4D4A-8EB2-(E-Mail Removed)...
> In the scope options? No. I don't have it there and don't see anything
> like
> that anywhere else either. Thanks for the suggestion. And, no, I don't
> want
> to try to use reservations. That's not practical in this case.
>
> "Mathieu CHATEAU" wrote:
>
>> Hello,
>>
>> Do you have the option "002 Microsoft Release DHCP on shutdown" on your
>> DHCP
>> ?
>>
>> If you want to be sure to never change IP, you can make reservation based
>> on
>> mac. So your computers will never change it's IP. Not possible on large
>> network anyway...
>>

>


 
Reply With Quote
 
rschatz
Guest
Posts: n/a

 
      08-17-2007, 06:02 PM
Oui. I can ping it from everywhere. The lease is 15 days. Most of the
expirations in that area of the building are for Sept. 1, for example.

"Mathieu CHATEAU" wrote:

> Can you check again the lease duration ?
> By default, windows will try to use again the previous leasing if it's still
> valid.
> It will ping the default gateway to check for ip validity. Is it possible to
> ping your gateway ?
>
>
> --
> Cordialement,
> Mathieu CHATEAU
> http://lordoftheping.blogspot.com
>
>
> "rschatz" <(E-Mail Removed)> wrote in message
> news:EC41BB63-0961-4D4A-8EB2-(E-Mail Removed)...
> > In the scope options? No. I don't have it there and don't see anything
> > like
> > that anywhere else either. Thanks for the suggestion. And, no, I don't
> > want
> > to try to use reservations. That's not practical in this case.
> >
> > "Mathieu CHATEAU" wrote:
> >
> >> Hello,
> >>
> >> Do you have the option "002 Microsoft Release DHCP on shutdown" on your
> >> DHCP
> >> ?
> >>
> >> If you want to be sure to never change IP, you can make reservation based
> >> on
> >> mac. So your computers will never change it's IP. Not possible on large
> >> network anyway...
> >>

> >

>
>

 
Reply With Quote
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      08-17-2007, 06:13 PM
Do you have many scope / multi scope / more than one dhcp server ?


--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"rschatz" <(E-Mail Removed)> wrote in message
news:0C0EA849-9176-444C-953E-(E-Mail Removed)...
> Oui. I can ping it from everywhere. The lease is 15 days. Most of the
> expirations in that area of the building are for Sept. 1, for example.
>
> "Mathieu CHATEAU" wrote:
>
>> Can you check again the lease duration ?
>> By default, windows will try to use again the previous leasing if it's
>> still
>> valid.
>> It will ping the default gateway to check for ip validity. Is it possible
>> to
>> ping your gateway ?
>>
>>
>> --
>> Cordialement,
>> Mathieu CHATEAU
>> http://lordoftheping.blogspot.com
>>
>>
>> "rschatz" <(E-Mail Removed)> wrote in message
>> news:EC41BB63-0961-4D4A-8EB2-(E-Mail Removed)...
>> > In the scope options? No. I don't have it there and don't see anything
>> > like
>> > that anywhere else either. Thanks for the suggestion. And, no, I don't
>> > want
>> > to try to use reservations. That's not practical in this case.
>> >
>> > "Mathieu CHATEAU" wrote:
>> >
>> >> Hello,
>> >>
>> >> Do you have the option "002 Microsoft Release DHCP on shutdown" on
>> >> your
>> >> DHCP
>> >> ?
>> >>
>> >> If you want to be sure to never change IP, you can make reservation
>> >> based
>> >> on
>> >> mac. So your computers will never change it's IP. Not possible on
>> >> large
>> >> network anyway...
>> >>
>> >

>>
>>


 
Reply With Quote
 
rschatz
Guest
Posts: n/a

 
      08-17-2007, 06:34 PM
Indeed. I have two DHCP servers that have similar scopes, but not the same
ranges.
There are about 37 scopes configured on each server. They're all just
regular scopes.

"Mathieu CHATEAU" wrote:

> Do you have many scope / multi scope / more than one dhcp server ?
>
>
> --
> Cordialement,
> Mathieu CHATEAU
> http://lordoftheping.blogspot.com
>
>
> "rschatz" <(E-Mail Removed)> wrote in message
> news:0C0EA849-9176-444C-953E-(E-Mail Removed)...
> > Oui. I can ping it from everywhere. The lease is 15 days. Most of the
> > expirations in that area of the building are for Sept. 1, for example.
> >
> > "Mathieu CHATEAU" wrote:
> >
> >> Can you check again the lease duration ?
> >> By default, windows will try to use again the previous leasing if it's
> >> still
> >> valid.
> >> It will ping the default gateway to check for ip validity. Is it possible
> >> to
> >> ping your gateway ?
> >>
> >>
> >> --
> >> Cordialement,
> >> Mathieu CHATEAU
> >> http://lordoftheping.blogspot.com
> >>
> >>
> >> "rschatz" <(E-Mail Removed)> wrote in message
> >> news:EC41BB63-0961-4D4A-8EB2-(E-Mail Removed)...
> >> > In the scope options? No. I don't have it there and don't see anything
> >> > like
> >> > that anywhere else either. Thanks for the suggestion. And, no, I don't
> >> > want
> >> > to try to use reservations. That's not practical in this case.
> >> >
> >> > "Mathieu CHATEAU" wrote:
> >> >
> >> >> Hello,
> >> >>
> >> >> Do you have the option "002 Microsoft Release DHCP on shutdown" on
> >> >> your
> >> >> DHCP
> >> >> ?
> >> >>
> >> >> If you want to be sure to never change IP, you can make reservation
> >> >> based
> >> >> on
> >> >> mac. So your computers will never change it's IP. Not possible on
> >> >> large
> >> >> network anyway...
> >> >>
> >> >
> >>
> >>

>
>

 
Reply With Quote
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      08-17-2007, 06:55 PM
Strange, based on this, your workstation should renew their lease:
http://www.microsoft.com/technet/pro....mspx?mfr=true

----------
Microsoft DHCP supports local storage, allowing clients to store DHCP
information on their own hard disks. Local storage is useful because when
the client system starts, it first attempts to renew the lease of the same
IP address. Local storage also means that a client can be shut down and
restarted using its previously leased address and configuration, even if the
DHCP server is unreachable or offline at the time the client computer is
restarted. Local storage also enables the ability to perform IP
auto-configuration.
----------

Does your computer get a new lease from another dhcp server ?
If you issue an ipconfig /all, the lease period is 15 days ?

Is your DHCP server stopped/start during night ?

--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"rschatz" <(E-Mail Removed)> wrote in message
news:1678CC51-6191-4D22-BD63-(E-Mail Removed)...
> Indeed. I have two DHCP servers that have similar scopes, but not the same
> ranges.
> There are about 37 scopes configured on each server. They're all just
> regular scopes.
>
> "Mathieu CHATEAU" wrote:
>
>> Do you have many scope / multi scope / more than one dhcp server ?
>>
>>
>> --
>> Cordialement,
>> Mathieu CHATEAU
>> http://lordoftheping.blogspot.com
>>
>>
>> "rschatz" <(E-Mail Removed)> wrote in message
>> news:0C0EA849-9176-444C-953E-(E-Mail Removed)...
>> > Oui. I can ping it from everywhere. The lease is 15 days. Most of the
>> > expirations in that area of the building are for Sept. 1, for example.
>> >
>> > "Mathieu CHATEAU" wrote:
>> >
>> >> Can you check again the lease duration ?
>> >> By default, windows will try to use again the previous leasing if it's
>> >> still
>> >> valid.
>> >> It will ping the default gateway to check for ip validity. Is it
>> >> possible
>> >> to
>> >> ping your gateway ?
>> >>
>> >>
>> >> --
>> >> Cordialement,
>> >> Mathieu CHATEAU
>> >> http://lordoftheping.blogspot.com
>> >>
>> >>
>> >> "rschatz" <(E-Mail Removed)> wrote in message
>> >> news:EC41BB63-0961-4D4A-8EB2-(E-Mail Removed)...
>> >> > In the scope options? No. I don't have it there and don't see
>> >> > anything
>> >> > like
>> >> > that anywhere else either. Thanks for the suggestion. And, no, I
>> >> > don't
>> >> > want
>> >> > to try to use reservations. That's not practical in this case.
>> >> >
>> >> > "Mathieu CHATEAU" wrote:
>> >> >
>> >> >> Hello,
>> >> >>
>> >> >> Do you have the option "002 Microsoft Release DHCP on shutdown" on
>> >> >> your
>> >> >> DHCP
>> >> >> ?
>> >> >>
>> >> >> If you want to be sure to never change IP, you can make reservation
>> >> >> based
>> >> >> on
>> >> >> mac. So your computers will never change it's IP. Not possible on
>> >> >> large
>> >> >> network anyway...
>> >> >>
>> >> >
>> >>
>> >>

>>
>>


 
Reply With Quote
 
rschatz
Guest
Posts: n/a

 
      08-17-2007, 07:34 PM
> Does your computer get a new lease from another dhcp server ?
> If you issue an ipconfig /all, the lease period is 15 days ?

They keep getting their leases from the same server. The server is not
restarting. The DHCP server shows 15 day leases and my computer shows 15 days.

"Mathieu CHATEAU" wrote:
> Strange, based on this, your workstation should renew their lease:
> http://www.microsoft.com/technet/pro....mspx?mfr=true
>
> ----------
> Microsoft DHCP supports local storage, allowing clients to store DHCP
> information on their own hard disks. Local storage is useful because when
> the client system starts, it first attempts to renew the lease of the same
> IP address. Local storage also means that a client can be shut down and
> restarted using its previously leased address and configuration, even if the
> DHCP server is unreachable or offline at the time the client computer is
> restarted. Local storage also enables the ability to perform IP
> auto-configuration.
> ----------
>
> Does your computer get a new lease from another dhcp server ?
> If you issue an ipconfig /all, the lease period is 15 days ?
>
> Is your DHCP server stopped/start during night ?
>
> --
> Cordialement,
> Mathieu CHATEAU
> http://lordoftheping.blogspot.com
>
>
> "rschatz" <(E-Mail Removed)> wrote in message
> news:1678CC51-6191-4D22-BD63-(E-Mail Removed)...
> > Indeed. I have two DHCP servers that have similar scopes, but not the same
> > ranges.
> > There are about 37 scopes configured on each server. They're all just
> > regular scopes.
> >
> > "Mathieu CHATEAU" wrote:
> >
> >> Do you have many scope / multi scope / more than one dhcp server ?
> >>
> >>
> >> --
> >> Cordialement,
> >> Mathieu CHATEAU
> >> http://lordoftheping.blogspot.com
> >>
> >>
> >> "rschatz" <(E-Mail Removed)> wrote in message
> >> news:0C0EA849-9176-444C-953E-(E-Mail Removed)...
> >> > Oui. I can ping it from everywhere. The lease is 15 days. Most of the
> >> > expirations in that area of the building are for Sept. 1, for example.
> >> >
> >> > "Mathieu CHATEAU" wrote:
> >> >
> >> >> Can you check again the lease duration ?
> >> >> By default, windows will try to use again the previous leasing if it's
> >> >> still
> >> >> valid.
> >> >> It will ping the default gateway to check for ip validity. Is it
> >> >> possible
> >> >> to
> >> >> ping your gateway ?
> >> >>
> >> >>
> >> >> --
> >> >> Cordialement,
> >> >> Mathieu CHATEAU
> >> >> http://lordoftheping.blogspot.com
> >> >>
> >> >>
> >> >> "rschatz" <(E-Mail Removed)> wrote in message
> >> >> news:EC41BB63-0961-4D4A-8EB2-(E-Mail Removed)...
> >> >> > In the scope options? No. I don't have it there and don't see
> >> >> > anything
> >> >> > like
> >> >> > that anywhere else either. Thanks for the suggestion. And, no, I
> >> >> > don't
> >> >> > want
> >> >> > to try to use reservations. That's not practical in this case.
> >> >> >
> >> >> > "Mathieu CHATEAU" wrote:
> >> >> >
> >> >> >> Hello,
> >> >> >>
> >> >> >> Do you have the option "002 Microsoft Release DHCP on shutdown" on
> >> >> >> your
> >> >> >> DHCP
> >> >> >> ?
> >> >> >>
> >> >> >> If you want to be sure to never change IP, you can make reservation
> >> >> >> based
> >> >> >> on
> >> >> >> mac. So your computers will never change it's IP. Not possible on
> >> >> >> large
> >> >> >> network anyway...
> >> >> >>
> >> >> >
> >> >>
> >> >>
> >>
> >>

>
>

 
Reply With Quote
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      08-17-2007, 08:28 PM
just to be sure, workstation are 2000 and XP ?

So you start, have a lease for 15 days, reboot, then you get a new ip ?
If it's the case, that's not the default behavior, so we will have to digg
the config to catch what is not by default

--
Cordialement,
Mathieu CHATEAU
http://lordoftheping.blogspot.com


"rschatz" <(E-Mail Removed)> wrote in message
news:741B4712-0D60-4E59-A11A-(E-Mail Removed)...
>> Does your computer get a new lease from another dhcp server ?
>> If you issue an ipconfig /all, the lease period is 15 days ?

> They keep getting their leases from the same server. The server is not
> restarting. The DHCP server shows 15 day leases and my computer shows 15
> days.
>
> "Mathieu CHATEAU" wrote:
>> Strange, based on this, your workstation should renew their lease:
>> http://www.microsoft.com/technet/pro....mspx?mfr=true
>>
>> ----------
>> Microsoft DHCP supports local storage, allowing clients to store DHCP
>> information on their own hard disks. Local storage is useful because when
>> the client system starts, it first attempts to renew the lease of the
>> same
>> IP address. Local storage also means that a client can be shut down and
>> restarted using its previously leased address and configuration, even if
>> the
>> DHCP server is unreachable or offline at the time the client computer is
>> restarted. Local storage also enables the ability to perform IP
>> auto-configuration.
>> ----------
>>
>> Does your computer get a new lease from another dhcp server ?
>> If you issue an ipconfig /all, the lease period is 15 days ?
>>
>> Is your DHCP server stopped/start during night ?
>>
>> --
>> Cordialement,
>> Mathieu CHATEAU
>> http://lordoftheping.blogspot.com
>>
>>
>> "rschatz" <(E-Mail Removed)> wrote in message
>> news:1678CC51-6191-4D22-BD63-(E-Mail Removed)...
>> > Indeed. I have two DHCP servers that have similar scopes, but not the
>> > same
>> > ranges.
>> > There are about 37 scopes configured on each server. They're all just
>> > regular scopes.
>> >
>> > "Mathieu CHATEAU" wrote:
>> >
>> >> Do you have many scope / multi scope / more than one dhcp server ?
>> >>
>> >>
>> >> --
>> >> Cordialement,
>> >> Mathieu CHATEAU
>> >> http://lordoftheping.blogspot.com
>> >>
>> >>
>> >> "rschatz" <(E-Mail Removed)> wrote in message
>> >> news:0C0EA849-9176-444C-953E-(E-Mail Removed)...
>> >> > Oui. I can ping it from everywhere. The lease is 15 days. Most of
>> >> > the
>> >> > expirations in that area of the building are for Sept. 1, for
>> >> > example.
>> >> >
>> >> > "Mathieu CHATEAU" wrote:
>> >> >
>> >> >> Can you check again the lease duration ?
>> >> >> By default, windows will try to use again the previous leasing if
>> >> >> it's
>> >> >> still
>> >> >> valid.
>> >> >> It will ping the default gateway to check for ip validity. Is it
>> >> >> possible
>> >> >> to
>> >> >> ping your gateway ?
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Cordialement,
>> >> >> Mathieu CHATEAU
>> >> >> http://lordoftheping.blogspot.com
>> >> >>
>> >> >>
>> >> >> "rschatz" <(E-Mail Removed)> wrote in message
>> >> >> news:EC41BB63-0961-4D4A-8EB2-(E-Mail Removed)...
>> >> >> > In the scope options? No. I don't have it there and don't see
>> >> >> > anything
>> >> >> > like
>> >> >> > that anywhere else either. Thanks for the suggestion. And, no, I
>> >> >> > don't
>> >> >> > want
>> >> >> > to try to use reservations. That's not practical in this case.
>> >> >> >
>> >> >> > "Mathieu CHATEAU" wrote:
>> >> >> >
>> >> >> >> Hello,
>> >> >> >>
>> >> >> >> Do you have the option "002 Microsoft Release DHCP on shutdown"
>> >> >> >> on
>> >> >> >> your
>> >> >> >> DHCP
>> >> >> >> ?
>> >> >> >>
>> >> >> >> If you want to be sure to never change IP, you can make
>> >> >> >> reservation
>> >> >> >> based
>> >> >> >> on
>> >> >> >> mac. So your computers will never change it's IP. Not possible
>> >> >> >> on
>> >> >> >> large
>> >> >> >> network anyway...
>> >> >> >>
>> >> >> >
>> >> >>
>> >> >>
>> >>
>> >>

>>
>>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving between VLAN's with DHCP leases newsgroups.jd@gmail.com Windows Networking 1 11-28-2007 07:26 PM
Odd issue with DHCP leases & RAS zebulebu Windows Networking 4 03-10-2006 09:10 AM
How to enable DHCP leases hitosry ? Deephazz Windows Networking 3 12-07-2005 05:36 PM
DHCP leases from old box to new box. edavid3001@gmail.com Linux Networking 4 11-11-2005 11:26 PM
Newbie and DHCP no free leases Walter Zambotti Linux Networking 0 05-27-2004 06:14 AM



1 2 3 4 5 6 7 8 9 10 11