Win7 still can't boot with static IP correctly?


  1. Posts : 9
    Windows 7 Professional
       #1

    Win7 still can't boot with static IP correctly?


    I set my Win7 Pro computer to a static IP. Reboot and the computer can't get to the network, forget the internet. Give it a DHCP IP, then immediately give it the static it had and it works fine.

    What is the fix for this ridiculous issue?

    If there is no fix, does anyone know a script I can have run at startup that sets the NIC to DHCP, then back to the static I want?
      My Computer


  2. Posts : 7,878
    Windows 7 Ultimate x64
       #2

    Are you certain that you are setting the IP and the Netmask properly? What are you using?
      My Computer


  3. Posts : 9
    Windows 7 Professional
    Thread Starter
       #3

    The IP, mask and gateway are all correct since it works before I reboot.
      My Computer


  4. Posts : 375
    Windows 7 Ultimate N 64-bit
       #4

    on reboot, does it still have the static IP? and can u ping anything after reboot. and then also can u ping 127.0.0.1 just to check the card it's self on reboot. that does sound strange though.
      My Computer


  5. Posts : 9
    Windows 7 Professional
    Thread Starter
       #5

    I'll check exactly what the NIC has when I reboot and I'll ping 127.0.0.1, too. Let you know.
      My Computer


  6. Posts : 2,726
    Windows 7 Ultimate 64bit
       #6

    Bit confused as to why you should have to do this but you could always try this pal :)

    Create a .bat file containg the following, and place it in your startup

    netsh interface ip set address name="Local Area Connection" dhcp
    netsh interface ip set dns name="Local Area Connection" dhcp



    Then create another .bat file containg the following, and place this in your startup aswell making sure it runs after the previous .bat file you created (replace the x with your relative info)

    netsh interface ip set address name="Local Area Connection" source=static addr=xxx.xxx.xxx.xxx mask=xxx.xxx.xxx.xxx
    netsh interface ip set address name="Local Area Connection" gateway=xxx.xxx.xxx.xxx gwmetric=0
    netsh interface ip set dns name="Local Area Connection" source=static addr=xxx.xxx.xxx.xxx
      My Computer


  7. Posts : 9
    Windows 7 Professional
    Thread Starter
       #7

    I will definitely try the scripts if I can't get an answer to this. Thanks.
      My Computer


  8. Posts : 9
    Windows 7 Professional
    Thread Starter
       #8

    I'm out of ideas and can't understand how this networking portion of the OS made it out of alpha. Randomly dropped my internet today saying I had no Network. Couldn't get anything back until I rebooted, set it to DHCP, then set it to static.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:54.
Find Us