Install the Broadcom NIC Driver on centos
Leaders Demanded that a LINUX server be built for recent graduates. I want to install ORACLE CVS SVN FTP JDK WEBSphere. Which version is better? CentOS that used to play for a while. Use it. The installation process is normal. Wait until the prompt is restarted and the installation is complete.
Boot, enter the system, set the network, and use ifconfig to view only LO. None. Maybe the NIC driver is not installed. View the network card hardware version Broadcom57785.go. Find the driver.
Driver download URL: http://www.broadcom.com/support/ethernet_nic/netlink_k57.php
Then copy to the USB flash drive. Decompress the USB flash drive mounting file to Centos.
- Mount/dev/sdb1/mnt
- Cd/mnt
- Unziplinux-3.110g.zip
After decompression, go to the corresponding directory and view the README file. The description file provides two installation methods: the first RPM package and the second source code installation. I have successfully installed the first method, and I have not tested the second method (I will paste the installation method to the end .)
- Rpm-ivhtg3-3.116j-1.src.rpm # enter the installation directory after completion
- Cd/usr/scr/redhat # There are a total of five subdirectories under the Directory: BUILDRPMSSOURCESSPECSSRPMS
- Rpm-bbSPECS/tg3.spec
- Or
- Rpmbuild-bbSPECS/tg3.spec # use some commands
- Then go to the i386 directory under RPMS. You will find a new RPM file generated by the ls directory.
- Rpm-ivh tg3-3.116j-1.i386.rpm
- Check the two file directories to see if there are tg3.o or tg3.ko files.
- /Lib/modules/<kernel_version>/kernel/drivers/net/tg3.o # <kernel_version> is your kernel directory.
- /Lib/modules/<kernel_version>/kernel/drivers/net/tg3.o # <kernel_version> is your kernel directory.
- Load Module
- Modprobe tg3
- Service network restart # network adapter added.
Method 2
1. Create a directory and extract the files: tar xvzf tg3-<version>.tar.gz2. Build the driver tg3.o (or tg3.ko) as a loadable module for therunning kernel: cd src makeThe driver will be compiled for the running kernel by default. To buildthe driver for a kernel different than the running one, specify thekernel by defining it in KVER: make KVER=<kernel version>where <kernel version> in the form of 2.x.y-z is the version of anotherkernel that is installed on the system.3. Test the driver by loading it: insmod tg3.oor insmod tg3.ko (on 2.6.x kernels)or insmod tg34. Install the driver: make install
This ends.