Realtek R8168驱动在rhel5下面的安装

Realtek R8168驱动在rhel5下面的安装
1、必须的前提条件是linux安装了GCC,kernel-xen,kernel-xen-devel,kernel-header
2、去下载他的el5 的驱动源码
3、tar vjxf  r8168.tar.bz
4、cd r8168
5、./autorun.sh
6、lsmod |grep r8168
7、看看/etc/sysconfig/network-script/下面有没有ifcfg-etho
8、设置一下IP地址就可以上网 了
vi ifcfg-eth0

# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
GATEWAY=192.168.1.1
TYPE=Ethernet
DEVICE=eth0
HWADDR=00:0b:2f:1a:31:32
BOOTPROTO=static
NETMASK=255.255.255.0
IPADDR=192.168.1.118
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
[root@localhost network-scripts]#


lsmod 查看加载的驱动
lspci查看pci的设备
步骤1、查看网卡的芯片
#lspci
可以看得到是Realtek的芯片
Realtek Semiconductor Co., Ltd.
RTL8111/8168B PCI

步骤2、下载网卡驱动
我们到Realtek的官方网站下载RTL8168的驱动

r8168-8.002.00.tar.bz2
#tar xvfj r8168-8.002.00.tar.bz2
#cd
r8168-8.002.00

步骤3、安装网卡驱动
r8168-8.002.00目录下的Readme说的很清楚
# make
clean modules (as root or with sudo)
# make install
# depmod -a
#
insmod ./src/r8168.ko
You can check whether the driver is loaded by using
following commands.
# lsmod | grep r8168
查看/etc/modprobe.conf中是否有如下语句

alias eth0 r8168
如果没有就添加



你可能感兴趣的:(Realtek R8168驱动在rhel5下面的安装)