Centos6.4 use wireless networks on the Character Interface

Source: Internet
Author: User

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

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.