LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-07-2012, 07:44 PM   #1
snowweb
Member
 
Registered: May 2008
Distribution: Ubuntu12, CentOS6
Posts: 61

Rep: Reputation: 0
Network Can't be reloaded after resume from hibernation


After I resume from hibernation, the network is not automatically restored. I can live with that (although it's not what I expect from a polished OS), but no matter what I try from the command line, I can't bring up eth0 until I have physically unplugged the cable from the back of the machine and then plugged it back in again.

After doing that, I can then reload networking and I get an IP address successfully.

This is the output before unplugging the cable:
Code:
peter@peter-accent-ubuntu:~$ sudo /etc/init.d/networking force-reload
 * Reconfiguring network interfaces...                                                  There is already a pid file /var/run/dhclient.eth0.pid with pid 25699
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:03:0d:76:a1:8e
Sending on   LPF/eth0/00:03:0d:76:a1:8e
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:03:0d:76:a1:8e
Sending on   LPF/eth0/00:03:0d:76:a1:8e
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
ssh stop/waiting
ssh start/running, process 25906
I've tried the following;
sudo ifdown eth0; sudo ifup eth0
sudo /etc/init.d/networking force-reload

Beyond that, I would like to be able to programmatically unplug the cable and replug it again. Not sure how to do this? What if I remove the module from the kernel and then reload it? Is that possible? Would that have the same effect as physically unplugging it? Should I even be having to do this? Any advise would be greatly appreciated.

My specs are:
Code:
$ uname -a
Linux peter-accent-ubuntu 2.6.35-32-generic #68-Ubuntu SMP Tue Mar 27 17:01:54 UTC 2012 i686 GNU/Linux
On a Accent 9115 laptop.
Using KDE Desktop (although I think I had the same problem when I was using Gnome.

This has been the problem ever since I installed Ubuntu 10.10 back in 2010.

Relevant lspci output (I think):
Code:
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] 191 Gigabit Ethernet Adapter (rev 02)
Let me know if you need any more info.

Many thanks.

Peter

Last edited by snowweb; 04-08-2012 at 05:22 AM. Reason: grammar correction
 
Old 09-16-2012, 02:24 PM   #2
dklovedoctor
LQ Newbie
 
Registered: Nov 2010
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by snowweb View Post
After I resume from hibernation, the network is not automatically restored. I can live with that (although it's not what I expect from a polished OS), but no matter what I try from the command line, I can't bring up eth0 until I have physically unplugged the cable from the back of the machine and then plugged it back in again.

After doing that, I can then reload networking and I get an IP address successfully.

This is the output before unplugging the cable:
Code:
peter@peter-accent-ubuntu:~$ sudo /etc/init.d/networking force-reload
 * Reconfiguring network interfaces...                                                  There is already a pid file /var/run/dhclient.eth0.pid with pid 25699
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:03:0d:76:a1:8e
Sending on   LPF/eth0/00:03:0d:76:a1:8e
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67
Internet Systems Consortium DHCP Client V3.1.3
Copyright 2004-2009 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:03:0d:76:a1:8e
Sending on   LPF/eth0/00:03:0d:76:a1:8e
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
ssh stop/waiting
ssh start/running, process 25906
I've tried the following;
sudo ifdown eth0; sudo ifup eth0
sudo /etc/init.d/networking force-reload

Beyond that, I would like to be able to programmatically unplug the cable and replug it again. Not sure how to do this? What if I remove the module from the kernel and then reload it? Is that possible? Would that have the same effect as physically unplugging it? Should I even be having to do this? Any advise would be greatly appreciated.

My specs are:
Code:
$ uname -a
Linux peter-accent-ubuntu 2.6.35-32-generic #68-Ubuntu SMP Tue Mar 27 17:01:54 UTC 2012 i686 GNU/Linux
On a Accent 9115 laptop.
Using KDE Desktop (although I think I had the same problem when I was using Gnome.

This has been the problem ever since I installed Ubuntu 10.10 back in 2010.

Relevant lspci output (I think):
Code:
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] 191 Gigabit Ethernet Adapter (rev 02)
Let me know if you need any more info.

Many thanks.

Peter
This is the solution to your problem!
http://forums.opensuse.org/english/g...e-suspend.html
 
Old 09-16-2012, 09:53 PM   #3
snowweb
Member
 
Registered: May 2008
Distribution: Ubuntu12, CentOS6
Posts: 61

Original Poster
Rep: Reputation: 0
[solved]

Actually, I upgraded to 12.04 in April 2012 and since then this has not been a problem. It's been working perfectly for me since then.

Thanks.
 
  


Reply

Tags
hibernation, resume


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File to wakeup the system for hibernation like resume.sh ?? sanketdangi Ubuntu 3 01-16-2010 11:25 AM
[SOLVED] Suspend/Hibernation resume problems with ATI graphics card. defensorfedei Linux - Laptop and Netbook 5 10-13-2009 03:14 AM
network doesn't restart after hibernation newbiesforever Linux - General 0 06-03-2009 01:28 PM
Network not available after resume berbsd Suse/Novell 1 11-24-2004 11:30 AM


All times are GMT -5. The time now is 01:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration