Networking Forums

Networking Forums > Network Hardware > Home Networking > Default gateway changing after resuming from Sleep/Hibernate

Reply
Thread Tools Display Modes

Default gateway changing after resuming from Sleep/Hibernate

 
 
robert
Guest
Posts: n/a

 
      03-12-2009, 08:45 PM
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
resuming.

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
 
Reply With Quote
 
 
 
 
Rob Morley
Guest
Posts: n/a

 
      03-13-2009, 02:48 AM
On Thu, 12 Mar 2009 21:45:41 +0000
robert <(E-Mail Removed)> wrote:

> 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 resuming.
>
> Doing a network repair or NIC disable/enable doesnt help - only a
> restart will correct the problem.
>

Did you try "ipconfig /release" and "ipconfig /renew" ?

 
Reply With Quote
 
robert
Guest
Posts: n/a

 
      03-13-2009, 08:50 AM
Rob Morley wrote:
> On Thu, 12 Mar 2009 21:45:41 +0000
> robert <(E-Mail Removed)> wrote:
>
>> 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 resuming.
>>
>> Doing a network repair or NIC disable/enable doesnt help - only a
>> restart will correct the problem.
>>

> Did you try "ipconfig /release" and "ipconfig /renew" ?
>


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 192.168.0.0

I have worked around the problem by removing the fixed IP address in the
wired NIC.
But I assume it shouldnt work like this !
 
Reply With Quote
 
Ian Northeast
Guest
Posts: n/a

 
      03-13-2009, 06:40 PM
On Thu, 12 Mar 2009 21:45:41 +0000, robert wrote:

> 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
> resuming.
>
> 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.


Why do you want two default gateways? Which one do you expect to be used?

Regards, Ian
 
Reply With Quote
 
Rob Morley
Guest
Posts: n/a

 
      03-13-2009, 07:26 PM
On Fri, 13 Mar 2009 19:40:45 +0000
Ian Northeast <(E-Mail Removed)> wrote:

> On Thu, 12 Mar 2009 21:45:41 +0000, robert wrote:
>
> > 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 resuming.
> >
> > 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.

>
> Why do you want two default gateways? Which one do you expect to be
> used?
>

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.

 
Reply With Quote
 
Ian Northeast
Guest
Posts: n/a

 
      03-13-2009, 09:05 PM
On Fri, 13 Mar 2009 20:26:00 +0000, Rob Morley wrote:

> On Fri, 13 Mar 2009 19:40:45 +0000
> Ian Northeast <(E-Mail Removed)> wrote:
>
>> On Thu, 12 Mar 2009 21:45:41 +0000, robert wrote:
>>
>> > 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 resuming.
>> >
>> > 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.

>>
>> Why do you want two default gateways? Which one do you expect to be
>> used?
>>

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


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
 
Reply With Quote
 
robert
Guest
Posts: n/a

 
      03-13-2009, 09:45 PM
Ian Northeast wrote:
> On Fri, 13 Mar 2009 20:26:00 +0000, Rob Morley wrote:
>
>> On Fri, 13 Mar 2009 19:40:45 +0000
>> Ian Northeast <(E-Mail Removed)> wrote:
>>
>>> On Thu, 12 Mar 2009 21:45:41 +0000, robert wrote:
>>>
>>>> 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 resuming.
>>>>
>>>> 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.
>>> Why do you want two default gateways? Which one do you expect to be
>>> used?
>>>

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

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

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 ?

 
Reply With Quote
 
Rob Morley
Guest
Posts: n/a

 
      03-14-2009, 02:32 AM
On Fri, 13 Mar 2009 22:45:34 +0000
robert <(E-Mail Removed)> wrote:

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


They should ...

> Why does it all work as expected until after a hibernate ?
>

Some drivers are buggy and don't reinitialise their hardware properly
after they've been suspended or hibernated.


 
Reply With Quote
 
robert
Guest
Posts: n/a

 
      03-14-2009, 07:39 AM
Rob Morley wrote:
> On Fri, 13 Mar 2009 22:45:34 +0000
> robert <(E-Mail Removed)> wrote:
>
>> 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 ?

>
> They should ...
>
>> Why does it all work as expected until after a hibernate ?
>>

> Some drivers are buggy and don't reinitialise their hardware properly
> after they've been suspended or hibernated.
>
>

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.
 
Reply With Quote
 
Clive
Guest
Posts: n/a

 
      03-14-2009, 10:50 PM

"Rob Morley" <(E-Mail Removed)> wrote in message
news:20090314033215.0d2eb714@bluemoon...
> On Fri, 13 Mar 2009 22:45:34 +0000
> robert <(E-Mail Removed)> wrote:
>
>> 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 ?

>
> They should ...
>
>> Why does it all work as expected until after a hibernate ?
>>

> Some drivers are buggy and don't reinitialise their hardware properly
> after they've been suspended or hibernated.
>
>

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.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wifi not automatically connecting after sleep/hibernate. Legend-11 Wireless Networks 2 05-07-2010 08:27 AM
Changing Default Gateway Jack-PEC Windows Networking 3 04-21-2007 03:56 AM
DG834G changing default gateway? David Home Networking 16 03-17-2005 05:24 PM
Default Gateway changing on Server 2k3 JamesSF Windows Networking 4 03-01-2005 10:54 PM
Linux: Default gateway fails, must use local IP for default gw instead John Sasso Wireless Internet 2 07-08-2004 08:30 AM



1 2 3 4 5 6 7 8 9 10 11