In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to analyze the network card driver upgrade under linux, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Network card is an important network device in Linux server. According to statistics, network failures usually occur in the lower three layers of the network seven-layer model, namely, the physical layer, the link layer and the network layer. Corresponding to the actual network, that is, the use of network cables, network cards, switches, routers and other equipment failures. Recently, it is found that a Dell 910server will be interrupted for no reason under high load or during high stress testing. it would be nice to restart the server. The network card used by the server is Broadcom (Broadcom) gigabit network card. After repeatedly verifying that there is no problem with the cable, hardware, system and network, it is decided to upgrade the network card driver.
First of all, download the latest driver from the manufacturer or official website.
1. Download the installation file for the network card driver, usually a compressed file with a suffix in tgz format, such as
BroadCom5709.tgz
two。 Copy the installation file to the server's Linux directory, for example, / tmp. Extract the file with the tar command
Tar xvfz BroadCom5709.tgz
After unzipping, you can see the Bcom_LAN_16.2.0_Linux_Source_A01 directory in the directory. There are three Linux_Readme NetXtreme NetXtremeII directories in it.
Step 2: install the driver
Check the pre-upgrade driver
[root@localhost] # ethtool-I eth0
Driver: bnx2
Version: 1.9.3
Firmware-version: 6.2.0 NCSI 2.0.11
Bus-info: 0000:04:00.0
Start the upgrade
[root@localhost ~] # cd Bcom_LAN_16.2.0_Linux_Source_A01/NetXtremeII
[root@localhost] # rpm-ivh netxtreme2-6.2.23-1.src.rpm
[root@localhost ~] # cd / usr/src/redhat/SPECS
[root@localhost ~] # rpmbuild-bb netxtreme2.spec
[root@localhost ~] # cd / usr/src/redhatRPMS/x86_64
[root@localhost] # rpm-ivh netxtreme2-6.2.23-1.x86_64.rpm
[root@localhost ~] # / tmp/5709.BIN
(note: the kernel source code of the system may be used during installation, and GCC needs to be installed if GCC is missing during driver upgrade. )
Third。 Check whether the driver is installed successfully
[root@localhost ~] # lsmod | grep bnx2
Bnx2 224140 0
If the corresponding driver module is found, it means that the Nic driver is installed successfully. If not, you can also load the network card driver module through modprobe.
[root@localhost ~] # modprobe bnx2
Finally, take a look at the upgraded driver and find that it has been updated.
[root@localhost] # ethtool-I eth0
Driver: bnx2
Version: 2.0.23b
Firmware-version: bc 6.2.0 NCSI 2.0.11
Bus-info: 0000:0b:00.0
If you want to see more details, you can use the modinfo command.
[root@localhost ~] # modinfo bnx2
Filename: / lib/modules/2.6.18-164.el5/updates/bnx2.ko
Version: 2.0.23b
License: GPL
Description: Broadcom NetXtreme II BCM5706/5708/5709/5716 Driver
Author: Michael Chan
Srcversion: 6E0DD070AB24C11F50B2712
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-164.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)
Fourth. Configure the network
Execute the command system-config-network in Red Hat LINUX to configure the network card
Select the network card in the open graphical interface and press Edit to configure it. Note that the network card must be in Activate (active) state to be used normally, if it is Inactive state, you need to use the Activate button to activate it.
After the successful upgrade of the network card driver, the problem has been solved and will not reappear.
Add: after upgrading the Nic driver, restart and return to the original state of the problem, corresponding to the solution:
Before installing a new driver, first turn off the kudzu service and turn off the default service in ntsysv. Then uninstall the original driver and install the new driver, which will not be repeated.
What kudzu does: if new hardware is added after installing the Linux system, the system must load the correct driver before it can be used. The Kudzu service runs every time it starts by default. If you need to shorten the startup time, use the following command to stop the kudzu service at system startup: # chkconfig kudzu off if you want to install new hardware, you can run the kudzu program manually.
On how to analyze the linux network card driver upgrade to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.