after installing the Linux operating system, it is found that there is no NIC driver
System→administration→network The hardware list is empty.
The following is the installation and compilation of network card driver process, I am a rookie, the following is the information I find from the online collation, and the actual operation of the process, for reference only.
First, the Linux system kernel version and network card type, the relevant commands are as follows:
Uname-r viewing the Linux kernel version (Uname-a can show all information)
Lsmod Device Load Condition
Ls/usr/share/hwdata Viewing hardware devices
LSPCI View PCI network card device Ethernet controller manufacturer and model, modprobe * * * * * * * * * * * * * * * * * * * * * rtl8101e If there is an error, the module does not exist and the model does not recognize
I do not find the NIC model in this step, but can only be purchased by the other same model pre-installed Win7 computer to view the network card model, is a stupid way, hey ...
Find the network card model to the driver's home download the corresponding network card Linux driver, these need to download according to their actual situation, not much to say, the focus is behind.
Two. Download the NIC driver
Intel_e1000e-1.9.5.zip for me to download the required network card driver, this Linux under the need to compile their own.
Three. Install the NIC driver
1. Detect compilation requires the kernel source code package and compile the program GCC. So if you don't have one, you have to install it first.
[Email protected] ~]# 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
[Email protected] ~]# 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/server/directory of the installation CD and locate the kernel-xen-devel-2.6.18-8.el5.i686.rpm file installation.
I am very fortunate that the installation of the system has been installed, hehe.
2. Compile and install the NIC driver
Put the downloaded NIC driver into the/home directory, unzip the Intel_e1000e-1.9.5.zip package
Unzip Intel_e1000e-1.9.5.zip
Enter the extracted directory and compile the installation, with the following command:
# CD E1000E-1.9.5/SRC
# make Install
In general, the extracted directory will have a readme file, which details the installation of the network card steps, it is strongly recommended to read the Readme, the installation of the Readme step operation generally will not appear problems.
The installed files are generally located in the following directory (kernel version takes my example)/lib/modules/2.6.18-194.el5xen/kernel/drivers/net/e1000e/e1000e.ko
Insmod E1000e.ko
Installation completed, after successful system prompted the network has been connected, indicating that the NIC driver has been installed, you can also check the system→administration→network under the hardware list.
Remarks (the following are online materials, not actually verified):
If the operating system supports Xen-enabled kernels, the Hardware tab appears with two NICs, Eth0 and Peth0.
Eth0 is mapped to Peth0, the system will automatically generate a XENBR0 network card, the network card is for Guestos Bridge, vif0.0 refers to the first network Domain0, vif0.1 refers to the second NIC Domain0;
If you are not ready to use a Xen virtual machine, you can choose a kernel without Xen at startup and you will not generate these additional NICs:
Step one: Close the xend process so that it does not start with the system.
1. Use the NTSYSV command to enter service management, close the Xend service (SPACEBAR is selected or canceled)
2. Use the Chkconfig command:
[[email protected] ~]# chkconfig--level 1 xend off
[[email protected] ~]# chkconfig--level 2 xend off
[[email protected] ~]# chkconfig--level 3 xend off
[[email protected] ~]# chkconfig--level 4 xend off
[[email protected] ~]# chkconfig--level 5 xend off
[[email protected] ~]# chkconfig--level 6 xend off
Check that the xend are all off state:
[Email protected] ~]# chkconfig--list |grep xend
Xend 0: Off 1: Off 2: Off 3: Off 4: off 5: off 6: Off
Xendomains 0: Off 1: Off 2: Off 3: Enable 4: Enable 5: Enable 6: Off
Reboot the system after modification.
Step Two: Enter the system--management--network, you can already see the NIC, you can configure IP and DNS.
Then modify the bound 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 the VI Editor to modify this file, or you can modify the network card MAC address.
Put Hwaddr=ff:ff:ff:ff:ff
Change to Macaddr=00:1f:d0:64:9b:b7 macaddr behind is your MAC address
2./etc/sysconfig/networking/profiles/default/ifcfg-eth0
Put Hwaddr=ff:ff:ff:ff:ff
Change to Macaddr=00:1f:d0:64:9b:b7 macaddr behind is your MAC address
Restart takes effect.
How to install and compile network adapter drivers under Linux