LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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
  Search this Thread
Old 06-07-2013, 07:25 AM   #1
Frank64
Member
 
Registered: Feb 2008
Distribution: Kubuntu 19.10
Posts: 77

Rep: Reputation: 15
Cannot re-establish network connectivity after RESUME


I am out of luck on this one...

It's been the 3rd consecutive Kubuntu release I am unable to re-establish network connectivity after a resume. It loses the IP address assigned to eth0 and I cannot re-establish it. Of course I don't understand why it loses it.

It seems to be the only thing blocking me from upgrading from 11.10 (to 13.04). I must say I suspend to RAM 6 days out of 7 so rebooting each time is a show stopper for me. Logging out and back in does not help in any way.

When I resume, I get this

Code:
~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:21:91:21:d5:0d  
          inet6 addr: fe80::221:91ff:fe21:d50d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4438 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4273 errors:4 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4355203 (4.3 MB)  TX bytes:612818 (612.8 KB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:606 errors:0 dropped:0 overruns:0 frame:0
          TX packets:606 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:59902 (59.9 KB)  TX bytes:59902 (59.9 KB)
But in eth0 it should show like this

Code:
eth0      Link encap:Ethernet  HWaddr 00:21:91:21:d5:0d  
          inet addr:1.2.3.4  Bcast:1.225.255.255  Mask:255.255.0.0 (the IP address has been changed for posting)
          inet6 addr: fe80::221:91ff:fe21:d50d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:235 errors:0 dropped:0 overruns:0 frame:0
          TX packets:279 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:36696 (36.6 KB)  TX bytes:27691 (27.6 KB)

Yes I did check pm-suspend.log, here it is!

Code:
pm-suspend.log

Mon Jun  3 16:34:17 EDT 2013: Awake.
Mon Jun  3 16:34:17 EDT 2013: Running hooks for resume
Running hook /etc/pm/sleep.d/novatel_3g_suspend resume suspend:

/etc/pm/sleep.d/novatel_3g_suspend resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:
/usr/lib/pm-utils/sleep.d/99video: 22: /usr/lib/pm-utils/sleep.d/99video: shopt: not found

/usr/lib/pm-utils/sleep.d/99video resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend:

/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95led resume suspend:

/usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend:

/usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/95anacron resume suspend:

/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/94cpufreq resume suspend:

/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/90clock resume suspend:

/usr/lib/pm-utils/sleep.d/90clock resume suspend: not applicable.
Running hook /usr/lib/pm-utils/sleep.d/75modules resume suspend:
Reloaded unloaded modules.

/usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend:

/usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend: not executable.
Running hook /etc/pm/sleep.d/11custom resume suspend:
 * Stopping fan speed regulator fancontrol
   ...done.
network-manager stop/waiting
network-manager start/running, process 3824
 * Starting fan speed regulator fancontrol
   ...done.
I couldn't find the command line actions to completely stop networking and completely resume it. I could simply add it in my sleep.d script and it should do the job, but all I could find was that network-manager restart and it doesn't help.

I tried deleting
Code:
rm /var/lib/NetworkManager/NetworkManager.state
before restarting network manager but it doesn't help.

I tried deleting the 'ifstate' file and it doesn't help.

I tried deleting '/var/lib/NetworkManager/NetworkManager.state' but it doesn't help.

I tried

Code:
sudo ifconfig eth0 down
and

Code:
sudo ifconfig eth0 up
does not help at all.

It brings back eth0 at the exact point it is, which is without an IP assigned.
I am unable to get the IP assigned to the interface.

I feel this is a real show-stopper, who could accept to hibernate and resume and need to reboot all the time to get the IP assigned?

I am clueless here... any thoughts?

tnx a lot!
 
Old 06-08-2013, 05:15 AM   #2
LiNuXkOlOnIe
Member
 
Registered: Dec 2005
Location: North germany
Distribution: Linux Mint
Posts: 46

Rep: Reputation: 16
Post

What does your /etc/network/interfaces file show ?

Code:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
this should be the default settings.

I had a similar problem and tried this solution which i found on the net:

sudo apt-get --reinstall network-manager

sudo pluma /etc/NetworkManager/NetworkManager.conf

with entry
managed=true

and make a machine restart.
 
Old 06-08-2013, 10:45 AM   #3
Frank64
Member
 
Registered: Feb 2008
Distribution: Kubuntu 19.10
Posts: 77

Original Poster
Rep: Reputation: 15
Actually I tried many configurations of that file (and others too) without success.

It felt like something hanging on resume. Even stopping eth0 and NM and restarting after resuming it wasn't working.

So I found the problem...

I have to create
Code:
/etc/pm/config.d/modules
file and include my eth0 module in the following line
Code:
SUSPEND_MODULES="[interface module]"
I took this advice from those who sometimes have issues with pm-suspend and wifi modules.
They say in some cases, it is possible that running pm-suspend causes hangs or other issues. This may be due to specific "misbehaving" modules.

God that was really a shot in the dark!

Hopefully this can help others.
 
  


Reply

Tags
eth0, ip address, kubuntu, network


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
steps to establish a network asgere01 Linux - Networking 1 05-15-2012 08:34 PM
script to test, re-establish network connection r.stiltskin Linux - Server 3 12-07-2008 07:50 AM
Help to establish a Linux Redhat network! tthai01 Linux - Networking 1 11-06-2002 05:23 AM
Can't establish network connection with Mandrake 8.1 Theophylact Linux - Networking 0 04-25-2002 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration