You are here: Home / Debian GNU/Linux / System / Setup / Solve the eth0 disappearance problem on Debian

Solve the eth0 disappearance problem on Debian

by Pierre-Yves Landuré last modified Nov 11, 2017 09:43

After a hardware change (motherboard or only network interface), eth0 network interface may be unavailable. This howto help to solve this problem.

Udev manage a mac address cache for the network interfaces available on the system. When changing hardware, the mac address can change, and the corresponding network interface of the system is no longer created. To solve this problem, clear the Udev MAC address cache:

if [ -e "/etc/udev/rules.d/z25_persistent-net.rules" ]; then
command echo "" > "/etc/udev/rules.d/z25_persistent-net.rules"
fi
if [ -e "/etc/udev/rules.d/70-persistent-net.rules" ]; then
command echo "" > "/etc/udev/rules.d/70-persistent-net.rules"
fi

Reboot the computer to force Udev to recreate the MAC address cache with the new hardware informations.

Thanks