Introduction to CentOS-6.4 wireless Internet access command line configuration

Source: Internet
Author: User
CentOS-6.4 wireless internet command line configuration introduction, need a friend can look at CentOS WIFI to be connected to the ssid for "thm", the password is 12345678, authentication method for WPA2-PSK
1. check whether the Wireless NIC driver is installed
1 xxx # iwconfig if the wlan0 (or other name) wireless network card information is printed, it indicates that the wireless network card driver has been installed; otherwise, you must first install the wireless network card driver to continue.
2. configure/etc/sysconfig/network-scripts/ifcfg-wlan0
My configuration file content is:
1 DEVICE = wlan0
2 HWADDR = 9C: 4E: 36: 9A: 64: 10
3 TYPE = Wireless
4 UUID = f017bd9c-eebf-46fc-823c-7f76cc8d5abf
5 ONBOOT = no
6 NM_CONTROLLED = yes
7 BOOTPROTO = dhcp
8 ESSID = "thm" 3. installation tool wpa_supplicant
1 xxx # yum install wpa_supplicant4. configure/etc/wpa_supplicant/wpa_supplicant.conf and write the related ssid and password.
1 xxx # wpa_passphrase thm 12345678>/etc/wpa_supplicant/wpa_supplicant.conf my configuration file content is:
1 ctrl_interface =/var/run/wpa_supplicant
2 ctrl_interface_group = wheel
3
4 network = {
5 ssid = "thm"
6 # psk = "12345678"
7 psk = eabb3e1572789c41a1600051b1235e03c0787c88fc527f6597cd29cb5a7078225. run the wpa_supplicant process in the background.
1 xxx # wpa_supplicant-B-Dwext-iwlan0-c/etc/wpa_supplicant/wpa_supplicant.conf6. search for wireless networks
1 xxx # iwlist wlan0 scan | grep ESSID7. connect to the wireless network
1 xxx # iwconfig wlan0 essid "thm" 8. obtain the ip address through dhcp
1 xxx # dhclient wlan09. test network connectivity
1 xxx # ping www.baidu.com
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.