r8168 driver problems 😔
This morning was rather unpleasant, when I woke up to notifications that my server decided to randomly off itself in the middle of the night. Upon digging, it turns out that the network driver connecting my RealTek Ethernet Interface just up and vanished. Seems like someone has cursed me :/
I went about the diagnosis by first trying the following methods.
ifconfig -a # Does not return eth0 or alternative representations
lspci -vv # Returns the detection of the Realtek Controller but does not have any kernel driver (suspicious?)
lshw -C network # Prints network UNCLAIMED
Then, I managed to identify that the driver I needed wasn’t even getting loaded onto the kernel. To reinstall the r8168 driver, you need to download these links to a hard drive/thumb drive.
- Latest r86168 driver (As of 15 June 2020)
linux-headers-<your kernel version>
where your kernel version can be found withuname -a
(ie: linux-headers-5.3.0-1026-gke)
Then install these packages using dpkg
. And loa