登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

云之南

风声,雨声,读书声,声声入耳;家事,国事,天下事,事事关心

 
 
 

日志

 
 
关于我

专业背景:计算机科学 研究方向与兴趣: JavaEE-Web软件开发, 生物信息学, 数据挖掘与机器学习, 智能信息系统 目前工作: 基因组, 转录组, NGS高通量数据分析, 生物数据挖掘, 植物系统发育和比较进化基因组学

安装RHEL5未识别的网卡安装(intel 82567LM网卡)  

2009-09-27 22:26:48|  分类: linux&shell |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

安装RHEL5未识别的网卡安装(intel 82567LM网卡)

有些网卡,redhat Enterprise 5不识别,症状是安装系统后,进入系统->管理->网络,列表中没有任何设备。
很不幸,我就遇到了,公司新买的机器,集成网卡,在windows XP和linux上都不认。XP好办,跑去主板厂商网站,下载驱动,setup.exe搞定

!linux可真是惨,主板厂商的网站甚至没有提供LINUX驱动,只说了一句去芯片厂商或者linux厂商下载相应驱动。而按照xp下显示的网卡型号

或者主板厂商提供的网卡型号,在linux下根本不起作用。

好歹我也不是吓大的,排除万难,自己检测网卡型号,然后下载驱动编译,搞了一天终于搞定。
安装方法:
一.检测linux系统内核版本和网卡类型,相关命令如下:
uname -r 查看linux内核版本
lsmod 设备加载情况
ls /usr/share/hwdata 查看硬件设备
lspci 查看pci网卡设备
ethernet controller 查看厂商和型号-----终于看到我的网卡型号。
modprobe **** ****为网卡型号,例如 modprobe RTL8101E 如果出错,说明模块不存在,该型号不识别
二.下载网卡驱动
  
根据步骤一中的网卡型号和linux内核版本(ifconfig -a),去网卡的官方网站下载匹配的网卡驱动。请加intel 82567LM网卡的驱动.内付下载

intel说明
http://downloadcenter.intel.com/filter_results.aspx?

strTypes=all&ProductID=3003&OSFullName=Linux*&lang=eng&strOSs=39&submit=Go%21
三.安装网卡驱动
1.检测编译需要用到内核的源代码包和编译程序gcc。所以如果没有的话,要先装。
[root@localhost ~]# rpm -qa|grep kernel
kernel-xen-2.6.18-8.el5
kernel-xen-devel-2.6.18-8.el5
kernel-headers-2.6.18-8.el5

[root@localhost ~]# rpm -qa|grep gcc
gcc-c++-4.1.1-52.el5
libgcc-4.1.1-52.el5
gcc-4.1.1-52.el5
gcc-gfortran-4.1.1-52.el5

默认是缺少kernel-xen-devel-2.6.18-8.el5,可以去安装光盘的第一张盘中/Server/目录下,找到kernel-xen-devel-2.6.18-8.el5.i686.rpm

文件复制到 root home 目录中,安装:rpm -Uvh kernel-xen-devel-2.6.18-8.el5.i686.rpm

