CentOS6 to enable the Wireless connection network (automatic connection setting) after the installation is minimized

Source: Internet
Author: User

I installed CentOS6.3 on a netbook today to help with the data,
But wireless is required, and CentOS is minimized for installation.
Wireless kits are required to link to wireless.

Yum Install-y Wireless-tools
After the installation is complete, there are command-line tools such as IWCONFIG,IWLIST,IW.

Start the wireless card first, remember to turn on the wireless switch, and then start the wireless network device
You can turn on the power card by following the command

Iwconfig Wlan0 Txpower on
First we need to find the wireless network card corresponding to the device name, through the Ifconfig
You can get the name of the network excuse, the wireless device name is generally like wlan0.
You can also find it by command in the West:


find/sys/class/net/*/-maxdepth 1 | \
grep Wireless | \
Sed-e ' [email protected]/sys/class/net/@@ '-e ' [Email protected]/[email protected]@ '
Then we scan the wireless network.

Iwlist wlan0 Scanning
command will be output for all wireless networks that have a signal, we find the ESSID of our network
My is a long, then connect, have the password of my key to develop the password.

Iwconfig wlan0 Essid Long Key "Yourkey"
Run the command to see if the Essid is configured successfully

Iwconfig Wlan0
Enable device

Ifup Wlan0
assigning IP through DHCP

Dhclient Wlan0
Fixed IP can also be set in the network configuration file

Set up auto-connect wireless network on boot
With the functionality that Iwconfig can implement, we can write
Network configuration file, wlan0 configuration file in
/etc/sysconfig/network-scripts/ifcfg-wlan0

We add the following content
#开即启动
Onboot=yes

#固定IP
ipaddr=192.168.1.5
Prefix=24
gateway=192.168.1.1

#无线连接设置
Essid=long
key=123455

CentOS6 to enable the Wireless connection network (automatic connection setting) after the installation is minimized

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.