Myreader.co.uk  
uk news, chat and community
   home   |   control panel login   |   archive   |  
 
comp
graphics.flash
homebuilt
home-networking
misc
os.linux
peripherals.misc
sys.laptops
sys.mac
sys.palmtops
sys.sun
training
vendors
  
 
date: Thu, 12 Mar 2009 21:45:41 +0000,    group: uk.comp.home-networking        back       
Default gateway changing after resuming from Sleep/Hibernate   
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
date: Thu, 12 Mar 2009 21:45:41 +0000   author:   robert lid

Re: Default gateway changing after resuming from Sleep/Hibernate   
On Thu, 12 Mar 2009 21:45:41 +0000
robert <robert@invalid.invalid> 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" ?
date: Fri, 13 Mar 2009 03:48:00 +0000   author:   Rob Morley

Re: Default gateway changing after resuming from Sleep/Hibernate   
Rob Morley wrote:
> On Thu, 12 Mar 2009 21:45:41 +0000
> robert <robert@invalid.invalid> 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 !
date: Fri, 13 Mar 2009 09:50:19 +0000   author:   robert lid

Re: Default gateway changing after resuming from Sleep/Hibernate   
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
date: Fri, 13 Mar 2009 19:40:45 +0000   author:   Ian Northeast

Re: Default gateway changing after resuming from Sleep/Hibernate   
On Fri, 13 Mar 2009 19:40:45 +0000
Ian Northeast  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.
date: Fri, 13 Mar 2009 20:26:00 +0000   author:   Rob Morley

Re: Default gateway changing after resuming from Sleep/Hibernate   
On Fri, 13 Mar 2009 20:26:00 +0000, Rob Morley wrote:

> On Fri, 13 Mar 2009 19:40:45 +0000
> Ian Northeast  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
date: Fri, 13 Mar 2009 22:05:14 +0000   author:   Ian Northeast

Re: Default gateway changing after resuming from Sleep/Hibernate   
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  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 ?
date: Fri, 13 Mar 2009 22:45:34 +0000   author:   robert lid

Re: Default gateway changing after resuming from Sleep/Hibernate   
On Fri, 13 Mar 2009 22:45:34 +0000
robert <robert@invalid.invalid> 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.
date: Sat, 14 Mar 2009 03:32:15 +0000   author:   Rob Morley

Re: Default gateway changing after resuming from Sleep/Hibernate   
Rob Morley wrote:
> On Fri, 13 Mar 2009 22:45:34 +0000
> robert <robert@invalid.invalid> 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.
date: Sat, 14 Mar 2009 08:39:37 +0000   author:   robert lid

Re: Default gateway changing after resuming from Sleep/Hibernate   
"Rob Morley"  wrote in message 
news:20090314033215.0d2eb714@bluemoon...
> On Fri, 13 Mar 2009 22:45:34 +0000
> robert <robert@invalid.invalid> 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.
date: Sat, 14 Mar 2009 23:50:59 -0000   author:   Clive

Re: Default gateway changing after resuming from Sleep/Hibernate   
"robert" <robert@invalid.invalid> wrote in message 
news:7218p8Fmp3gvU1@mid.individual.net...
> Rob Morley wrote:
>> On Fri, 13 Mar 2009 22:45:34 +0000
>> robert <robert@invalid.invalid> 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.

Mine doesn't.  So you do have a fault or incorrect setting.
date: Sat, 14 Mar 2009 23:51:45 -0000   author:   Clive

Re: Default gateway changing after resuming from Sleep/Hibernate   
Clive wrote:

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

Coward.

-- 
Adrian C
date: Sun, 15 Mar 2009 13:30:10 +0000   author:   Adrian C lid

Re: Default gateway changing after resuming from Sleep/Hibernate   
On 14/03/2009 23:51, Clive wrote:
> "robert"<robert@invalid.invalid>  wrote in message
> news:7218p8Fmp3gvU1@mid.individual.net...
>> Rob Morley wrote:
>>> On Fri, 13 Mar 2009 22:45:34 +0000
>>> robert<robert@invalid.invalid>  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.
>
> Mine doesn't.  So you do have a fault or incorrect setting.
>
>
If the OP did not have a connection to his router/AP how did he get his 
route print to show the gateway?
I don't have an XP machine available at the moment but my Vista machine 
has the same type of setup as the OP and if my wireless card is unable 
to connect to my router no Gateway is shown in the Active Routes however 
the ethernet nic Gateway is always shown in the Persistent Routes. If my 
wireless card does connect to my router then I have a Gateway shown in 
the Active Routes and a different Gateway shown in the Persistent 
Routes. If I return my ethernet nic settings to DHCP then no Gateway is 
shown in the Persistent Routes.
So is the OP confusing the Active and Persistent Gateways?
date: Sun, 15 Mar 2009 13:46:42 +0000   author:   LR

Re: Default gateway changing after resuming from Sleep/Hibernate   
LR wrote:
> On 14/03/2009 23:51, Clive wrote:
>> "robert"<robert@invalid.invalid>  wrote in message
>> news:7218p8Fmp3gvU1@mid.individual.net...
>>> Rob Morley wrote:
>>>> On Fri, 13 Mar 2009 22:45:34 +0000
>>>> robert<robert@invalid.invalid>  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.
>>
>> Mine doesn't.  So you do have a fault or incorrect setting.
>>
>>
> If the OP did not have a connection to his router/AP how did he get his 
> route print to show the gateway?
> I don't have an XP machine available at the moment but my Vista machine 
> has the same type of setup as the OP and if my wireless card is unable 
> to connect to my router no Gateway is shown in the Active Routes however 
> the ethernet nic Gateway is always shown in the Persistent Routes. If my 
> wireless card does connect to my router then I have a Gateway shown in 
> the Active Routes and a different Gateway shown in the Persistent 
> Routes. If I return my ethernet nic settings to DHCP then no Gateway is 
> shown in the Persistent Routes.
> So is the OP confusing the Active and Persistent Gateways?
I'm just reporting what the route print command gives me in a command 
window.
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.
date: Sun, 15 Mar 2009 15:44:14 +0000   author:   robert lid

