LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   No ethernet connection after resuming from suspend (https://www.linuxquestions.org/questions/linux-networking-3/no-ethernet-connection-after-resuming-from-suspend-4175666535/)

Beerforfree 12-25-2019 11:57 AM

No ethernet connection after resuming from suspend
 
debian 10.2 xfce
Even restarting network and network manager via systemctl I'm not able to recover the ethernet connection, only a reboot recovers it

wpeckham 12-26-2019 05:21 AM

That could indicate that your problem is in the hardware. Difficult to say, since you porovide so little information.

Can you describe the hardware?
Have you tested with any other Linux version or distribution?
What is the history? Has this EVER worked on that hardware?
Did you skim the FAQ? You might like this reading: https://www.linuxquestions.org/quest...t_faq_how_post

scasey 12-26-2019 07:27 AM

Quote:

Originally Posted by Beerforfree (Post 6071247)
debian 10.2 xfce
Even restarting network and network manager via systemctl I'm not able to recover the ethernet connection, only a reboot recovers it

More questions:
What is the output of ifconfig when networking is not working?
When it is?
What is the result (status) following the restarts?
The output of journalctl?

(Please note that we're asking you these questions because you haven't actually asked a question yet.)

Beerforfree 12-30-2019 05:11 PM

Actually I realized that I've the same problem when booting with no ethernet connection and plugging it later remains with no connection

here my config

werner@G42 ~ $ cat /etc/network/interfaces.d/setup
auto lo
iface lo inet loopback

allow-hotplug enp3s0
auto enp3s0
iface enp3s0 inet static
address 192.168.1.50/24
gateway 192.168.1.1

erner@G42 ~ $ sudo ifconfig -a
[sudo] password for werner:
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.50 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::23fd:1334:15ed:3491 prefixlen 64 scopeid 0x20<link>
ether 64:31:50:62:59:8f txqueuelen 1000 (Ethernet)
RX packets 30 bytes 3205 (3.1 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 146 bytes 21698 (21.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 4013 bytes 329416 (321.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4013 bytes 329416 (321.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp2s0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 4a:8e:b9:69:37:31 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


On the journalctl I don't see any errors and this file is huge, perhaps we should filter it for network messages

I remember adding on the setup the following line to speed up boot time. I don't
allow-hotplug enp3s0

Beerforfree 12-31-2019 11:19 AM

I just fixed the boot trouble commenting out most lines of the interfaces file to:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

#source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

#edited by werner 31/12/2019
#auto enp3s0
#allow-hotplug enp3s0
#iface enp3s0 inet dhcp
#iface enp3s0 inet static
# address 192.168.1.50/24
# gateway 192.168.1.1

On the network manager I've a static IP connections set up for enp3s0

I found out using the previous config (uncommented interfaces file) that when booting with no ethernet cable plugged in a new connection on the manager was created with the name of the device enp3s0 and with no DNS, I tried to add a dns at the end of the interfaces file with no success at all. anyway I still have the same issue when suspend, network card is raised but no ping is possible to anywhere
I will come back with some journalctl lines after a suspend

Beerforfree 12-31-2019 12:23 PM

Back to suspend, here some output

werner@G42 ~ $ sudo lshw -class network -short
H/W path Device Class Description
====================================================
/0/100/5/0 wlp2s0 network RT3090 Wireless 802.11n 1T/1R PCIe
/0/100/6/0 enp3s0 network RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller

werner@G42 ~ $ nmcli device status
DEVICE TYPE STATE CONNECTION
enp3s0 ethernet connected Wired connection 1
wlp2s0 wifi unavailable --
lo loopback unmanaged --

werner@G42 ~ $ sudo ifconfig
[sudo] password for werner:
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.50 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::6631:50ff:fe62:598f prefixlen 64 scopeid 0x20<link>
ether 64:31:50:62:59:8f txqueuelen 1000 (Ethernet)
RX packets 470 bytes 203650 (198.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 625 bytes 81507 (79.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 66 bytes 5948 (5.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 66 bytes 5948 (5.8 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

werner@G42 ~ $ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.50 icmp_seq=1 Destination Host Unreachable
From 192.168.1.50 icmp_seq=2 Destination Host Unreachable
From 192.168.1.50 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.1.1 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 69ms
pipe 3
werner@G42 ~ $ ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
From 192.168.1.50 icmp_seq=1 Destination Host Unreachable
From 192.168.1.50 icmp_seq=2 Destination Host Unreachable
From 192.168.1.50 icmp_seq=3 Destination Host Unreachable
From 192.168.1.50 icmp_seq=4 Destination Host Unreachable


Dec 31 14:26:16 G42 systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Dec 31 14:26:43 G42 NetworkManager[388]: <info> [1577813203.8335] manager: sleep: sleep requested (sleeping: no enabled: yes)
Dec 31 14:26:43 G42 NetworkManager[388]: <info> [1577813203.8337] manager: NetworkManager state is now ASLEEP
Dec 31 14:26:43 G42 systemd[1]: Reached target Sleep.
Dec 31 14:26:43 G42 systemd[1]: Starting Suspend...

Dec 31 14:28:09 G42 kernel: psmouse serio1: synaptics: queried max coordinates: x [..5888], y [..4856]
Dec 31 14:28:09 G42 kernel: r8169 0000:03:00.0 enp3s0: Link is Up - 100Mbps/Full - flow control rx/tx
Dec 31 14:28:09 G42 kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Dec 31 14:28:09 G42 kernel: ata1.00: configured for UDMA/100
Dec 31 14:28:09 G42 kernel: [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting
Dec 31 14:28:09 G42 kernel: [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing E8B2 (len 498, WS 0, PS 4) @ 0xE8F3
Dec 31 14:28:09 G42 kernel: OOM killer enabled.
Dec 31 14:28:09 G42 rtkit-daemon[805]: The canary thread is apparently starving. Taking action.
Dec 31 14:28:09 G42 rtkit-daemon[805]: Demoting known real-time threads.
Dec 31 14:28:09 G42 rtkit-daemon[805]: Successfully demoted thread 890 of process 795 (n/a).
Dec 31 14:28:09 G42 rtkit-daemon[805]: Successfully demoted thread 888 of process 795 (n/a).
Dec 31 14:28:09 G42 rtkit-daemon[805]: Successfully demoted thread 795 of process 795 (n/a).
Dec 31 14:28:09 G42 rtkit-daemon[805]: Demoted 3 threads.
Dec 31 14:28:09 G42 kernel: Restarting tasks ... done.
Dec 31 14:28:09 G42 kernel: video LNXVIDEO:00: Restoring backlight state
Dec 31 14:28:09 G42 kernel: usb 5-2: USB disconnect, device number 2
Dec 31 14:28:09 G42 systemd-sleep[1152]: System resumed.
Dec 31 14:28:09 G42 kernel: PM: suspend exit
Dec 31 14:28:09 G42 systemd[1]: systemd-suspend.service: Succeeded.
Dec 31 14:28:09 G42 systemd[1]: Started Suspend.
Dec 31 14:28:09 G42 systemd[1]: Stopped target Sleep.
Dec 31 14:28:09 G42 systemd[1]: Reached target Suspend.
Dec 31 14:28:09 G42 systemd[1]: Stopped target Suspend.
Dec 31 14:28:09 G42 systemd-logind[374]: Operation 'sleep' finished.
Dec 31 14:28:09 G42 NetworkManager[388]: <info> [1577813289.4526] manager: sleep: wake requested (sleeping: yes enabled: yes)
Dec 31 14:28:09 G42 NetworkManager[388]: <info> [1577813289.4527] device (enp3s0): state change: activated -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Dec 31 14:28:09 G42 avahi-daemon[383]: Withdrawing address record for 192.168.1.50 on enp3s0.
Dec 31 14:28:09 G42 avahi-daemon[383]: Leaving mDNS multicast group on interface enp3s0.IPv4 with address 192.168.1.50.
Dec 31 14:28:09 G42 avahi-daemon[383]: Interface enp3s0.IPv4 no longer relevant for mDNS.
Dec 31 14:28:09 G42 avahi-daemon[383]: Withdrawing address record for fe80::6631:50ff:fe62:598f on enp3s0.
Dec 31 14:28:09 G42 avahi-daemon[383]: Leaving mDNS multicast group on interface enp3s0.IPv6 with address fe80::6631:50ff:fe62:598f.
Dec 31 14:28:09 G42 avahi-daemon[383]: Interface enp3s0.IPv6 no longer relevant for mDNS.
Dec 31 14:28:09 G42 NetworkManager[388]: <info> [1577813289.4979] manager: NetworkManager state is now CONNECTED_GLOBAL
Dec 31 14:28:09 G42 kernel: usb 3-2: new high-speed USB device number 3 using ehci-pci
Dec 31 14:28:09 G42 NetworkManager[388]: <info> [1577813289.5106] manager: NetworkManager state is now DISCONNECTED
Dec 31 14:28:09 G42 NetworkManager[388]: <info> [1577813289.5501] device (wlp2s0): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Dec 31 14:28:09 G42 NetworkManager[388]: <info> [1577813289.5506] device (wlp2s0): set-hw-addr: reset MAC address to E0:2A:82:15:1C:03 (unmanage)
Dec 31 14:28:09 G42 NetworkManager[388]: <info> [1577813289.5515] device (enp3s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
Dec 31 14:28:09 G42 kernel: IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Dec 31 14:28:09 G42 dbus-daemon[379]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.7' (uid=0 pid=388 comm="/usr/sbin/NetworkManager --no-daemon ")
Dec 31 14:28:09 G42 kernel: RTL8201CP Ethernet r8169-300:00: attached PHY driver [RTL8201CP Ethernet] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
Dec 31 14:28:09 G42 systemd[1]: Starting Network Manager Script Dispatcher Service...
Dec 31 14:28:09 G42 dbus-daemon[379]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Dec 31 14:28:09 G42 systemd[1]: Started Network Manager Script Dispatcher Service.
Dec 31 14:28:09 G42 nm-dispatcher[1230]: req:1 'down' [enp3s0]: new request (1 scripts)
Dec 31 14:28:09 G42 nm-dispatcher[1230]: req:1 'down' [enp3s0]: start running ordered scripts...
Dec 31 14:28:09 G42 nm-dispatcher[1230]: req:2 'connectivity-change': new request (1 scripts)
Dec 31 14:28:09 G42 kernel: IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready
Dec 31 14:28:09 G42 NetworkManager[388]: <info> [1577813289.6743] device (wlp2s0): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed')
Dec 31 14:28:09 G42 kernel: IPv6: ADDRCONF(NETDEV_UP): wlp2s0: link is not ready

Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.2990] device (enp3s0): carrier: link connected
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.2993] device (enp3s0): state change: unavailable -> disconnected (reason 'carrier-changed', sys-iface-state: 'managed')
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.3002] policy: auto-activating connection 'Wired connection 1' (a3d6af5b-225a-45a9-8627-5e66e43de69a)
Dec 31 14:28:11 G42 kernel: r8169 0000:03:00.0 enp3s0: Link is Up - 100Mbps/Full - flow control rx/tx
Dec 31 14:28:11 G42 kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes ready
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.3012] device (enp3s0): Activation: starting connection 'Wired connection 1' (a3d6af5b-225a-45a9-8627-5e66e43de69a)
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.3014] device (enp3s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.3018] manager: NetworkManager state is now CONNECTING
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.3027] device (enp3s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.3032] device (enp3s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Dec 31 14:28:11 G42 avahi-daemon[383]: Joining mDNS multicast group on interface enp3s0.IPv6 with address fe80::6631:50ff:fe62:598f.
Dec 31 14:28:11 G42 avahi-daemon[383]: New relevant interface enp3s0.IPv6 for mDNS.
Dec 31 14:28:11 G42 avahi-daemon[383]: Registering new address record for fe80::6631:50ff:fe62:598f on enp3s0.*.
Dec 31 14:28:11 G42 kernel: r8169 0000:03:00.0 enp3s0: Link is Up - 100Mbps/Full - flow control rx/tx
Dec 31 14:28:11 G42 avahi-daemon[383]: Joining mDNS multicast group on interface enp3s0.IPv4 with address 192.168.1.50.
Dec 31 14:28:11 G42 avahi-daemon[383]: New relevant interface enp3s0.IPv4 for mDNS.
Dec 31 14:28:11 G42 avahi-daemon[383]: Registering new address record for 192.168.1.50 on enp3s0.IPv4.
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.3170] device (enp3s0): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed')
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.3229] device (enp3s0): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.3247] device (enp3s0): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.3266] manager: NetworkManager state is now CONNECTED_LOCAL
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.3912] manager: NetworkManager state is now CONNECTED_SITE
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.3914] policy: set 'Wired connection 1' (enp3s0) as default for IPv4 routing and DNS
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.4251] device (enp3s0): Activation: successful, device activated.
Dec 31 14:28:11 G42 NetworkManager[388]: <info> [1577813291.4260] manager: NetworkManager state is now CONNECTED_GLOBAL
Dec 31 14:28:11 G42 nm-dispatcher[1230]: req:3 'up' [enp3s0]: new request (1 scripts)
Dec 31 14:28:11 G42 nm-dispatcher[1230]: req:3 'up' [enp3s0]: start running ordered scripts...
Dec 31 14:28:11 G42 nm-dispatcher[1230]: req:4 'connectivity-change': new request (1 scripts)
Dec 31 14:28:11 G42 lightdm[1330]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
Dec 31 14:28:11 G42 lightdm[1330]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)


