How to add a r8169 driver to startup for Centos 7

Issues related to hardware problems
Post Reply
devoleksiy
Posts: 7
Joined: 2020/12/12 17:37:39
Contact:

How to add a r8169 driver to startup for Centos 7

Post by devoleksiy » 2020/12/12 18:53:14

D-Link System Inc DGE-528T Gigabit Ethernet Adapter (rev 10), r8169
I installed a new network card and it does not work, more precisely, it only works after:

Code: Select all

modprobe r8169
And stops working after system reboot.
I tried but the result is the same.

Code: Select all

echo r8169 >> /etc/modules-load.d/r8169.conf

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to add a r8169 driver to startup for Centos 7

Post by TrevorH » 2020/12/12 23:02:34

Did you rebuild your initramfs file with dracut -f ? You probably don't need the /etc/modules.load.d file so I'd remove that before you run dracut.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

devoleksiy
Posts: 7
Joined: 2020/12/12 17:37:39
Contact:

Re: How to add a r8169 driver to startup for Centos 7

Post by devoleksiy » 2020/12/13 08:40:56

The problem was that there was still garbage from old drivers, along the following paths:
The r8169 driver was not installed through what was garbage from the old r8168 driver
/etc/depmod.d/kmod-r8168.conf
/lib/modules/*/extra/r8168/r8168.ko
/usr/share/doc/kmod-r8168*
/usr/share/doc/kmod-r8168*

I removed them manually, now it works.
I just don't understand who put them)

Post Reply