Re: Default gateway changing after resuming from Sleep/Hibernate   
On 15/03/2009 15:44, robert wrote:
> LR wrote:
>> On 14/03/2009 23:51, Clive wrote:
>>> "robert"<robert@invalid.invalid> wrote in message
>>> news:7218p8Fmp3gvU1@mid.individual.net...
>>>> Rob Morley wrote:
>>>>> On Fri, 13 Mar 2009 22:45:34 +0000
>>>>> robert<robert@invalid.invalid> 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.
>>>
>>> Mine doesn't. So you do have a fault or incorrect setting.
>>>
>>>
>> If the OP did not have a connection to his router/AP how did he get
>> his route print to show the gateway?
>> I don't have an XP machine available at the moment but my Vista
>> machine has the same type of setup as the OP and if my wireless card
>> is unable to connect to my router no Gateway is shown in the Active
>> Routes however the ethernet nic Gateway is always shown in the
>> Persistent Routes. If my wireless card does connect to my router then
>> I have a Gateway shown in the Active Routes and a different Gateway
>> shown in the Persistent Routes. If I return my ethernet nic settings
>> to DHCP then no Gateway is shown in the Persistent Routes.
>> So is the OP confusing the Active and Persistent Gateways?
> I'm just reporting what the route print command gives me in a command
> window.
> 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.


This is what I get albeit Vista. I have deleted the Metrics column to 
get it to fit.

Wireless connected to router and Ethernet nic using Static IP.

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\Len>route print
===========================================================================
Interface List
   9 ...00 1e 4c a6 56 52 ...... Atheros AR5007 802.11b/g WiFi Adapter
   8 ...00 1e 68 01 7d 14 ...... NVIDIA nForce Networking Controller
   1 ........................... Software Loopback Interface 1
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface
           0.0.0.0          0.0.0.0      192.168.1.1    192.168.1.25
         127.0.0.0        255.0.0.0         On-link         127.0.0.1
         127.0.0.1  255.255.255.255         On-link         127.0.0.1
   127.255.255.255  255.255.255.255         On-link         127.0.0.1
       192.168.1.0    255.255.255.0         On-link      192.168.1.25
      192.168.1.25  255.255.255.255         On-link      192.168.1.25
     192.168.1.255  255.255.255.255         On-link      192.168.1.25
         224.0.0.0        240.0.0.0         On-link         127.0.0.1
         224.0.0.0        240.0.0.0         On-link      192.168.1.25
   255.255.255.255  255.255.255.255         On-link      127.0.0.1 
  255.255.255.255    255.255.255.255         On-link      192.168.1.25
===========================================================================
Persistent Routes:
   Network Address          Netmask  Gateway Address  Metric
           0.0.0.0          0.0.0.0      192.168.2.1  Default
===========================================================================

Wireless not connected to router and Ethernet nic using Static IP.

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\Len>route print
=========================================================================
Interface List
   9 ...00 1e 4c a6 56 52 ...... Atheros AR5007 802.11b/g WiFi Adapter
   8 ...00 1e 68 01 7d 14 ...... NVIDIA nForce Networking Controller
   1 ........................... Software Loopback Interface 1
=========================================================================

IPv4 Route Table
=========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface
         127.0.0.0        255.0.0.0         On-link         127.0.0.1
         127.0.0.1  255.255.255.255         On-link         127.0.0.1
   127.255.255.255  255.255.255.255         On-link         127.0.0.1
         224.0.0.0        240.0.0.0         On-link         127.0.0.1 
  255.255.255.255    255.255.255.255         On-link         127.0.0.1
=========================================================================
Persistent Routes:
   Network Address          Netmask  Gateway Address  Metric
           0.0.0.0          0.0.0.0      192.168.2.1  Default
=========================================================================

Wireless connected to router and ethernet nic using DHCP

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\Len>route print
====================================================================
Interface List
   9 ...00 1e 4c a6 56 52 ...... Atheros AR5007 802.11b/g WiFi Adapte
   8 ...00 1e 68 01 7d 14 ...... NVIDIA nForce Networking Controller
   1 ........................... Software Loopback Interface 1
====================================================================

IPv4 Route Table
====================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface
           0.0.0.0          0.0.0.0      192.168.1.1     192.168.1.25
         127.0.0.0        255.0.0.0         On-link         127.0.0.1
         127.0.0.1  255.255.255.255         On-link         127.0.0.1
   127.255.255.255  255.255.255.255         On-link         127.0.0.1
       192.168.1.0    255.255.255.0         On-link      192.168.1.25
      192.168.1.25  255.255.255.255         On-link      192.168.1.25
     192.168.1.255  255.255.255.255         On-link      192.168.1.25
         224.0.0.0        240.0.0.0         On-link         127.0.0.1
         224.0.0.0        240.0.0.0         On-link      192.168.1.25
   255.255.255.255  255.255.255.255         On-link         127.0.0.1
   255.255.255.255  255.255.255.255         On-link      192.168.1.25
====================================================================
Persistent Routes:
   None
date: Sun, 15 Mar 2009 16:19:17 +0000   author:   LR

Google
 
Web myreader.co.uk


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us