First, check the network adapter model. [Python] viewplaincopy [root @ localhostsam] # lspci-nn | grep-I &
First, check the network adapter model.
[Python]View plaincopy
- [Root @ localhost sam] # lspci-nn | grep-I net
- . 0 Network controller [0280]: Realtek semiconduco., Ltd. RTL8188CE 802.11b/g/n WiFi Adapter [10ec: 8176] (rev 01)
- . 0 Ethernet controller [0200]: Qualcomm Atheros AR8152 v2.0 Fast Ethernet [1969: 2062] (rev c1)
This command is used to list all PCI devices. From the output, we can see that there are two network adapters, including wireless network adapters that cannot be used normally. The model is RTL8188CE. pay attention to the red part. this is a device identifier, representing the Vendor: device ID, that is, 10ec is the provider ID and 8176 is the Device ID. This identifier pair is used to find the required kernel module.
Second, find the required kernel module.
ELRepo provides hardware-related software packages for redhat enterprise and derivative releases, such as various drivers. ELRepo: DeviceIDs provides a ing list from the Vendor: Device ID to the kmod package name. Use the Vendor: Device ID found in the previous step to locate the kmod package name that needs to be used. For example, [10ec: 8176] finds the following results:
R8192ce_pci.ko
Pci 10EC: 092D kmod-r8192ce
Pci 10EC: 8176kmod-r8192ce
Pci 10EC: 8177 kmod-r8192ce
Pci 10EC: 8178 kmod-r8192ce
Pci 10EC: 8191 kmod-r8192ce
So we know we should install the kmod-r8192ce package.
Step 3: install the kernel module kmod.
Follow the ELRepo instructions to install the kmod-r8192ce. The details are as follows:
1. import the public key. note the case sensitivity.
[Python]View plaincopy
- Rpm -- import http://elrepo.org/RPM-GPG-KEY-elrepo.org
2. install the ELRepo Library.
Copy
[Python]View plaincopy
- Rpm-Uvh http://elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
3. install kmod-r8192ce.
[Python]View plaincopy
- Yum install kmod-r8192ce
Finally, restart the system, and the wireless network will be connected.