need to ipconfig /release and /renew

Dear experts,

Our old Windows server with DHCP role died, so I had to install new DHCP server.
Now when I connect Windows client to the network, it won't lease IP address from new DHCP server. It holds old IP instead...

Restart did not help...

The solution is to run:
ipconfig /release
ipconfig /flushdns
ipconfig /renew

But I have many clients and it's not possible to run ipconfig on all of them.

Do you see a solution?


Kind regards,
Jarda
LVL 7
Jaroslav LatalMSPAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Will SzymkowskiSenior Solution ArchitectCommented:
Change the network adapter from dhcp to static and then back to dhcp. Also try disabling the adapter and re-enable it.

Will.
0
Jaroslav LatalMSPAuthor Commented:
Dear Will,

Thanks for you quick response.
disabling and re-enabling the network adapter did not help.
DHCP to static to DHCP again helped.

My problem is I have many computers in offices throughout the building. I'm not able to go to each of them to configure network card :(


Jarda
0
Bryant SchaperCommented:
you are bit out of luck, but did your DHCP server do anything else?  They should be fine until it is time to renew, then the new server will respond.

You could bounce the ports on the switches or the switches themselves?
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Jaroslav LatalMSPAuthor Commented:
Yep, old server was DHCP and DNS server. New server is also DHCP and DNS, but with new IP.
It means clients do not see DNS.

If I disconnect and then connect ethernet cable, clients still hold old ipconfig.
Same as bounce the ports, isn't it?

Jarda
0
Bryant SchaperCommented:
yes, but try disconnecting for like 10 seconds, rebooting a switch takes time, windows should see it gone.

Not an easy fix, reboots should do it.  In the future, and always hindsight, I suggest two servers with those roles.  DNS is still tough, clients like to use the primary.
0
Jaroslav LatalMSPAuthor Commented:
Turned off the switch for 5 minutes, but still no luck.
Looking forward to monday.

Jarda
0
Bryant SchaperCommented:
is it getting a new IP from the DHCP server?  Is it just retaining the old DNS server?
0
Jaroslav LatalMSPAuthor Commented:
Nader: good point! Some clients computers are not in domain..

Bryan: no, client computers are ignoring new DHCP server, they remember old ipconfig from old DHCP
0
nader alkahtaniNetwork EngineerCommented:
you said "The solution is to run:
ipconfig /release
ipconfig /flushdns
ipconfig /renew

But I have many clients and it's not possible to run ipconfig on all of them."
then put this commands in that script or .bat file to run it in more than computer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nader alkahtaniNetwork EngineerCommented:
check about if there is a rogue DHCP server http://myitforum.com/myitforumwp/2014/10/29/rogue-dhcp-server-detection-free-tool/
I doubt that the clients get IPs from a rogue DHCP server
0
Jaroslav LatalMSPAuthor Commented:
Right, I still hop there is a server-side solution.

Running Script in more computers is fine, but what about laptop users (no admin accounts)? They will come on monday to work and see what.. Internet doesn't work, lets call admin... :(

Any server-side solution?
 

Jarda
0
Jaroslav LatalMSPAuthor Commented:
No rouge DHCP server. Client ipconfig shows DHCP server: ip of old DHCP

Jarda
0
nader alkahtaniNetwork EngineerCommented:
use telnet to do remote command ipconfig command not need to Administrator privileges

or psexec https://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
0
nader alkahtaniNetwork EngineerCommented:
ping the DHCP server that appears in the workstaion to see if it is died
0
Jaroslav LatalMSPAuthor Commented:
Nader, I see you are trying to help me. Thanks.
I'm going to give up. Maybe there is not a server-side solution.

Jarda
0
Jaroslav LatalMSPAuthor Commented:
It seems there is no server-side solution.
0
nader alkahtaniNetwork EngineerCommented:
thank you so much , but can I know how did you resolve your problem ?
0
Jaroslav LatalMSPAuthor Commented:
I did not solve it. I will try it tomorrow.

Jarda
0
Will SzymkowskiSenior Solution ArchitectCommented:
Not sure why points were not split as you stated my first comment corrected the dhcp issue.

Will.
0
nader alkahtaniNetwork EngineerCommented:
Tomorrow check if they use Deep freeze or similar programs
OR
check if they use Local Group Policy that inforce them to use old DHCP
check if the old DHCP in the authorized servers http://blogs.technet.com/b/networking/archive/2009/02/27/old-dhcp-servers-appear-in-the-list-of-authorized-servers-after-a-domain-rename.aspx
I hope that help you
0
nader alkahtaniNetwork EngineerCommented:
I wounder if the workstation doesn't find DHCP server it will get APIPA IP address starts from  169.254.0.1 through 169.254.255.254 with subnet mask 255.255.0.0 . the client check all 5 minutes if there is a DHCP server then replace APIPA .
but this problem is very confused .
I hope  the experts to analyze this problem
1.By using ipconfig see if that old Ip address is infinite
2.can you ping your DHCP from that workstaion ? By using safe mode by network support
0
Jaroslav LatalMSPAuthor Commented:
Will, with respect to your knowledge, you did not resolve my problem.
I stated that I have many clients and it's not possible to run ipconfig on all of them. Changing dhcp to static to dhcp solved the problem on single client.

In fact, nobody have solved this issue. Maybe there is no solution to the problem at all.
I gave points to Nather because he tried hard to help me. Even though with C mark.

As I said before, I respect your knowledge, you look like a real expert.


Kind regards,
Jarda
0
Jaroslav LatalMSPAuthor Commented:
I'm going to install a DNS server with old server's IP address.
It should solve not working internet.

Jarda
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DHCP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.