Dec 31 14:28:45 G42 systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Dec 31 14:29:05 G42 sudo[1591]: werner : TTY=pts/0 ; PWD=/home/werner ; USER=root ; COMMAND=/usr/sbin/ifconfig


werner@G42 ~ $ sudo systemctl status networking
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: active (exited) since Tue 2019-12-31 14:25:10 -03; 27min ago
Docs: man:interfaces(5)
Process: 389 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUCCESS)
Main PID: 389 (code=exited, status=0/SUCCESS)

Dec 31 14:25:07 G42 systemd[1]: Starting Raise network interfaces...
Dec 31 14:25:10 G42 systemd[1]: Started Raise network interfaces.

wpeckham 01-05-2020 07:40 AM

I would ;like very much to see three things:
the routing
Code:

ip r
both 1 before suspend (networking works) and 2 after suspend (networking broken).
and 3 you using code or quote blocks to properly isolate your quoted command output.


The page on BB code markup is here: https://www.linuxquestions.org/quest....php?do=bbcode

I have trouble seeing how NetworkManager could be messing this up on suspend, but it is one possibility.

Beerforfree 01-22-2020 05:22 PM

1) before suspend
~ $ ip r
default via 192.168.1.1 dev enp1s0 proto static metric 100
169.254.0.0/16 dev enp1s0 scope link metric 1000
192.168.1.0/24 dev enp1s0 proto kernel scope link src 192.168.1.100 metric 100

This is driving me crazy, I don't need to wait for a suspend after a short while the ethernet gets broken and the ip r command has the same output

uteck 01-22-2020 05:42 PM

I also have issues with my wireless not working in Network Manager.
I installed Wicd network manager and I can select and enable wifi with that when NM will not list anything, so it seems to be an issue with NM during suspend.

Not a fix, but a work around I can live with.


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