Windows Vista Forums

Machine does not get IP at startup
  1. #1



    Member
    Join Date : Dec 2009
    Posts : 21
    Vista Home Premium x64
    Local Time: 09:12 PM

    Machine does not get IP at startup

    Hello,

    I have a small problem: when I reboot my computer I do not always get a valid IP from my router hub without having to type "ipconfig /renew" at the command line; or without obtaining a new IP address or reload network interface in diagnose and repair connection problems; or restarting the DHCP Client service.

    In resume: I generally cannot access internet at startup of vista because the DHCP does not assign me a valid private IP to access outside internet.

    Is there any fix to this problem?
    Has this problem already been reported?
    What is the cause?

    Thanks for any help, resolution or fix to this problem,
    Kind regards,
    Nuno Magalhães.


      My System SpecsSystem Spec

  2. #2
    Yard Dog's Avatar

    Senior Member



    Join Date : Oct 2011
    Central Florida in a small town
    Posts : 2,174
    Vista Home Basic. 32 bit SP 2
    Local Time: 05:12 PM
    usa us florida

     

    Re: Machine does not get IP at startup

    Hello and welcome . Try this please : DNS Resolver Cache
    This will reset the DNS.. post back results please.

      My System SpecsSystem Spec

  3. #3



    Member
    Join Date : Dec 2009
    Posts : 21
    Vista Home Premium x64
    Local Time: 09:12 PM


      Thread Starter

    Re: Machine does not get IP at startup

    I think that fixed it.
    Did lots of reboots and shutdowns and got internet all the times.

    By the way, what DNS has to do with DHCP client getting an IP address?
    Don't know if it's of any interest but I'm sure the problem occurred right after I set the DNS resolver IP addresses to fixed IP addresses in the Local Area connection IPv4 properties.

    Kind regards,
    Nuno Magalhães.

      My System SpecsSystem Spec

  4. #4
    tom982's Avatar

    ٩(͡๏̯͡๏)۶



    Join Date : Mar 2010
    England
    Posts : 3,642
    Windows 7 Ultimate x64 SP1
    Local Time: 10:12 PM
    uk uk england

     

    Re: Machine does not get IP at startup

    Quote Originally Posted by nmrm View Post
    I think that fixed it.
    Did lots of reboots and shutdowns and got internet all the times.

    By the way, what DNS has to do with DHCP client getting an IP address?
    Don't know if it's of any interest but I'm sure the problem occurred right after I set the DNS resolver IP addresses to fixed IP addresses in the Local Area connection IPv4 properties.

    Kind regards,
    Nuno Magalhães.
    DNS doesn't really have anything to do with DHCP. DNS is responsible for converting hostnames to IP addresses. DHCP is used to assign dynamic IP addresses, and their corresponding subnet masks, to computers running TCP/IP within it's network.

    How is your router DHCP configured? Could you take a few screenshots of the router page for us please?

    Tom

      My System SpecsSystem Spec

  5. #5



    Member
    Join Date : Dec 2009
    Posts : 21
    Vista Home Premium x64
    Local Time: 09:12 PM


      Thread Starter

    Re: Machine does not get IP at startup

    What I thought was wrong: guess what? This afternoon I turned on my computer and no internet (event with ipconfig /flushdns) and reboot. So it has nothing to do with it. Sorry for my early reply.

    What info do you want to know? I don't think there's the possibility of configuring DHCP in my router but I post some screens on attach.

    Anyone have any more ideas?

    Thanks and Kind regards,
    Nuno Magalhães.

      My System SpecsSystem Spec

  6. #6
    tom982's Avatar

    ٩(͡๏̯͡๏)۶



    Join Date : Mar 2010
    England
    Posts : 3,642
    Windows 7 Ultimate x64 SP1
    Local Time: 10:12 PM
    uk uk england

     

    Re: Machine does not get IP at startup

    I've attached a batch file that will reset your internet connection, reset your hosts file and flush your DNS. Could you please download it and run it?

    Hopefully this should fix your connectivity problems, if not, we'll have to dig deeper.

    Tom

      My System SpecsSystem Spec

  7. #7



    Member
    Join Date : Dec 2009
    Posts : 21
    Vista Home Premium x64
    Local Time: 09:12 PM


      Thread Starter

    Re: Machine does not get IP at startup

    No. That didn't work either. This morning... no internet at startup.
    Any other suggestions?

    Kind regards,
    Nuno Magalhães.

      My System SpecsSystem Spec

  8. #8



    Member
    Join Date : Dec 2009
    Posts : 21
    Vista Home Premium x64
    Local Time: 09:12 PM


      Thread Starter

    Re: Machine does not get IP at startup

    Hello again,

    I noticed an article from microsoft site (Windows Vista cannot obtain an IP address from certain routers or from certain non-Microsoft DHCP servers) that it states the following:
    1) I have to set DhcpConnEnableBcastFlagToggle to 1, but as you can see I don't even have that key
    2) If the router doesn't support broadcast I had to set DhcpConnForceBroadcastFlag to 0, instead of step 1

    I'm attaching a screenshot without valid ip at startup and another with valid ip at startup.
    How can I know if my router supports dhcp broadcast? Is there any GUI friendly way to do this?

    Any help appreciated,
    Kind Regards,
    Nuno Magalhães.

      My System SpecsSystem Spec

  9. #9
    tom982's Avatar

    ٩(͡๏̯͡๏)۶



    Join Date : Mar 2010
    England
    Posts : 3,642
    Windows 7 Ultimate x64 SP1
    Local Time: 10:12 PM
    uk uk england

     

    Re: Machine does not get IP at startup

    Quote Originally Posted by nmrm View Post
    No. That didn't work either. This morning... no internet at startup.
    Any other suggestions?

    Kind regards,
    Nuno Magalhães.
    Quote Originally Posted by nmrm View Post
    Hello again,

    I noticed an article from microsoft site (Windows Vista cannot obtain an IP address from certain routers or from certain non-Microsoft DHCP servers) that it states the following:
    1) I have to set DhcpConnEnableBcastFlagToggle to 1, but as you can see I don't even have that key
    2) If the router doesn't support broadcast I had to set DhcpConnForceBroadcastFlag to 0, instead of step 1

    I'm attaching a screenshot without valid ip at startup and another with valid ip at startup.
    How can I know if my router supports dhcp broadcast? Is there any GUI friendly way to do this?

    Any help appreciated,
    Kind Regards,
    Nuno Magalhães.
    Hello Nuno,

    My apologies for the late reply, I'm right in the middle of exams at the moment and most of my time is going towards revision.

    Try following the steps outlined in that tutorial to make the key. Sometimes in Windows, if you haven't changed a setting before, there won't be a registry key for it.

    To resolve this issue yourself, disable the DHCP BROADCAST flag in Windows Vista. To do this, follow these steps:
    Click Start, type regedit in the Start Search box, and then click regedit in the Programs list.

    If you are prompted for an administrator password or for confirmation, type your password, or click Continue.
    Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{GUID}
    In this registry path, click the (GUID) subkey that corresponds to the network adapter that is connected to the network.
    On the Edit menu, point to New, and then click DWORD (32-bit) Value.
    In the New Value #1 box, type DhcpConnEnableBcastFlagToggle, and then press ENTER.
    Right-click DhcpConnEnableBcastFlagToggle, and then click Modify.
    In the Value data box, type 1, and then click OK.
    Close Registry Editor.
    Then reboot and see if you have the problem. If you still do, change the value data to 0 and reboot again.

    Short of getting WireShark on it, I don't know how to check this flag on your router; and I don't even know if WireShark can show this. Is there any settings page on your router which allows you to change the DHCP settings? I would be very surprised if there isn't

    Tom

      My System SpecsSystem Spec

  10. #10



    Member
    Join Date : Dec 2009
    Posts : 21
    Vista Home Premium x64
    Local Time: 09:12 PM


      Thread Starter

    Re: Machine does not get IP at startup

    Thanks, I got my problem fixed.
    Good luck to your exam.

    Kind regards,
    Nuno Magalhães.

      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
Machine does not get IP at startup problems?

Similar Threads
Thread Thread Starter Forum Replies Last Post
VB scripting for machine Startup and GPO information Wirrel VB Script 2 30 Mar 2009
Shutdown and startup Hyper-V Virtual Machine via script FC Virtual Server 2 28 Jan 2009
Vista Machine unable to print to Printer attached to 98 machine thru parallel port savikalra Network & Sharing 1 10 Dec 2008
Machine startup GPO Jimmy Vista General 0 24 Sep 2008
Importing Outlook 2003 Contacts and Mail from an XP machine to a new Vista machine Robert W. Rafferty Vista mail 2 31 Aug 2007