操作系统:CentOS release 5.5 (Final)

故障现象:网卡无故自动down掉,使用service network restart 重启后没多久又会自动down , 连接数大概在200个左右,没有arp攻击;

网卡信息:

[root@www.linuxidc.com~]# cat /var/log/dmesg |grep eth0

eth0: Broadcom NetXtreme II BCM5709 1000Base-T (C0) PCI Express found at mem d6000000, IRQ 90, node addr 842b2bfac367

当前网卡驱动:

[root@www.linuxidc.com~]# ethtool -i eth0

driver: bnx2

version: 2.0.2

firmware-version: 5.2.3 NCSI 2.0.10

bus-info: 0000:01:00.0

安装更新驱动:

[root@www.linuxidc.com~]# unzip linux-7.4.27.zip

Archive: linux-7.4.27.zip

creating: Server/Linux/Driver/

inflating: Server/Linux/Driver/INSTALL.TXT

inflating: Server/Linux/Driver/netxtreme2-7.4.27-1.src.rpm

inflating: Server/Linux/Driver/netxtreme2-7.4.27.tar.gz

inflating: Server/Linux/Driver/netxtreme2_sup-7.4.27-1.ISO.tar.gz

inflating: Server/Linux/Driver/README.bnx2.TXT

inflating: Server/Linux/Driver/README.bnx2fc.TXT

inflating: Server/Linux/Driver/README.bnx2i.TXT

inflating: Server/Linux/Driver/README.bnx2x.TXT

inflating: Server/Linux/Driver/RELEASE.bnx2.TXT

inflating: Server/Linux/Driver/RELEASE.bnx2fc.TXT

inflating: Server/Linux/Driver/RELEASE.bnx2i.TXT

inflating: Server/Linux/Driver/RELEASE.bnx2x.TXT

inflating: Server/Linux/Driver/RELEASE.fclibs.TXT

[root@www.linuxidc.com~]# cd Server/Linux/Driver/

[root@www.linuxidc.com Driver]# rpm -ivh netxtreme2-7.4.27-1.src.rpm

重建对应系统的rpm包:

[root@www.linuxidc.com Driver]# cd /usr/src/RedHat/SPECS/

[root@www.linuxidc.com SPECS]# rpmbuild -bb netxtreme2.spec

安装新的rmp包:

[root@www.linuxidc.com SPECS]# cd /usr/src/redhat/RPMS/x86_64

[root@www.linuxidc.com x86_64]# rpm -ivh netxtreme2-7.4.27-1.x86_64.rpm

切换网卡驱动:

[root@www.linuxidc.com~]# cat change_driver.sh

rmmod bnx2

rmmod bnx2x

modprobe bnx2

modprobe bnx2x

[root@www.linuxidc.com~]# chmod u+x change_driver.sh

后台执行脚本:

[root@www.linuxidc.com~]# ./change_driver.sh &

注意:有时候可能需要重启服务器使服务器系统重新完全加载新的驱动:

查看新的网卡驱动信息:

[root@www.linuxidc.com ~]# ethtool -i eth0

driver: bnx2

version: 2.2.3f

firmware-version: 6.2.12 bc 5.2.3 NCSI 2.0.11

bus-info: 0000:01:00.0

目前已没有出现自动down的情况。

注意:安装前请仔细看INSTALL.TXT

如下:

[root@www.linuxidc.com Driver]# cat INSTALL.TXT

Installation Notes

Broadcom NetXtremeII Linux Drivers

09/26/2011

Broadcom Corporation

5300 California Avenue,

Irvine, CA 92617

Copyright (c) 2004 - 2011 Broadcom Corporation

All rights reserved

Table of Contents

=================

Introduction

Limitations

Packaging

Installing Source RPM Package

Building Driver From TAR File

Unloading and Removing Driver

Introduction

============

This file describes the installation procedures for the following

Broadcom Linux drivers:

- bnx2 driver for the Broadcom NetXtreme II BCM5706/BCM5708/5709/5716

10/100/1000/2500/10000 Mbps PCIX/PCIE Ethernet Network Controller.

- bnx2x driver for the Broadcom NetXtremeII BCM57710/BCM57711/BCM57711E/BCM57712

