网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > Linux
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 49.87.50.242
Old 2015-07-20, 08:12 AM
Kade Kade is offline
初级会员
 
Join Date: 2007-06-24
Posts: 2
Kade 现在声名狼藉
Default CentOS-6.4无线上网命令行配置

待连接的WIFI的ssid为“thm”,密码为12345678,认证方式为WPA2-PSK

1. 检查无线网卡驱动是否安装
1 xxx#iwconfig

若打印wlan0(或其他名字)的无线网卡信息,则表明无线网卡驱动已经安装,否则要先安装无线网卡驱动方能继续。

2. 配置/etc/sysconfig/network-scripts/ifcfg-wlan0

我的配置文件内容为:
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. 安装工具wpa_supplicant
1 xxx#yum install wpa_supplicant

4. 配置/etc/wpa_supplicant/wpa_supplicant.conf,写入相关ssid和对应的密码
1 xxx#wpa_passphrase thm 12345678 >> /etc/wpa_supplicant/wpa_supplicant.conf

我的配置文件内容为:
1 ctrl_interface=/var/run/wpa_supplicant
2 ctrl_interface_group=wheel
3
4 network={
5 ssid="thm"
6 #psk="12345678"
7 psk=eabb3e1572789c41a1600051b1235e03c0787c88fc527f6597cd29cb5a707822

5. 后台运行wpa_supplicant进程
1 xxx#wpa_supplicant -B -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

6. 搜索无线网络
1 xxx#iwlist wlan0 scan | grep ESSID

7. 连接无线网络
1 xxx#iwconfig wlan0 essid "thm"

8. dhcp方式获取ip
1 xxx#dhclient wlan0

9. 测试网络是否联通
1 xxx#ping www.baidu.com
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 6.4安装配置LAMP服务器(Apache+PHP5+MySQL) Jackson Linux 0 2015-07-04 06:51 PM
Centos 安装笔记 Kaelyn Linux 0 2015-07-02 12:00 PM
Centos 使用wifi Kaelyn Linux 0 2015-07-02 11:58 AM
centos 7 u盘安装 Aditya Linux 0 2015-06-28 12:18 PM
centos 6.3安装问题总结 topvip Linux 0 2014-03-04 07:38 AM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 10:46 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.