Hi, everyone!
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
$ ifconfig -a enp2s0 Link encap:Ethernet HWaddr 5c:f9:dd:45:01:5e inet addr:192.168.1.107 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::8676:d828:6d10:175d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:6774 errors:0 dropped:0 overruns:0 frame:0 TX packets:6196 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4777353 (4.7 MB) TX bytes:1005656 (1.0 MB)
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:1230 errors:0 dropped:0 overruns:0 frame:0 TX packets:1230 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:117631 (117.6 KB) TX bytes:117631 (117.6 KB)
wlp1s0 Link encap:Ethernet HWaddr 68:5d:43:e7:53:15 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
I am completely puzzled where I would search for the solution.
Please help!
UPD: The script restoring the connection you can find in post #18.