[root@localhost ~]# lspci | grep Eth         //:查看网卡是否识别,识别了,连不上网,可能是驱动问题


1 确认系统的内核版本
[root@localhost ~]# uname -r
2.6.18-8.el5PAE                                //:我的内核版本是2.6.18-8.el5PAE

2 确认系统是否已经安装下列包
[root@localhost ~]# rpm -qa|grep kernel
[root@localhost ~]# rpm -qa|grep gcc
                                                       //:由于编译需要用到内核的源代码包和编译程序gcc.所以如果没有的话,要先装.

3 驱动程序编译及安装
[root@localhost ~]# tar xf /usr/src/e1000e-0.5.8.2.tar      //:Intel的e1000e的网卡驱动程序
[root@localhost ~]# cd  /usr/src/e1000e-0.5.8.2/src
[root@localhost ~]# make linux                                     //:可以单独执行make,编译合适的操作系统
[root@localhost ~]# cp e1000e.o /lib/modules/2.6.18-8.el5PAE/kernel/drivers/net
                              //:安装完毕以后将驱动程序生成的*.o拷贝到/lib/modules/2.6.18-8.el5PAE/kernel/drives/net目录下
[root@localhost ~]# depmod -a                                    //:加载驱动程序

4.驱动测试
[root@localhost ~]# modprobe e1000e
我们可以通过modprobe e1000e进行加载 如果没有提示错误信息证明驱动程序已经加载
同时可以通过lsmod查看已经加载的驱动程序
如果在显示的驱动程序中能够看到e1000e的字样说明驱动程序已经加载成功