How to install the NIC Driver in centos7
Summary:
OS: centos 7
Hardware: Nvidia nforce NIC (Integrated on the motherboard)
Task: Install the NIC Driver
Detail:
My Nic is integrated on the motherboard and seems to have been discontinued. When I installed win8 last time, I couldn't find the corresponding driver and gave up. So we use win7.
This time, we installed a dual system, win7 + centos7. When installing centos7, you may encounter network setting options, but the "no available network device" is displayed. It is suggested that the network cable is not plugged in (the network is not good when you switch back to win7 after installation, so I suspect it), or there is no NIC Driver (after all, this problem was also encountered last time), so I only need to skip this step and install the system directly.
After the installation, I started searching why there was no network, but the keyword I used was incorrect. I found that many people did not set the network connection during installation. Therefore, some files related to the ethernet card configuration in their systems are not opened in the network. At first, I was wondering why I didn't have these files... (It also involves some version issues. For example, when I first searched for centos, the keyword is only centos, but in fact 7 is different from the previous version ).
Later I thought again and thought that I could not recognize the network because there was no driver. So I began to search for the keywords centos 7 nvidia nforce ethernet driver. I found that someone was similar to me [1]. After centos 7 was installed, the network was not identified and it was nvidia's Nic. Some people have provided a solution. Generally, nforce does not have a built-in driver in centos 7, and some people have mentioned issue in the centos community. It is estimated that there will be a later version; now, you can install the kmod driver on your own, and go to elrepo To Go To The rpm-format Driver Installation File. In the answer, some people provide the driver you want to find [2].
I also read other methods for installing drivers in Linux systems as a reference.
Record the entire process below.
- 1. view the device information and determine the network card model.
[Plain] view plaincopyprint?
- Lspci-nn | grep-inet
Here, lspci is used to list all devices connected to the pci bus. This is used as the input and filtered through the MPs queue. grep obtains the NIC information.
Here is my Nic information:
[Plain] view plaincopyprint?
- . 0 Bridge [0680]: nvidiaconfigurationmcp61ethernet [10de: 03ef] (reva2)
- 2. Download the driver File
According to
[Plain] view plaincopyprint?
- 10de: 03ef
You can go to this link ([2] http://elrepo.org/tiki/DeviceIDs) to check what driver module should be, well, it is the one that says forcedeth. Then download (http://elrepo.org/tiki/Download ).
So according to my system kernel version, I went to this link (http://elrepo.org/linux/elrepo/el7/x86_64/RPMS/kmod-forcedeth-0.64-1.el7.elrepo.x86_64.rpm) to download the driver file kmod-forcedeth-0.64-1.el7.elrepo.x86_64.rpm and copy it to this computer.
How to view the kernel version?
[Plain] view plaincopyprint?
- Uname-r
- 3.10.0-123. el7.x86 _ 64
[Plain] view plaincopyprint?
- Surpm-ivhkmod-forcedeth-0.64-1.el7.elrepo.x86_64.rpm
After installation, the software package is installed.
However, the driver is not started after installation. You can use lsmod to check which modules are running [plain] view plaincopyprint?
- Lsmod | grepforcedeth
Here I use grep to see forcedeth
The result output is empty.
Activate driver
[Plain] view plaincopyprint?
- Modprobeforcedeth
Now we can see forcedeth [plain] view plaincopyprint?
- Lsmod | grepforcedeth
- Orcedet000015740
However, this driver will say that there are still some things I don't understand without signature... by the way, leave it.
In fact, I have previously found a driver on the nvidia website. Here we provide the forcedeth. c file for linux [3], but I don't know how to compile it.
Also saw a similar NIC Driver Installation tutorial (experience records) [5], this person's motherboard is a Gigabit Z77-DS3H, Nic is
Atheros Communications Inc. AR8161 Gigabit Ethernet
The system is Centos 6.4. This article also provides reference for compilation.
[1] http://grokbase.com/t/centos/centos/147dqyjd3j/nvidia-ethernet-port-not-detected-centos-7
[2] http://elrepo.org/tiki/DeviceIDs
[3] http://www.nvidia.cn/object/linux_nforce_1.21_cn.html
[4] http://elrepo.org/tiki/Download
[5] http://www.centoscn.com/image-text/config/2013/0816/1269.html