Environment in the notebook virtual machine 10.0 version, centos-6.5 Wireless card fast-fw300um
The first step is to view the chip LSUSB when you get the chip and then look at the kernel, if the kernel already has a chip module can not be installed, if not supported, then go to the chip website to download the Linux driver http://www.realtek.com.tw/ Default.aspx * * Although my wireless network card is fast production, but he did not give us the Linux driver, but the chip is provided with a driver, so to the chip website download driver * *
First, download the driver for the wireless network card on the official website, unzip and install it,
[email protected] rtl8188c_8192c_usb_linux_v4.0.2_9000.20130911]# make Installinstall-p-M 644 8192cu.ko/lib/modules /2.6.32-431.el6.i686/kernel/drivers/net/wireless//sbin/depmod-a 2.6.32-431.el6.i686
View
[Email protected] rtl8188c_8192c_usb_linux_v4.0.2_9000.20130911]# ll/lib/modules/2.6.32-431.el6.i686/kernel/ Drivers/net/wireless/total 11956-rw-r--r--. 1 root root 11667935 Jul 09:40 8192cu.ko see that the driver has been installed successfully, but to make the system aware it must be said that the module is loaded into the kernel
See the module that the system has loaded first lsmod |grep 8192
[[email protected] rtl8188c_8192c_usb_linux_v4.0.2_9000.20130911]# lsmodmodule Size Used bynls_utf8 1063 1 8021q 20355 0 garp 5703 1 8021qstp 1626 1 garpllc 4258 2 garp,stpfuse 62472 2 vmhgfs 37934 0 vsock 33529 0
See no wireless drivers using modprobe 8192CU load Module 8192
[[email protected] ~]# modprobe 8192cu[[email protected] ~]# lsmod |grep 81928192cu 559722 0
You can see the load is ready.
The program can also be loaded after automatic boot
Then look at the port ifconfig-a can see one more WLAN0 port
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6F/DA/wKioL1WroOPQ84WUAAFziABqoIA885.jpg "title=" 2015-07-19_181817.png "alt=" wkiol1wrfjdh0jhdaafziabqoia014.jpg\ ""/>
Enable WLAN0 Port ifconfig wlan0 up (you can see the wireless card light on)
Scan wireless network using command iwlist
Need to install package Wireless_tools
View link status Iwconfig
View Wireless networks Iwlist Wlan0 scanning
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6F/DE/wKiom1Wrn46SCchmAAEKQ87Tr28818.jpg "title=" 2015-07-19_182226.png "alt=" wkiol1wrfy_jcqnkaaekq87tr28999.jpg\ ""/>
Connecting wireless network encrypted access requires installation package Wpa_supplicant
[email protected] ~]# Yum--disablerepo=\\*--enablerepo=c6-media Install wpa_supplicant-y
Enter the user name and password to access the network
[Email protected] ~]# wpa_passphrase tyedus >>/etc/wpa_supplicant/wpa_supplicant.conf [email protected]#
(The user name entered is redirected to the WPA profile)
And look at the files and see if we have the data.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6F/DB/wKioL1WroZKiqJZqAAC52YoBWBQ770.jpg "title=" 2015-07-19_191911.png "alt=" wkiom1wrh8-z2cczaac52yobwbq604.jpg\ ""/>
Link Wireless Networks
[Email protected] ~]# wpa_supplicant-i wlan0-c/etc/wpa_supplicant/wpa_supplicant.conf-d Wext-bioctl[siocsiwap]: Ope Ration not permitted
View the linked network
[[email protected] ~]# iwconfiglo no wireless extensions.eth0 no wireless extensions.wlan0 ieee 802.11bgn essid: "Tyedus" nickname: "" mode:managed frequency:2.462 ghz access Point: 00:22:AA:FF:F8:D8 Bit Rate:300 Mb/s Sensitivity:0/0 retry:off rts thr:off fragment thr:o ff encryption key:****-****-****-****-****-*** *-****-**** security mode:open power management:Off link quality=29/100 signal level=46/100 Noise level=0/100 rx invalid nwid:0 rx invalid crypt:0 rx invalid frag :0 tx excessive retries:0 invalid misc:0 missed beacon:0
You can see that the network is connected (under normal circumstances you can see the lights on the wireless card flashing)
* * Sometimes it's not even possible that the network signal is poor
* * If the middle link is broken, you can kill the process continue link
Pkill-9 wpa_supplicant
Now look at the network interface, find that there is no address, need to configure dynamic address
[[Email protected] ~]# dhclient wlan0wlan0 link encap: ethernet hwaddr 0c:82:68:1e:48:fb inet addr:192.168.2.27 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::e82:68ff:fe1e:48fb/64 scope:link up broadcast running multicast mtu:1500 metric:1 rx packets:276 errors:0 dropped:1273 overruns:0 frame:0 tx packets:7 errors:0 dropped:18 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:81123 (79.2 kib) TX bytes:31608 (30.8 kib)
This time ping, found that the WAN has been
[Email protected] ~]# ping Www.baidu.comPING www.a.shifen.com (61.135.169.121), bytes of data.64 bytes from 61.135. 169.121:icmp_seq=1 ttl=54 time=58.1 ms64 bytes from 61.135.169.121:icmp_seq=2 ttl=54 time=189 ms64 bytes from 61.135.169 .121:icmp_seq=4 ttl=54 time=30.1 ms64 bytes from 61.135.169.121:icmp_seq=5 ttl=54 time=48.3 ms
However, the linked command and dynamic address are manually configured and cannot be connected after rebooting, so add the link command to the boot script
[Email protected] ~]# echo "wpa_supplicant-i wlan0-c/etc/wpa_supplicant/wpa_supplicant.conf-d wext-b" >>/etc/ rc.d/rc.local [[email protected] ~]# echo "Dhclient wlan0" >>/etc/rc.d/rc.local
View boot script [[email protected] ~]# vim/etc/rc.d/rc.local
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6F/DE/wKiom1WroG7hhQTYAADlhc4Dl6k082.jpg "title=" 2015-07-19_200948.png "alt=" Wkiom1wrog7hhqtyaadlhc4dl6k082.jpg "/>
And then charge the test.
Init 6
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6F/DE/wKiom1WrngPBko8_AAEyVxQRmxI403.jpg "title=" 2015-07-19_201715.png "alt=" Wkiom1wrngpbko8_aaeyvxqrmxi403.jpg "/>
There is a problem finding the gateway
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6F/DA/wKioL1Wrn9GR3yszAACtpCLqlvM655.jpg "title=" 2015-07-19_201757.png "alt=" Wkiol1wrn9gr3yszaactpclqlvm655.jpg "/>
Delete the gateway to the wired network card
[Email protected] ~]# Vim/etc/sysconfig/network-scripts/ifcfg-eth0
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6F/DE/wKiom1WrneCxuFK0AADPXnlJrQo567.jpg "title=" 2015-07-19_202035.png "alt=" Wkiom1wrnecxufk0aadpxnljrqo567.jpg "/>
And then restart the test.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6F/DE/wKiom1WrndHDkAdZAADZvCEoQrQ168.jpg "title=" 2015-07-19_202535.png "alt=" Wkiom1wrndhdkadzaadzvceoqrq168.jpg "/>
DNS is correct
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6F/DA/wKioL1Wrn4ywYhKKAABAA77TLRU907.jpg "title=" 2015-07-19_202922.png "alt=" Wkiol1wrn4ywyhkkaabaa77tlru907.jpg "/>
is right.
This indicates that the wireless network configuration was successful
This article is from the "Supervisory Authority" blog, please be sure to keep this source http://shuoshuo234.blog.51cto.com/10531943/1676154
Linux Wireless Card driver installation