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

21 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
  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