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 mainly introduces "how to install compiled network card driver under linux". In daily operation, I believe many people have doubts about how to install compiled network card driver under linux. Xiaobian consulted all kinds of information and sorted out simple and easy to use operation methods. I hope to answer the doubts of "how to install compiled network card driver under linux". Next, please follow the small series to learn together!
After installing linux operating system, it was found that there was no network card driver, which was shown as
The Hardware list under system → Administration → Network is empty.
The following is the process of installing and compiling the network card driver. I am a rookie. The following is the information I found from the Internet to sort out, and the actual operation process, for reference only.
I. Check the Linux kernel version and network card type. The relevant commands are as follows:
uname -r View Linux kernel version (uname -a displays all information)
lsmod device loading
ls /usr/share/hwdata View hardware devices
lspci Check PCI Ethernet controller manufacturer and model, modprobe ******* is the network card model, such as modprobe RTL8101E, if an error occurs, the module does not exist, and the model is not recognized.
I can't find the network card model at this step, but I can only check the network card model from other computers with the same model pre-installed with win7 purchased at the same time. It's a stupid way, hehe…
After finding the network card model, I went to the driver's house to download the linux driver for the corresponding network card. These need to be downloaded according to my actual situation. I don't say much. The focus is on the back.
II. Download Network Card Driver
Intel_e1000e-1.9.5.zip for me to download the required network card driver, this in linux need to compile their own.
III. Install NIC driver
1. Detect source code packages and compilers gcc needed to compile the kernel. So if you don't have it, you have to install it first.
[root@localhost ~]# rpm -qa|grep kernel
kernel-xen-2.6.18-8.el5
kernel-xen-devel-2.6.18-8.el5
kernel-headers-2.6.18-8.el5
[root@localhost ~]# rpm -qa|grep gcc
gcc-c++-4.1.1-52.el5
libgcc-4.1.1-52.el5
gcc-4.1.1-52.el5
gcc-gfortran-4.1.1-52.el5
If kernel-xen-devel-2.6.18-8.el5 is missing, you can go to the installation CD under the/Server/directory and find the kernel-xen-devel-2.6.18-8.el5.i686.rpm file installation.
I am lucky that the installation system is already installed, hehe.
2. Compile and install network card driver
Put the downloaded network card driver in/home directory and extract Intel_e1000e-1.9.5.zip package.
unzip Intel_e1000e-1.9.5.zip
Enter the extracted directory and compile the installation command as follows:
# cd e1000e-1.9.5/src
# make install
Under normal circumstances, there will be a readme file in the decompressed directory, which details the steps of installing the network card. It is strongly recommended to read readme first. The steps in installing readme generally do not cause problems.
The installed files are generally located in the following directories (kernel version is my example)
/lib/modules/2.6.18-194.el5xen/kernel/drivers/net/e1000e/e1000e.ko
insmod e1000e.ko
After the installation is completed, the system prompts that the network is connected, indicating that the network card driver has been installed. You can also check the Hardware list under system → Administration → Network.
Remarks (The following information is online and has not been verified):
If the operating system has XEN-enabled kernels, two network cards, eth0 and peth0, appear in the Hardware tab.
eth0 is mapped to peth0; the system will automatically generate a network card of xenbr0; this network card is used as a bridge for guestOS;vif0.0 refers to the first network of Domain0;vif0.1 refers to the second network card of Domain0;
If you are not prepared to use XEN virtual machines; you can choose a kernel without xen at boot time, and these extra network cards will not be generated:
Step 1: Turn off the xend process so that it does not start automatically with the system.
1. Use the ntsysv command to enter service management and turn off xend service (space bar is checked or cancelled)
2. Use the chkconfig command:
[root@localhost ~]# chkconfig --level 1 xend off
[root@localhost ~]# chkconfig --level 2 xend off
[root@localhost ~]# chkconfig --level 3 xend off
[root@localhost ~]# chkconfig --level 4 xend off
[root@localhost ~]# chkconfig --level 5 xend off
[root@localhost ~]# chkconfig --level 6 xend off
Check if xend is closed:
[root@localhost ~]# chkconfig --list |grep xend
xend 0: Off 1: Off 2: Off 3: Off 4: Off 5: Off 6: Off
xenddomains 0: Off 1: Off 2: Off 3: On 4: On 5: On 6: Off
Reboot the system after modification.
Step 2: Go to System-> Management-> Network, you can already see the network card, you can configure IP and DNS.
Then modify the binding MAC address:
1. The TCP/IP network configuration file associated with the NIC is: /etc/sysconfig/network-scripts/ifcfg-ethx. Where x starts at 0, the first Ethernet configuration file is: /etc/sysconfig/network-scripts/ifcfg-eth0. Use vi editor to modify this file, you can also modify the MAC address of the network card.
HWADDR = ff:ff
MACADDR=00:1F:D0:64:9B:B7 MACADDR followed by its own mac address
2. /etc/sysconfig/networking/profiles/default/ ifcfg-eth0
HWADDR = ff:ff
MACADDR=00:1F:D0:64:9B:B7 MACADDR followed by its own mac address
Restart takes effect.
At this point, on "linux under how to install compiled network card driver" learning is over, I hope to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
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.