(如下安装intel 82567LM网卡的驱动 原文:http://xs.hintsoft.com.cn/bbs/viewthread.php?tid=59238

你不说内置安装说明呀!自己装好多人家装! Building and Installation
=========================

To build a binary RPM* package of this driver, run 'rpmbuild -tb
<filename.tar.gz>'.  Replace <filename.tar.gz> with the specific filename
of the driver.

NOTE: For the build to work properly, the currently running kernel MUST
      match the version and configuration of the installed kernel sources.
      If you have just recompiled the kernel reboot the system now.

      RPM functionality has only been tested in Red Hat distributions.

1. Move the base driver tar file to the directory of your choice.  For
   example, use /home/username/e1000e or /usr/local/src/e1000e.

2. Untar/unzip archive:

     tar zxf e1000e-x.x.x.tar.gz

3. Change to the driver src directory:

     cd e1000e-x.x.x/src/

4. Compile the driver module:

     # make install

   The binary will be installed as:

     /lib/modules/<KERNEL VERSION>/kernel/drivers/net/e1000e/e1000e.[k]o

   The install locations listed above are the default locations.  They
   might not be correct for certain Linux distributions.

5. Load the module using either the insmod or modprobe command:

     modprobe e1000e

     insmod e1000e

   Note that for 2.6 kernels the insmod command can be used if the full
   path to the driver module is specified.  For example:

     insmod /lib/modules/<KERNEL VERSION>/kernel/drivers/net/e1000e/e1000e.ko

   With 2.6 based kernels also make sure that older e1000e drivers are
   removed from the kernel, before loading the new module:

     rmmod e1000e; modprobe e1000e


6. Assign an IP address to the interface by entering the following, where
   x is the interface number:

     ifconfig ethx <IP_address>

7. Verify that the interface works.  Enter the following, where <IP_address>
   is the IP address for another machine on the same subnet as the
   interface that is being tested:

     ping  <IP_address>

TROUBLESHOOTING: Some systems have trouble supporting MSI and/or MSI-X
interrupts.  If you believe your system needs to disable this style of
interrupt, the driver can be built and installed with the command:

     # make CFLAGS_EXTRA=-DDISABLE_PCI_MSI install

Normally the driver will generate an interrupt every two seconds, so if
you can see that you're no longer getting interrupts in
cat /proc/interrupts for the ethX e1000e device, then this workaround
may be necessary.

 


安装完毕,重启系统

3.进入系统->管理->网络 ,已经能看到网卡,可以配置IP和DNS,然后激活网卡。
备注:
如果操作系统启用了支持XEN的内核,“硬件”选项卡里会出现两个网卡,eth0和peth0。
eth0就是映射到peth0的;系统还会自动生成一个xenbr0的网卡;这个网卡是为guestOS做桥接的;vif0.0是指Domain0的第一块网;vif0.1指

Domain0的第二块网卡;
如果不准备使用XEN虚拟机;可以在启动时选择没有xen的内核,就不会生成这些额外的网卡了:
步骤一:关闭xend进程,使之不随系统自启动。
1.使用ntsysv命令进入服务管理,关闭xend服务(空格键是选中或者取消)


2.使用chkconfig命令:
[root@localhost ~]# chkconfig --level 1 xend off
[root@localhost ~]# chkconfig --level 2 xend off
[root@localhost ~]# chkconfig --level 3 xend off
[root@localhost ~]# chkconfig --level 4 xend off
[root@localhost ~]# chkconfig --level 5 xend off
[root@localhost ~]# chkconfig --level 6 xend off

检查xend是否都是关闭状态:
[root@localhost ~]# chkconfig --list |grep xend
xend 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
xendomains 0:关闭 1:关闭 2:关闭 3:启用 4:启用 5:启用 6:关闭
修改完毕重启系统。

步骤二:进入系统->管理->网络 ,已经能看到网卡,可以配置IP和DNS。
然后修改绑定MAC地址:
1.网卡相关的TCP/IP网络配置文件是:/etc/sysconfig/network-scripts/ifcfg-ethx。其中x从0开始,第一个以太网配置文件

即:/etc/sysconfig/network-scripts/ifcfg-eth0。使用vi编辑器修改这个文件,也可以修改网卡MAC地址。
把 HWADDR=ff:ff:ff:ff:ff
改为 MACADDR=00:1F:D0:64:9B:B7 MACADDR后面是自己的mac地址
2. /etc/sysconfig/networking/profiles/default/ ifcfg-eth0
把 HWADDR=ff:ff:ff:ff:ff
改为 MACADDR=00:1F:D0:64:9B:B7 MACADDR后面是自己的mac地址

重启生效。

 

 

 

  评论这张
 
阅读(3914)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018