10/100/1000/2500/10000 Mbps PCIE Ethernet Network Controller.

- cnic driver that supports additional features required by the bnx2i iSCSI

offload driver, and bnx2fc FCoE offload driver.

Limitations

===========

The current versions of the drivers have been tested on 2.4.x kernels starting

from 2.4.24 and all 2.6.x kernels. The driver may not compile on kernels

older than 2.4.24. Testing is concentrated on i386 and x86_64 architectures.

Only limited testing has been done on some other architectures.

Minor changes to some source files and Makefile may be needed on some

kernels.

Additionally, the Makefile will not compile the cnic driver on kernels

older than 2.6.16. iSCSI offload is only supported on 2.6.16 and newer

kernels. FCoE offload is only supported on 2.6.32 and newer kernels.

Packaging

=========

The driver is released in two packaging formats: source RPM and compressed tar

formats. The file name for the source RPM is:

netxtreme2-.src.rpm

The file name for the tar archive is:

netxtreme2-.tar.gz.

Identical source files to build the drivers are included in both packages.

Following is a list of files included -

a) netxtreme2-.src.rpm - NetXtreme II L2/cnic/bnx2fc/libfc/libfcoe

driver source RPM

b) netxtreme2-.tar.gz - tar zipped NetXtreme II

L2/cnic/bnx2fc/libfc/libfcoe driver source

c) INSTALL.TXT - This file

d) README..TXT - driver specific readme instructions,

where driver is bnx2, bnx2x, bnx2i, bnx2fc.

e) RELEASE..TXT - release information text providing list of bug fixes

and enhancement for each driver.

Installing Source RPM Package

=============================

The following are general guidelines for installing the driver.

1. Install the source RPM package:

rpm -ivh netxtreme2-.src.rpm

2. CD to the RPM path and build the binary driver for your kernel:

cd /usr/src/{redhat,OpenLinux,turbo,packages,rpm ..}

(For RHEL 6.0 and above, cd ~/rpmbuild )

rpm -bb SPECS/netxtreme2.spec

or

rpmbuild -bb SPECS/netxtreme2.spec (for RPM version 4.x.x)

Note that the RPM path is different for different Linux distributions.

The driver will be compiled for the running kernel by default. To build

the driver for a kernel different than the running one, specify the

kernel by defining it in KVER:

rpmbuild -bb SPECS/netxtreme2.spec --define "KVER "

where in the form of 2.x.y-z is the version of another

kernel that is installed on the system.

3. Install the newly built package (driver and man page):

rpm -ivh RPMS//netxtreme2-..rpm

where is the machine architecture such as i386:

rpm -ivh RPMS/i386/netxtreme2-.i386.rpm

Note that the --force option may be needed on some Linux distributions

if conflicts are reported.

The drivers will be installed in the following path:

2.4.x kernels:

/lib/modules//kernel/drivers/net/bnx2.o

/lib/modules//kernel/drivers/net/bnx2x.o

2.6.0 kernels:

/lib/modules//kernel/drivers/net/bnx2.ko

/lib/modules//kernel/drivers/net/bnx2x.ko

2.6.16 and newer kernels:

/lib/modules//kernel/drivers/net/bnx2.ko

/lib/modules//kernel/drivers/net/bnx2x.ko

/lib/modules//kernel/drivers/net/cnic.ko

Newer RHEL and SLES distros:

/lib/modules//updates/bnx2.ko

/lib/modules//updates/cnic.ko

/lib/modules//updates/bnx2x.ko

/lib/modules//updates/bnx2i.ko

/lib/modules//updates/bnx2fc.ko

4. Unload existing driver if necessary:

rmmod bnx2

rmmod bnx2x

If the cnic driver is loaded, it should also be unloaded along with dependent

drivers:

rmmod bnx2fc

rmmod bnx2i

rmmod cnic

5. Load the bnx2 driver for the BCM5706/BCM5708/5709/5716 devices:

insmod bnx2.o

or

insmod bnx2.ko (on 2.6.x kernels)

or

modprobe bnx2

To load the bnx2x driver for the BCM57710/BCM57711/BCM57711E/BCM57712 devices:

