JP Vossen via plug on 22 Apr 2022 12:52:35 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Kubuntu 22.04 loses network connectivity spontaneously


On 4/22/22 15:25, K.S. Bhaskar via plug wrote:
I did a fresh install of Kubuntu 22.04 this morning and a bizarre behavior has me scratching my head. As the machine (a 2017 PC, high end at the time) is used primarily as a server, and occasionally as a desktop, most of the time the monitor is powered down and the wireless mouse is turned off to conserve the battery. Every so often, it loses its network connection. ...
Really ugly hack?
```
*/5 * * * * root /bin/ping -c2 10.10.10.10 > /dev/null || { echo 'Resetting eth0!' ; /sbin/ifconfig eth0 down ; /sbin/ifconfig eth0 up ; ip route add default via 10.10.10.10 dev eth0 ; }

```

Where 10.10.10.10 is the node's default gateway, and "eth0" is the buggy interface.  That's from when I had a box with a wonky USB Ethernet adapter.  It didn't fix the problem, and it didn't always work, but...it worked sometimes.

Much better to find and fix the root cause, of course, but maybe this is a help until then, and might allow more data collection to find the problem.

Later,
JP
--  -------------------------------------------------------------------
JP Vossen, CISSP | http://www.jpsdomain.org/ | http://bashcookbook.com/
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug