Solved

Windows 7 force DHCP renew after sleep/hibernate?

Posted on 2013-01-25
7
2,921 Views
Last Modified: 2013-01-25
Hi all,

We have sporadic problems with Win 7:
Some clients, after weeks of sleep, display an IP conflict after waking up.
Network is a /16, with around 300 PCs, so it should be more than enough. DHCP is Win2008.
Are there any GP objects that I can use to force a DHCP release/renew after wakeup?

Thanks,
Tamas
0
Comment
Question by:TimotiSt
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 17

Expert Comment

by:Nik
ID: 38818172
You can extend the lease time IMO.
Also, it is useful to use DHCP reservations. At least we have that setup in our company.
0
 
LVL 17

Author Comment

by:TimotiSt
ID: 38818183
Increasing the lease time to a month doesn't seem like the best solution, but it might help.
Reservations would work, but that would mean I'll have to lifecycle manage 300+ MACs in the reservation table, which means extra work...
0
 
LVL 17

Expert Comment

by:Nik
ID: 38818199
I didn't mean that with IMO (in mine opinion) :)
You can extend the lease to your personal preference.

Yes, at this point it's a lot of work to do reservations for 300 clients at this point but it will save you from future frustrations on a long road.

As I am aware domain user doesn't have neccessarry rights to renew its IP address manually, but if it does, you can also create a script on the user desktop that would renew the clients IP address from DHCP server.

So, when the client is back from the sleep it tries to use the last used IP address and because the lease expired, another client got that IP address and you got a conflict.

Those are my solutions based on personal experience and I honestly don't know if you have any other choice.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 3

Expert Comment

by:yaro137
ID: 38818209
Do you have IP conflict detection enabled on your DHCP server?
Conflict detection
0
 
LVL 14

Accepted Solution

by:
BlueCompute earned 300 total points
ID: 38818512
In Windows 7 a fairly straightforward way to do this would be to use Task Scheduler to add a task triggered by the IP conflict event logged in the event log.

You can do this by going into the system event log, selecting the event 4199 (duplicate IP detected) and clicking 'Attach Task To This Event', then running through the wizard to get it to run a simple batch ipconfig /release ipconfig /renew whenever an IP conflict is detected.  You can get the task to run under administrative credentials.

http://www.windowsecurity.com/articles-tutorials/authentication_and_encryption/Attaching-Tasks-Event-Viewer-Logs-Events.html

You can deploy this scheduled task using Group Policy: http://technet.microsoft.com/en-us/library/cc725745.aspx
0
 
LVL 17

Author Closing Comment

by:TimotiSt
ID: 38818653
Now that is a beautiful solution! :)
Thanks mate!
0
 
LVL 14

Expert Comment

by:BlueCompute
ID: 38818866
Glad you like it TimotiSt.  I gotta agree that at first glance it is a fairly clean way of doing what you want.  The devil is in the detail and the deployment though!

Hope it does what you need it to.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

By now, it is common knowledge that Windows 7 has been successfully been able to live up to the hype of being touted as Microsoft’s most anticipated O.S. ever. This latest 2010 Windows release builds up on its predecessor’s positives, adding new…
Article by: Lee
Windows 7 Ultimate and Enterprise (and 2008 R2) introduced a new feature you may not be aware of - Boot from VHD.   Boot from VHD (or what Microsoft refers to asNative Boot allows you to install Windows to a VHD (Virtual Hard Disk) file that is t…
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now