今天领导说要给一台PC机装linux 系统,是技嘉的主板,集成网卡(RTL8168)

我看到的网卡信息是从主板自带的说明书知道的,然后我去下载相关的网卡驱动程序,

找了N个驱动程序,没一个装成功的。

这时没招了,lspci一下,
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E PCI Express Fast Ethernet controller (rev 02)

结果看到的网卡信息和说明书的大大不一样,汗。

这时下载对应该的驱动程序,顺利安装成功

附readme说明
<Linux device driver for Realtek Ethernet controllers>

    This is the Linux device driver released for RealTek RTL8101E, RTL8102E(L) and RTL8103E(L), the Fast Ethernet controller with PCI-Express interface.

<Quick install with proper kernel settings>
    Check whether the built-in driver, r8169.ko (or r8169.o for kernel 2.4.x), is installed. 
        # lsmod | grep r8169

    If it is installed, please remove it.
        # rmmod r8169
    note: If the built-in driver cannot removed by rmmod, please edit /etc/modprobe.conf and comment 'alias eth0 r8169'. Then, remmove it again or reboot your computer.

    Unpack the tarball :
        # tar vjxf r8101-1.aaa.bb.tar.bz2

    Change to the directory:
        # cd r8101-1.aaa.bb

    If you are running the target kernel, then you should be able to do :

        # make clean modules    (as root or with sudo)
        # make install
        # depmod -a
        # modprobe r8101

    You can check whether the driver is loaded by using following commands.

        # lsmod | grep r8101
        # ifconfig -a