insmod bnx2x.o

or

insmod bnx2x.ko (on 2.6.x kernels)

or

modprobe bnx2x

To load the cnic driver:

insmod cnic.ko

or

modprobe cnic

To load the bnx2i driver:

insmod bnx2i.ko

or

modprobe bnx2i

service iscsid restart (Please refer REDAME.bnx2i.txt for more details

about iSCSI operation)

To load the bnx2fc driver for BCM57712 device:

insmod bnx2fc.ko

or

modprobe bnx2fc

service fcoe start (Please refer README.bnx2fc.txt for more details about

FCoE operation)

Note that the inbox kernel may have an older version of bnx2, bnx2x and cnic

driver. It is important for FCoE offload user to unload these inbox versions

before attempting to load bnx2fc driver. There are 2 options to reach the

desired goal,

a) Reboot the server

OR

b) If already loaded, unload inbox bnx2, bnx2x, cnic drivers and load newly

installed version from netxtreme2-foce package using 'modprobe '

NOTE: Driver upgrade (rpm -Uvh) is not supported.

NOTE: On SLES 11, change "allow_unsupported_modules" parameter value of

/etc/modprobe.d/unsupport-modules' from 0 to 1, until bnx2fc driver

is inbox. Failing to do so will not load bnx2fc.

6. To configure network protocol and address, refer to various Linux

documentations.

Building Driver From TAR File

=============================

The following are general guidelines for installing the driver.

1. Create a directory and extract the files:

tar xvzf netxtreme2-.tar.gz

2. Build the drivers as a loadable module for the running kernel:

make

The driver will be compiled for the running kernel by default. To build

the driver for a kernel different than the running one, specify the

kernel by defining it in KVER:

make KVER=

where in the form of 2.x.y-z is the version of another

kernel that is installed on the system.

3. Test the driver by loading it (Same procedures as described in the

Source RPM section above).

4. Install the driver and man page:

make install

See RPM instructions above for the location of the installed driver.

5. To configure network protocol and address, refer to various Linux

documentations.

Unloading and Removing Driver

=============================

If the driver was installed using rpm, do the following to remove it:

rpm -e nextreme2

Note - this will remove libfc2, libfcoe2, bnx2, bnx2x and cnic modules as well

If the driver was installed using make install from the tar file, the drivers

have to be manually deleted from the system. Refer to the section

"Installing Source RPM Package" for the location of the installed driver.

1. rmmod

2. delete .ko from location given in section "Installing Source RPM Package"

3. depmod -a

**The kernel will now be back to original state prior to instalation from tar file.

You may now reload previous module versions if necessary.

推荐阅读:

