I. preface CentOS6.5 does not automatically install the Wireless NIC driver as CentOS7 and Unbuntu, so we need to make a try. II. preparations before installation [a] check the installation of the Wireless NIC driver (by checking the network
I. Preface
CentOS6.5 does not have the Wireless NIC driver installed automatically as CentOS7 and Unbuntu, so we need to make a try.
2. preparations before installation
[A] check the installation of the Wireless NIC driver (check the installation status of the network interface)
Enter:
#> iwconfig
If the following information is displayed, the Wireless NIC driver is not installed.
Lo no wireless extensions. # Local loopback interface eth0 no wireless extensions. # Ethernet interface
If the following information is displayed, it indicates that
lo no wireless extension.eth0 no wireless extension.wlan0 802.11bgn ESSID:"JH" Nickname:"rtl8191SEVA2" Mode:Managed Frequency=2.462 GHz Access Point: 8C:21:0A:57:C8:CA Bit Rate=300 Mb/s Retry:on RTS thr:off Fragment thr:off Power Management period:0us mode:All packets received Link Quality=100/100 Signal level=-48 dBm Noise level=-120 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[B] querying Wireless NIC chip information
Enter:
#> lspci | grep -i network
Now you can get the information of the Wireless NIC chip. my name is RTL8191SEvB.
Note: If you enter lspci | grep-I eth, the information of the Ethernet NIC is obtained.
[C] querying the kernel version
Enter:
#> uname -r
Now we can get the kernel information. my options are 2.6.32-431. el6.x86 _ 64.
After obtaining the above information, we can download the driver from the official website!
3. install the driver
After the driver is decompressed, run make & make install to report "make: ***/lib/modules/2.6.32-431. el6.x86 _ 64/build: there is no file or directory, but to ls/lib/modules/2.6.32-431. el6.x86 _ 64/found build. what happened? Use ls-l/lib/modules/2.6.32-431. el6.x86 _ 64/found that build is a symbolic link and points to/usr/src/kernels/2.6.32-358. el6.x86 _ 64, but this directory does not exist currently, so the installation fails.
Solution: run yum install kernel-headers kernel-devel gcc *, run make clean and make & make install, and then restart the system.
After restarting, you will find that the wireless network card has been started, but you cannot find any hotspot. restart again!
4. configure DNS
At this time, the driver has been connected, but it still cannot be connected to the network. if you ping du Niang and do not return an ip address, it must be a DNS problem. Run sudo vim/etc/resolv. conf and add nameserver.
V. Introduction to relevant knowledge
1. lo (loopback interface ):
As a virtual network interface, a system or application is created without driver control and used to send and receive packets inside the system. (Inter-process communication)
2. linux-headers: linux development header file
3. linux-devel: contains linux header files, link libraries, and configuration files. because the Wireless NIC driver calls some kernel functions, therefore, when compiling the Wireless NIC driver (make & make install), you need to use linux-devel
VI. Summary
Now that you can access the Internet, it will be easier to learn in the future. Or you may wonder, how did you download the materials before? When using a wireless signal receiver, the mobile phone can access the Internet through direct usb connection. Then, run iwconfig to view the network interface of USB 0!
Respect originality. For more information, see http://www.cnblogs.com/fsjohnhuang/p/3903091.html,^_^ John.