After installing Ubuntu Mate 16.04, I’ve faced the following problem.
When resuming from suspend, there is no connection to my router 192.168.1.1 and the internet via ethernet. Specifically, the network manager shows that “Wired connection 1” is connected, but I have no internet, see the ping results: $ ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. From 192.168.1.107 icmp_seq=1 Destination Host Unreachable From 192.168.1.107 icmp_seq=2 Destination Host Unreachable From 192.168.1.107 icmp_seq=3 Destination Host Unreachable From 192.168.1.107 icmp_seq=4 Destination Host Unreachable From 192.168.1.107 icmp_seq=5 Destination Host Unreachable From 192.168.1.107 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.1.1 ping statistics --- 7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6031ms pipe 3
Then I tried restart the network manager as advised in that post: sudo systemctl restart NetworkManager
and the other options in the links from it: sudo systemctl restart NetworkManager.service sudo service networking restart sudo service network-manager restart sudo /etc/init.d/networking restart sudo /etc/init.d/network-manager restart sudo systemctl restart networking sudo systemctl restart network-manager
No one helps.
Then I compared “lshw -c network” and “ifconfig -a” before and after the suspend. The results were identical and it looks like that all right, but I have no internet. $ sudo lshw -c network *-network DISABLED description: Wireless interface product: Centrino Wireless-N 2230 vendor: Intel Corporation physical id: 0 bus info: pci@0000:01:00.0 logical name: wlp1s0 version: c4 serial: 68:5d:43:e7:53:15 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-31-generic firmware=18.168.6.1 latency=0 link=no multicast=yes wireless=IEEE 802.11bgn resources: irq:30 memory:d0500000-d0501fff *-network description: Ethernet interface product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:02:00.0 logical name: enp2s0 version: 05 serial: 5c:f9:dd:45:01:5e size: 100Mbit/s capacity: 100Mbit/s width: 64 bits clock: 33MHz capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl_nic/rtl8105e-1.fw ip=192.168.1.107 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s resources: irq:26 ioport:2000(size=256) memory:d0404000-d0404fff memory:d0400000-d0403fff
Is it normal that your interfaces are not using predictable interface names?
Yes, I changed the names by adding "net.ifnames=0" to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub. It was a part of my digging the problem. Now I've returned to the default names and edited the previous post (now interfaces is enp2s0 and wlp1s0). The problem is in the both cases.
Can you please provide the output of: route -n
The output is identical before and after suspend: $ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 enp2s0 169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp2s0 192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 enp2s0
Is this a fresh install of 16.04?
And for the sake of completeness (because someone will ask if I don't): is your system fully up to date?
Yes and yes. I installed Ubuntu mate 16.04 approximately in June and upgraded it regularly. And of course, I've upgraded it after discovering the problem.
Also try:
sudo ifdown eth0
sudo ifup eth0
The output is identical before and after suspend: $ sudo ifdown enp2s0 Unknown interface enp2s0 $ sudo ifup enp2s0 Unknown interface enp2s0
I'm not optimistic. I had no luck fixing that problem before and I don't even know against which package one should file a bug report for something like that. Linux? Systemd? network-manager?
firstly I recommend not using suspend as it has been a major thorn in Ubuntu's side for a long time now!, simply log out if you want privacy which is what I do!.
Secondly, try changing your software sources download location and updating again using a different download server!:
This terminal command (Ctrl + Alt + t) might make it work again?:
Hi @wolfman
Have to disagree with you here: suspend is a legitimate feature of any decent operating system. @stasap should be able to use it if only because of the power savings.
Suspend instead of logout save the planet.
Did you try that?
I've seen a very similar thing happen just yesterday on a new machine running Ubuntu 16.04 LTS 64Bits.
The modprobe didn't work but the problem was even nastier: it wasn't working at all even after a fresh boot, with same "Destination Host Unreachable"
The card in question used the same driver (specs gathered from lshw):
Sorry, just overlooked your earlier post.
Yes, I did. It didn't help.
Now, I doubt I'll find enough time to do that. Honestly, I've never before reported bugs at all.
But I'm concerned with fixing the problem, so please let me know, if it is something that I can do.
actually WORKS 100% of time.
In my case tho, the script you provided, with the appropriate driver name (asix), isn’t actually working.
Before when resuming from suspension i had to pull out and back in the usb adpater, right now I can put the command in terminal, which is, however faster and more comfortable than stressing the usb port.
Any suggestions how to workaround this little hiccup?
Thank you in advance!