1. Software wireless-tools-29-5.1.1.el6.x86_64.rpm to be installed, which has been installed by default in centos6.4
2. Disable the NetworkManager service and start it. Then, run the following command on the terminal:
Chkconfig -- del NetworkManager # disable startup service NetworkManager stop # disable Service
3. Start the wireless network card
This article uses a wireless network environment named wlan0, SSID as "test", password as "12345678", and encryption method as an example.
ifconfig wlan0 up
4. Scan and filter out Wireless Network Information
iwlist wlan0 scan | grep test</span>
5. Write the configuration information of the wireless network to the configuration file.
wpa_passphrase test 12345678 >> /etc/wpa_supplicant/wpa_supplicant.conf
6. Establish a wireless connection
wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -B
7. Obtain the address
dhclient wlan0
Now you can connect to the wireless network on the Character Interface
Add to start:
1. First create a wlantool file under/etc/init. d/and write the following content:
#!/bin/bash# chkconfig: 2345 10 90# description: wlan startifconfig wlan0 upwpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf -Bdhclient wlan0
2. Add to startup:
chkconfig --add wlantool
Centos6.4 use wireless networks on the Character Interface