Centos7升级5.11内核有线无法连接的问题

 

quick fix

rmmod r8169
modprobe r8169

systemd

cat <<EOF| sudo tee /etc/systemd/system/load-realtek-driver.service
[Unit]
Description=Load Realtek drivers.
Before=network-online.target
    
[Service]
Type=simple
ExecStartPre=/usr/sbin/rmmod r8169
ExecStart=/usr/sbin/modprobe r8169
  
[Install]
WantedBy=multi-user.target
EOF
    
sudo systemctl enable load-realtek-driver.service

Realtek Ethernet not working after kernel update