I have this weird issue whenever I wake up my lap top from sleeping, the Ethernet connection could not be detected. I managed to get it working by removing network module and adding it again.
rmmod r8169
modprobe r8169
However I want to make those wake ups seamless, I don't want to manually run those command when lap wake up in order to have Ethernet connection.
uname -a
Linux pc-name 4.16.0-041600-generic #201804012230 SMP Sun Apr 1 22:31:39 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
ifconfig -a
enp2s0: 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::7020:d2e9:225b:9004 prefixlen 64 scopeid 0x20<link>
ether 54:48:10:e3:a3:56 txqueuelen 1000 (Ethernet)
RX packets 5919 bytes 3436132 (3.4 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 5752 bytes 667433 (667.4 KB)
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 8101 bytes 610092 (610.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8101 bytes 610092 (610.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.114 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::392d:4fdb:372f:3381 prefixlen 64 scopeid 0x20<link>
ether 34:e1:2d:f8:1d:f3 txqueuelen 1000 (Ethernet)
RX packets 9592 bytes 4262963 (4.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 6766 bytes 1125519 (1.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Please let me share additional information which is helpful to resolve the issue, I do not know which.
Thanks