系统:CentOS 5.5 X86_64、RHEL 5.6 X86_64
硬件:Dell R610、R710、R720
通过升级系统自带网卡驱动程序到最新版本,可以解决当网卡流量过大时,出现掉包、断网现象。
升级步骤:
1.查看当前网卡类型
# /sbin/lspci |grep Ethernet 02:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 02:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 03:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20) 03:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
2.查看网卡驱动模块
# cat /etc/modprobe.conf|grep eth alias eth0 bnx2 #–>网卡模块为bnx2 alias eth1 bnx2 alias eth2 bnx2 alias eth3 bnx2
3.查看网卡驱动当前版本
# modinfo bnx2 filename: /lib/modules/2.6.18-238.el5/kernel/drivers/net/bnx2.ko version: 2.0.8-rh #–>现有驱动的版本 license: GPL description: Broadcom NetXtreme II BCM5706/5708/5709/5716 Driver #–>网卡型号 author: Michael Chan <mchan@broadcom.com> srcversion: C7F6CA68A2BE2D1974E1D05 alias: pci:v000014E4d0000163Csv*sd*bc*sc*i* alias: pci:v000014E4d0000163Bsv*sd*bc*sc*i* alias: pci:v000014E4d0000163Asv*sd*bc*sc*i* alias: pci:v000014E4d00001639sv*sd*bc*sc*i* alias: pci:v000014E4d000016ACsv*sd*bc*sc*i* alias: pci:v000014E4d000016AAsv*sd*bc*sc*i* alias: pci:v000014E4d000016AAsv0000103Csd00003102bc*sc*i* alias: pci:v000014E4d0000164Csv*sd*bc*sc*i* alias: pci:v000014E4d0000164Asv*sd*bc*sc*i* alias: pci:v000014E4d0000164Asv0000103Csd00003106bc*sc*i* alias: pci:v000014E4d0000164Asv0000103Csd00003101bc*sc*i* depends: vermagic: 2.6.18-238.el5 SMP mod_unload gcc-4.1 parm: disable_msi:Disable Message Signaled Interrupt (MSI) (int) parm: enable_entropy:Allow bnx2 to populate the /dev/random entropy pool (int) module_sig: 883f3504de5f22f43e909ab54b946c11240a909e2fda20a05b43ed30218e26f5efa0af241d6e29a009f45d50b4ccf2c77c0819974b1d3f8f51fca9be2
4.下载最新网卡驱动程序
到以下链接,根据查询到的网卡型号下载最新的驱动程序:
http://zh-cn.broadcom.com/support/ethernet_nic/downloaddrivers.php
5.驱动程序安装
unzip linux-7.2.20.zip cd Server/Linux/Driver/ rpm -ivh netxtreme2-7.2.20-1.src.rpm cd /usr/src/redhat/SPECS/ rpmbuild -bb netxtreme2.spec cd ../RPMS/x86_64/ rpm -ivh netxtreme2-7.2.20-1.x86_64.rpm
6.加载最新驱动模块
#vi change.sh rmmod bnx2 modprobe bnx2
执行脚本:
sh change.sh
7.查看最新驱动版本
#modinfo bnx2 filename: /lib/modules/2.6.18-238.el5/updates/bnx2.ko version: 2.2.1j #–>新版驱动程序版本号 license: GPL description: Broadcom NetXtreme II BCM5706/5708/5709/5716 Driver author: Michael Chan <mchan@broadcom.com> srcversion: 92BB1824D1695C4AE860E5F alias: pci:v000014E4d0000163Csv*sd*bc*sc*i* alias: pci:v000014E4d0000163Bsv*sd*bc*sc*i* alias: pci:v000014E4d0000163Asv*sd*bc*sc*i* alias: pci:v000014E4d00001639sv*sd*bc*sc*i* alias: pci:v000014E4d000016ACsv*sd*bc*sc*i* alias: pci:v000014E4d000016AAsv*sd*bc*sc*i* alias: pci:v000014E4d000016AAsv0000103Csd00003102bc*sc*i* alias: pci:v000014E4d0000164Csv*sd*bc*sc*i* alias: pci:v000014E4d0000164Asv*sd*bc*sc*i* alias: pci:v000014E4d0000164Asv0000103Csd00003106bc*sc*i* alias: pci:v000014E4d0000164Asv0000103Csd00003101bc*sc*i* depends: vermagic: 2.6.18-238.el5 SMP mod_unload gcc-4.1 parm: disable_msi:Disable Message Signaled Interrupt (MSI) (int) parm: stop_on_tx_timeout:For debugging purposes, prevent a chip reset when a tx timeout occurs (int)
如果没有成功,重新启动下服务器;
8.卸载最新驱动,还原到以前的驱动
如果安装的最新驱动程序有问题,怎么卸载?
#rpm -e netxtreme2-7.2.20-1
来自:http://www.yaukb.com/2012/07/dell_network_drivers_update/
转载请注明:爱开源 » Dell服务器网卡驱动升级[CentOS 5.5 X86_64和RHEL 5.6 X86_64]