Default gateway changing after resuming from Sleep/Hibernate

Discussion in 'Home Networking' started by robert, Mar 12, 2009.

  1. robert

    robert Guest

    I have had a problem with internet connection being lost on a wireless
    connected netbook after resuming from sleep/hibernate.

    I have traced the issue down to the default gateway being changed after

    Doing a network repair or NIC disable/enable doesnt help - only a
    restart will correct the problem.

    The wireless NIC is setup for DHCP, the wired NIC is setup with a fixed
    IP , subnet mask and default gateway for a different network.

    With wireless networking after resuming from sleep , "ipconfig -all"
    shows the correct IP address & DHCP server but the default gateway had
    been changed to the value for the wired NIC.

    Changing the wired NIC setup to DHCP gives a workaround for the problem.

    Anyone assist in why this error is occurring and a proper solution ?

    Win XP Home, Dell mini9
    robert, Mar 12, 2009
    1. Advertisements

  2. robert

    Rob Morley Guest

    Did you try "ipconfig /release" and "ipconfig /renew" ?
    Rob Morley, Mar 13, 2009
    1. Advertisements

  3. robert

    robert Guest

    Correction to my OP:

    "ipconfig /all" shows the correct default gateway
    "route print" shows the incorrect gateway
    I can correct the default gateway by doing a route -f, ipconfig /release
    , ipconfig /renew
    But I still have incorrect active routes in the routing table.
    I dont seem to be able to use "route delete" to remove these.
    ie route delete

    I have worked around the problem by removing the fixed IP address in the
    wired NIC.
    But I assume it shouldnt work like this !
    robert, Mar 13, 2009
  4. Why do you want two default gateways? Which one do you expect to be used?

    Regards, Ian
    Ian Northeast, Mar 13, 2009
  5. robert

    Rob Morley Guest

    The one specified for the Ethernet connection when he's connected by
    Ethernet, and the one specified for the Wi-Fi connection when he's
    connected by Wi-Fi. Presumably.
    Rob Morley, Mar 13, 2009
  6. The way I read the OP was that the wired connection was not an alternative
    to the wireless one for general network/Internet access but a separate
    connection to a LAN - he says it is for a "different network".

    If they are indeed alternatives which are not supposed to be used together
    then they should both be DHCP so only the active one has IP settings at
    any given time and, as per his later post, he has correctly fixed it.

    If my reading is correct and the connections have different purposes the
    wired one should not have a default gateway specified.

    Having two default gateways at once doesn't really make sense. Many OSs
    will not even permit it.

    Regards, Ian
    Ian Northeast, Mar 13, 2009
  7. robert

    robert Guest

    The 2 networks are not used at the same time, wireless at home, wired at
    work where the network isnt DHCP.

    Shouldnt the settings for the 2 NICs be completely separate and work
    independantly ?
    Why does it all work as expected until after a hibernate ?
    robert, Mar 13, 2009
  8. robert

    Rob Morley Guest

    They should ...
    Some drivers are buggy and don't reinitialise their hardware properly
    after they've been suspended or hibernated.
    Rob Morley, Mar 14, 2009
  9. robert

    robert Guest

    Okay I'll go with that, always hope of a new driver !

    I've learnt something anyway, interestingly ipconfig gives different
    values from route for the default gateway after suspend.
    robert, Mar 14, 2009
  10. robert

    Clive Guest

    Which ones would they be and on which operating systems?
    Never trust what you read on Google or what you see people
    posting about other unrelated problems! Your problem is that
    when you are asked to explain anything you post, you don't
    seem able to - not just in this newsgroup.
    Release and renew will not fix the problem mentioned and if
    you knew anything about computers it would help. Most that
    do have already tried various commands.
    Clive, Mar 14, 2009
  11. robert

    Clive Guest

    Mine doesn't. So you do have a fault or incorrect setting.
    Clive, Mar 14, 2009
  12. robert

    Adrian C Guest

    Adrian C, Mar 15, 2009
  13. robert

    robert Guest

    I'm just reporting what the route print command gives me in a command
    There is not a separate output from the route print command for each NIC.
    OS is Windows XP Home .
    Will cut and paste actual output later ( newsgroups done from a separate
    machine !) in case it is of interest.
    Not an expert in this area, just enough knowledge to guess that the
    problem might be in the routing/DNS area and found a value which changed
    after recovery from sleep.
    robert, Mar 15, 2009
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.