linux 5.5安装万兆网卡驱动,CentOS 5.5 更新网卡驱动 bnx2 version: 2.0.2相关推荐

  1. Linux下xl710网卡驱动,CentOS 6.x 系统安装+网卡驱动安装(Realtek PCIe GBE Family Controller for Linux)...

    GNU/Linux的安装过程中实际上已经安装了很多可用的网卡驱动,但这一款:Realtek PCIe GBE Family Controller的驱动却没有. 而我的台式机:惠普 HP Pro 338 ...

  2. 网易云音乐Linux绿色免安装版For CentOS

    网易云音乐Linux绿色免安装版For CentOS 本软件修改自网易云音乐,版权归原作者所有. 修改后特点: 绿色无公害,复制即可用 免安装,不用担心复杂的安装过程 制作过程中已经解决组件问题 *制 ...

  3. 如何在Linux系统下安装英特尔® Arc™系列独立显卡驱动以及进行AI推理性能测试...

    点击蓝字 关注我们,让开发变得更有趣 作者 | 周兆靖 排版 | 李擎 如何在Linux系统下安装英特尔® Arc™系列 独立显卡驱动以及进行AI推理性能测试 目录 1.本文目的 2.Linux 系统 ...

  4. CentOS 5.5升级网卡驱动

    DELL的R310或是R410服务器安装centos会遇到网卡驱动问题.现象为,在网上负载较高后网上自动down掉.所以需要更新网卡驱动. 1.先确认当前驱动版本: modinfo bnx2  #或直 ...

  5. 嵌入式Linux——网卡驱动(1):网卡驱动框架介绍

    声明:文本是看完韦东山老师的视频和看了一些文章后,所写的总结.我会尽力将自己所了解的知识写出来,但由于自己感觉并没有学的很好,所以文中可能有错的地方敬请指出,谢谢. 在介绍本文之前,我想先对前面的知识 ...

  6. 笔记本安装Win2012R2 心得(包含无线网卡+有线网卡驱动解决方法)

    笔记本:联想昭阳E47G 无线网卡安装方法: 系统安装完毕后将自动识别无线网卡驱动,但需要手动允许WLAN服务开启.(建议,如果是拿来办公或者家用,可以安装上桌面体验)不然,QQ发的截图双击都看不起. ...

  7. html安装网卡驱动,网卡驱动怎么装,教您网卡驱动怎么安装

    装完系统后一般需要安装一些硬件驱动,说的简单点,电脑要上网就要有网卡,而要让网卡发挥作用就要有网卡驱动,就比如汽车要有汽油才能跑一样的,没有了驱动,网卡就发挥不了作用.那么网卡驱动怎么安装?下面,小编 ...

  8. R710后台更新网卡驱动

    dell的服务器网卡Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet在负载高的情况下会出现无故中断,重启网卡就好了,必须要更新网卡驱 ...

  9. 暗影精灵5怎么更新网卡驱动_笔记本怎么更新无线网卡驱动

    相信大家平时在操作电脑的时候都会定期的更新一下系统补丁,升级硬件驱动.那么要怎样更新无线网卡驱动程序呢?这里小编就来给大家说说笔记本更新无线网卡驱动程序的正确方法,大家不妨来看看啊~ 最近有很多朋友问 ...

  10. 计算机没网络怎么更新网卡驱动,电脑网卡驱动更新 怎么更新网卡驱动(图文)...

    小编最近逛贴吧经常看到有用户在问,电脑网卡驱动怎么更新?电脑中的驱动程序是在不断地更新的,因此我们有些时候遇到一些问题无法解决的时候往往是由于驱动的原因所导致的,只要对自己的网上驱动进行一下更新或许就 ...

最新文章

  1. php字符串定义为arraylist,如何把arraylist集合中的字符串数据保存的文本文件中
  2. 周志华:Boosting学习理论的探索 —— 一个跨越30年的故事
  3. Entity Framework 普通操作(复习用)——感觉有点不对,需要撸代码验证
  4. centos中文目录换成英文目录
  5. 如何在Linux上提高文本的搜索效率
  6. leetcode练习——栈(1)
  7. ddd 访问权限_基于DDD的微服务设计和开发实战
  8. 6.2二叉树及二叉树存储结构
  9. 面向对象程序设计——总结作业
  10. diy手工制作泡沫小球_一撮羊毛用针来回的戳,DIY手工制作羊毛毡小动物,越戳越带劲...
  11. python火车票查询系统_Python脚本实现12306火车票查询系统
  12. 用Hbuilder实现:一行HTML代码+tab快捷键,快速创建HTML结构
  13. java queue GATK_GATK使用注意事项
  14. MySQL基础(约束 多表查询)
  15. rat linux安装u盘,美加狮RAT2鼠标驱动
  16. 大吉大利今晚吃鸡——枪械篇
  17. Content Provider (内容提供者)
  18. 数据结构中,“结点”的意思
  19. 两张图读懂Saas Paas Iaas
  20. Settings简介

热门文章

  1. INS/GNSS组合导航(一)-绪论
  2. 基于JS/H5实现二维码扫码增强版-带视频演示
  3. Android之按钮点击事件(单击、双击、长按等)
  4. 谷歌gmail注册入口_Gmail样式的侧面板即将用于Google文档和Google日历
  5. mac 谷歌浏览器必备插件
  6. Mac谷歌浏览器关闭自动更新,下载历史版本方法,解决不自动提示保存密码的问题
  7. Win10提示“为了对电脑进行保护,已经阻止此应用”如何解决
  8. sniffer 嗅探器
  9. SameSite Cookie支持的浏览器版本
  10. java unexpected token解决方法