啟動網卡 eth0 時提示 r8169 device eth0 does not seem to be present, delaying initialization,通常是核心模組依賴關係損壞或模組未正確載入導致。本文提供快速修復方案。
[root@mail network-scripts]# ifup eth0
r8169 設備 eth0 似乎不在。將要推遲它的初始化。
/lib/modules/$(uname -r)/modules.dep 依賴文件過期/缺失# 1. 重建模組依賴關係
depmod -a $(uname -r)
# 2. 重新生成 initramfs(確保驅動打包進啟動映像)
# CentOS/RHEL
dracut -f -v
# Debian/Ubuntu
update-initramfs -u -k all
# 3. 重啟驗證
reboot
lspci | grep -i ethernetethtool -i eth0(若無 eth0,嘗試 ip link 看是否為 ens33 等新命名)modprobe r8169,觀察 dmesg -T 輸出r8168 效果優於內建 r8169,需下載源碼編譯安裝並 modprobe -r r8169; modprobe r8168echo "blacklist r8169" > /etc/modprobe.d/r8169-blacklist.conf# 使用 systemd-networkd
networkctl status eth0
systemctl restart systemd-networkd