1.确认内核的版本:
似乎是需要安装以下所有的内核包,如果没有可以到安装光盘上去找
kernel-xen-devel-2.6.18-8.el5
kernel-2.6.18-8.el5
kernel-xen-2.6.18-8.el5
kernel-headers-2.6.18-8.el5
2.下载正确的网卡linux驱动程序,并查看readme来安装,我的流程是:
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
3.在网络设备中添加已经出现的那个驱动即可。