e1000 driver hang

I also created an cron script to run every 45 minutes and if there's no connectivity it will reboot the machine. It's more a workaround that a resolution but should hopefully work till I install the new card.

No need to reboot. The NIC comes back to life if you remove and re-insert the network cable - so just need to automate that.

Someone posted a suggestion in this thread some time ago to run systemctl restart networking, but in my case (Intel NUC10), that didn't help.

I had another hang overnight, and what did fix it for me this morning was ifdown / ifup:
Bash:
# ifdown eno1
# ifup eno1
 
I had another hang overnight, and what did fix it for me this morning was ifdown / ifup:
# ifdown eno1 # ifup eno1

Another hang again, my cron script detected the error, but /usr/sbin is not in root's PATH in cron - so it didn't actually do anything. Have now added full path to ifdown / ifup commands and hopefully it works next time.

FWIW, here is the code I use to detect the hang:

Bash:
# check system journal for recent hang
if ! hangcount=$(journalctl \
                    --since "2 minutes ago" _TRANSPORT=kernel \
                    _KERNEL_SUBSYSTEM=pci --priority=3 | \
                 grep -c "Detected Hardware Unit Hang:")
then
    echo "No network hang detected, exiting"
    exit 0
fi

If anyone is interested, my cron script and more info is available here.
 
Last edited:
the main idea is to stop the hanging by fixing it. rebooting is not a solution, better stick with ethtool solution for now.
 
I've been using an Intel X520-DA2 and no further issue. For those with the ability to add a separate NIC.

Still frustrating no fixes only work arounds for this bug.