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

51 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. What a good topic!I really appreciate your opinions.



    ----------------------------------------------
    Rc Helicopter|Rc Helicopters|Mini Rc Helicopter

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

    ReplyDelete
  7. 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
    Replies
    1. You need to run CMD as Administrator

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

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

    ReplyDelete
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. Dude, I copied and saved this one for later use. Thanks for being so helpful. This is great.

    ReplyDelete
  16. 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
  17. 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
  18. 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
  19. 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
  20. how can I do this on windows XP?

    ReplyDelete
  21. 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
  22. This is a handy fix for our BAD_ADDRESS issue we have in DHCP, but there clearly is more to it...

    ReplyDelete
  23. 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
  24. 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
  25. Thanks man this is exactly what i'm looking for.

    ReplyDelete
  26. 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
  27. 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
  28. 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
  29. 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
  30. This exact issue had me stuck. Thankfully I found your article early on in the troubleshooting process. Thanks for the fix!

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

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

    ReplyDelete
  33. 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
  34. Or...

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


    It was fine for me.

    ReplyDelete
  35. 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
  36. Thanks a lot. It is all Good.

    ReplyDelete