I have a headless Manjaro PC, and sometimes, suddenly I cannot connect to the PC. Re-plugging the Ethernet cable or restarting the router does not fix it. And if I remember correctly, even rebooting the PC does not fix it.
If I connect a USB-to-Ethernet adapter, then I can connect to the PC. In the journalctrl log, I could find repeated kernel lines with Rx Error, status =
, sent link down event
, and sent link up event
.
What I wonder is, if kernel just disables the Ethernet if this continues, until I manually call ip link set .... up
or something? If so, can I set the kernel maybe instead of disabling the adapter, to sort of “restart/reset” the network adapter hardware?