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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.
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
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?
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

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
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.
Jaroslav LatalMSPAuthor Commented:
Turned off the switch for 5 minutes, but still no luck.
Looking forward to monday.

Jarda
Bryant SchaperCommented:
is it getting a new IP from the DHCP server?  Is it just retaining the old DNS server?
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
nader alkahtaniConsultantCommented:
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

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 alkahtaniConsultantCommented:
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
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
Jaroslav LatalMSPAuthor Commented:
No rouge DHCP server. Client ipconfig shows DHCP server: ip of old DHCP

Jarda
nader alkahtaniConsultantCommented:
use telnet to do remote command ipconfig command not need to Administrator privileges

or psexec https://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
nader alkahtaniConsultantCommented:
ping the DHCP server that appears in the workstaion to see if it is died
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
Jaroslav LatalMSPAuthor Commented:
It seems there is no server-side solution.
nader alkahtaniConsultantCommented:
thank you so much , but can I know how did you resolve your problem ?
Jaroslav LatalMSPAuthor Commented:
I did not solve it. I will try it tomorrow.

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

Will.
nader alkahtaniConsultantCommented:
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
nader alkahtaniConsultantCommented:
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
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
Jaroslav LatalMSPAuthor Commented:
I'm going to install a DNS server with old server's IP address.
It should solve not working internet.

Jarda
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.