Centos6.4 wireless network in the character interface, centos6.4 Wireless Network
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
How to connect to the Internet on the centos character Interface
The character interface comes with a setup tool. You can set the ip address by typing this command.
If not, edit/etc/sysconfig/network-scripts/ifcfg-eth0 on your own.
As for dial-up, make sure you have installed the rp-pppoe package, and then enter pppoe-setup as the root user to set your account password and configure pppoe information and enter pppoe-content
How to set up a wireless network for centos 64
In the graphical interface, you can find network setting in system, which can configure Nic information, including wlan.