Monday, December 26, 2011

How to disable Autoconfiguration IPv4 Address

Sometime you setup windows server 2008 to vmware using LAN or wifi, you chose Bridge mode to share internet connections between host and virtual machine may be cause of issues with internet connection at virtual machine. They can not connect to the internet or appear a message likes "conflict IP address"

Enter: Run > cmd > ipconfig /all

You may see the following issues:



or:

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) 82567LM-3 Gigabit Network Connection
Physical Address. . . . . . . . . : 00-23-24-08-30-57
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::8508:6cb9:5112:f8c9 (Preferred)
Autoconfiguration IPv4 Address. . : 169.254.248.201(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0

IPv4 Address. . . . . . . . . . . : 192.168.1.136(Duplicate)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled

To fix it, enter these from Command Prompt:

C:\Users\lyngtinh> netsh interface ipv4 show inter

result as:

Idx Met MTU State Name
--- ---------- ---------- ------------ ---------------------------
1 50 4294967295 connected Loopback Pseudo-Interface 1
11 10 1500 connected Local Area Connection

11: <=Keep it in mind

Next run this command:

C:\Users\lyngtinh>netsh interface ipv4 set interface 11 dadtransmits=0 store=persistent

Next, enter
Run > services.msc > disable DHCP Client service

Final, restart your server.

Good luck!
lyngtinh

130 comments:

  1. Dude you rock!!!
    I've gone through a gazzilion fixes online and this is the only one that worked. Thank you!

    ReplyDelete
  2. Oh man, this saved me, I tried a bunch of different things from a bunch of difference places but yours was the one that fixed it, thank you!

    ReplyDelete
  3. We still can't do that.
    would you give us steps which include text typed completely
    may be like case own yourself. thanks

    ReplyDelete
    Replies
    1. To do this, you must be administrator permission

      Delete
  4. Man, You rock !!!
    I fought with my servers for hours before i got your post. It worked like a charm

    ReplyDelete
  5. WOW man you really are a truly life server this was the only working solution and it works

    ReplyDelete
  6. When I enter the '....set interface 11 dadtransmits...' bit, I get the following 'The requested operation requires elevation'
    I have no idea what that means. Any suggestions?

    ReplyDelete
  7. You Are a Jem...Man...Its saved my four days research...Thank you a lot man...

    ReplyDelete
  8. Hi Clueless you have to run the cmd with admin credentials

    ReplyDelete
  9. Hi All

    I have tried to use run the line above as administrador but it cmd says lyngtinh isnt a command or path.

    Any help please?! thanks

    ReplyDelete
  10. Man, plase answer me. If I disabled DHCP Client Service, then I wouldn't have connection to the internet. How to solve this?

    ReplyDelete
    Replies
    1. Thanks Lyn! This worked for me.
      Doing your commands, then stop the DHCP client service (not disabled)
      disabled and reenabled the network adapter and I got internet access :)
      John, if you disable the DHCP client, you need to enter a static IP on your network adapter.

      Delete
  11. Cleyton, type the part of the command that says 'netsh' onwards, for example just actually type 'netsh interface ipv4 set interface 11 dadtransmits=0 store=persistent' and press .

    'C:\Users\Lyngtinh>' is the bit of the command prompt that is presented to you to type from, your's may say 'C:\Users\Cleyton>', for example...

    ReplyDelete
  12. Thanks for this article, problem solved.

    John, your router connects to the internet and holds the public IP (w.x.y.z) and an internal IP (192.168.1.1) Your server has a static internal IP outside of the DHCP scope (192.168.1.2) and uses default gateway of 192.168.1.1 to connect to the internet.

    -Dave

    ReplyDelete
  13. My dns can not be changed. when i change it, after sometime, previous dns address back. what can i do now? (i'v already disable DHCP)
    Please help me.

    ReplyDelete
  14. Dude, I copied and saved this one for later use. Thanks for being so helpful. This is great.

    ReplyDelete
  15. The issue resolved at once the above process done but, After enabling DHCP The problem persist when again tried with LAN. need to use both static and dynamic ip address.

    ReplyDelete
  16. Do we have a way to fix this problem in Linux (CentOS)? BTW, thanks for the very helpful tip. I was able fix my windows machine. I still have to look for the Linux one. I wish I could have access to the default-gateway router to clear ip arp cache. However, it is not the case

    ReplyDelete
  17. Wow, I've been searching for 3 days. MS's site SUCKS! Thank you for posting this. I've got server 2012, some intel 10gig x520 da cards and setting up IScsi and have been racking my brain/online trying to figure it out. Every reboot take 10 minutes due to 520 gigs of ram have to load. This worked the first try! Thanks again!

    ReplyDelete
    Replies
    1. Don't blame MS for the ills of VM hardware layer problem. Even we faced this issue and its certainly not an OS problem.

      Delete
    2. can you clearly explain what is the problem?

      Delete
  18. ive been trying to get rid of this for a few weeks now with multiple people trying to solve it thanks for the solution:)

    ReplyDelete
  19. Thanks man. There is only one server at client's premises and it was down. The IP won't get set to static and stayed at 169.x.x.x. Logged a call with IBM for the visit. But, before they can come found this article which not only saved $$$ but also fixed the issue. Thanks a lot. You are a true life saver. Could you please explain on this issue? What's the root cause. Cheers, Dev.

    ReplyDelete
  20. This is a handy fix for our BAD_ADDRESS issue we have in DHCP, but there clearly is more to it...

    ReplyDelete
  21. I anyone have Static IP address configured then no use of disabling DHCP Client service..


    We need only disable DHCP Client service when IP address configured through DHCP Server.

    ReplyDelete
  22. Hi there, I just recently uninstalled my Virtual Machine Software. I noticed that everytime I populate the fields of Ipv4 (either on WLAN Card or LAN Card) with certain values e.g (IP Address/Subnet Mask/Default Gateway), after closing and reopening again the window, it shows me a blank fields over and over again.
    I hope someone could throw me some knowledge on this.
    Thank you guys.

    ReplyDelete
  23. Thanks man this is exactly what i'm looking for.

    ReplyDelete
  24. today i faced this problem. what i don't understand is that the PCs(about 10 ) are all having the same problem and all have autoconfiguration enable and have duplicate address() one the static address given by us and the other by auto)
    we don't use any vmware. More over this happen only on win 7 and 8. what is the cause of this problem?

    ReplyDelete
  25. Thanks! I had a Server 2008 R2 machine down for 2 hours trying to fix this. The rest of the netsh winsock commands had no effect.

    ReplyDelete
  26. Excellent, thanks. No reg hacks. I think the MS wizard to fix networking issues will turn on DCHP if run on a server, thus causing this issue.

    ReplyDelete
  27. I have a problem. After i tried this, still cannot connected. And i can't start the dhcp client because when i tried to make it automatic the start button still grey. Also my network and sharing center is blank with no network at all. And there's a bunch of new Wan Miniport in my network adapters in device manager. What happened? Help me please.

    ReplyDelete
  28. This exact issue had me stuck. Thankfully I found your article early on in the troubleshooting process. Thanks for the fix!

    ReplyDelete
  29. You make my day good, thanks a lot.

    ReplyDelete
  30. Did twice already. After restart still having same duplicate and prefered ip address?
    Please help me/

    ReplyDelete
  31. Thank you for this very useful article that helped me so much!

    ReplyDelete
  32. My brother is usually the one who works with the ipv4 addresses, but unfortunately he has moved out of town. I didn't know much about them. This really helped me, now I wont have to rely on him!

    Tripp Vanderbilt | http://iptrading.com/services/buying-address-space/

    ReplyDelete
  33. Or...

    Advance IP: XXX.XXX.248.XXX into your computer.


    It was fine for me.

    ReplyDelete
  34. HOLY CRAP!! IT WORKED!!

    Make sure after you reboot you check your static IP settings, after running the above and rebooting, my static IP settings were blank. Put your correct info in and BINGO BANGO BONGO, it's all good.

    Thanks!

    ReplyDelete
  35. This is good stuff.. Thx much for your help.

    ReplyDelete
  36. Super - thx so much! It worked brilliantly!

    ReplyDelete
  37. It worked like a magic :-) Thank you so much !

    ReplyDelete
  38. Very nice! Fixed a locked IP address. Thank you!

    ReplyDelete
  39. I had replaced a Legacy Network Adapter in a Hyper-V Server with a Network Adapter (keeping same static IP) and had the (duplicate) entries as above. This fix worked a treat. Thanks :-)

    ReplyDelete
  40. I don't recommend disabling the DHCP Client Service on Server 2008 R2. It can mess with dynamic DNS registrations and could possibly make your server unable to be found via hostname.

    ReplyDelete
  41. I am trying the same for this issue to resolve for the last 2 days.. it did not work. plz help. i was trying to configure my pc and laptop both for the VPN. aftrr that day i am facing the ussue of automatic ip configuration : 169....... The network is always unidentified. i an tried the abive steps with Administrator Cmd. Till the end ut work fine but when i restart the pc there is still no internet or unidetified network issue and the same Ip 169... stil there. plz help aome one

    ReplyDelete
  42. I am trying the same for this issue to resolve for the last 2 days.. it did not work. plz help. i was trying to configure my pc and laptop both for the VPN. aftrr that day i am facing the ussue of automatic ip configuration : 169....... The network is always unidentified. i an tried the abive steps with Administrator Cmd. Till the end ut work fine but when i restart the pc there is still no internet or unidetified network issue and the same Ip 169... stil there. plz help aome one

    ReplyDelete
    Replies
    1. Make sure you don't forget "store=persistent"

      Delete
  43. Many thanks for this, really helped. Does anyone else get exclamation marks on the network after the reboot? Why would this be?

    ReplyDelete
    Replies
    1. Check the gateway. I had the same issue and the gateway was missing for some reason.

      Delete
  44. This just saved my butt. Thanks. I wish all solutions were this perfect.

    ReplyDelete
  45. Hooooray at long last I have killed this issue on a Win2K8 R2 | Dell PE R710 box. Nice trick bro and thank for the help.

    10/10

    ReplyDelete
  46. Thanks for this solution - it solved the problem however the Ethernet properties disappeared from network sharing center.
    & later I discovered the reason of my problem, it was an IP duplication with another server
    Thanks

    Thanks again

    ReplyDelete
  47. Thanks bro, you are the guru...

    ReplyDelete
  48. Thanks Bro.. Its works...:)

    ReplyDelete
  49. Please help me lyngtinh. Its still doesnt work on my laptop even if I already follow the commands given by you.

    ReplyDelete
  50. I fixed this error on PC client but I am using a wifi router on LAN this network and it don't have internet when connect to that wifi router.help me fix it.

    ReplyDelete
  51. run as administrator how can do it any solution

    ReplyDelete
  52. its worked in the virtual machines. Thanks.

    ReplyDelete
  53. Great, VERY VERY Thanks :) Worked for me...

    ReplyDelete
  54. great stuff bruh!!!!!! did it once and it worked. awesome!!!!!!!!! much appreciated

    ReplyDelete
  55. i was blocked two days on this problem. Thanks to you now it's working

    ReplyDelete
  56. Tried the whole steps. Getting an error " Parameter is incorrect" after the last command... Please help.

    ReplyDelete
  57. I tried a lot of other solutions on the internet, but yours worked!! :D I am so happy right now! Thanks!!

    ReplyDelete
  58. This worked like a treat. Is this a known issue or a bug?

    ReplyDelete
  59. Awesome fix. Thanks. Now to go set this up on 20 Windows 10 VMs :)

    ReplyDelete
  60. i done the same, it started to work well. but after disabled DHCP client i am getting request time out on and off. kindly sagest me to resolve the issue.
    windows 2012 R2 Server

    ReplyDelete
  61. I have admin permission , but still it showing as need to be adminstrator

    ReplyDelete
  62. This blog furnished itself in a completely easy and clean manner. creator of this blog located a completely easy manner to unique its view but whilst you study this weblog absolutely, you will get to comprehend approximately how hard it can be to unique such in an easy manner.
    LENOVO WinServ 2012 R2 Standard

    ReplyDelete
  63. yeeeeesssssssssss yeeeaahhh you are the best thankyouuuuuuuu

    ReplyDelete
  64. Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating Hadoop Admin Online Training

    ReplyDelete
  65. Resolved issue after upgrade to 6.5. Tried to removed and re-add interfaces and de/re-register VM with no luck. Could not ping in/out of VM/interface and thought it may be MAC/arp issue and/or firewall, but this did the trick. Many thanks!!! @RayRecendez

    ReplyDelete
  66. OMG!! its worked for me. Thanks a lot

    ReplyDelete
  67. How to disable Autoconfiguration IPv4 Address
    Nice! This worked for me.

    Thanks, sir!

    ReplyDelete
  68. That was indeed a great help friend. I was not aware that the Autoconfiguration of ipv4 addresses is that much easy. You really made my day by helping me with this easy step.

    ReplyDelete
  69. Thank you so much. This solved my problem

    ReplyDelete
  70. This really saved my life. Thank you very much!

    ReplyDelete
  71. Nice. I really appreciate your effort. I got a clear idea about how to disable Autoconfiguration IPv4 Address. I can suggest IPv4Mall for further details about IPv4 Addresses.

    ReplyDelete
  72. Wow, this post is very nice, I like your post. Your content is so convincing that I always scroll through your post and content.
    You can check my post at IPv4 Deals: IP Auction Site

    ReplyDelete
  73. Fantastic !
    It save a lot of time and headache

    ReplyDelete
  74. creo que tambien aplica esto.
    https://kb.vmware.com/s/article/1028373

    ReplyDelete
  75. You are the man! you save my life. Thanks a lot!

    ReplyDelete
  76. Thanks a lot for your help lyngtinh....

    ReplyDelete
  77. This comment has been removed by the author.

    ReplyDelete
  78. I was stuck on this for more an entire day removing interfaces, deleting and recreating vm and this is the only solution that work.....thx!!!

    -Ray Recendez

    ReplyDelete
  79. This comment has been removed by the author.

    ReplyDelete
  80. This comment has been removed by the author.

    ReplyDelete
  81. This blog covers some most asked topics in the Azure Data Engineer Interview Questions with fully explained answers and details dp203

    ReplyDelete
  82. Microsoft recently updated a certification named Azure Data Engineer Associate. To get this tag you need to clear one examination named: Exam DP-203: Data Engineering on Microsoft Azure.

    ReplyDelete
  83. You can find what is my ipv4 and other details your IP address is leaking about you!

    ReplyDelete
  84. Good Write up - For additional Informations Find Here

    ReplyDelete
  85. very informative blog.. thanks for sharing Click here

    ReplyDelete