CentOS命令行无线上网
2016-03-04 11:30
597 查看
(1)首先关闭开发板的有线网卡
[root@FriendlyARM /]# ifconfig eth0 down
(2)加载USB WiFi无线网卡
[root@FriendlyARM /]# ifconfig wlan0 up
(3)扫描可用的无线网络
[root@FriendlyARM /]# iwlist scanning | grep ESSID
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
wmaster0 Interface doesn't support scanning.
ESSID:"FRIENDLY-ARM"
ESSID:"NETGEAR"
ESSID:"TP-LINK"
(4)选择要连接的无线网络
[root@FriendlyARM /]# iwconfig wlan0 essid "FRIENDLY-ARM"
(5)输入该网络的安全密码
[root@FriendlyARM /]# iwconfig wlan0 key s:12345
(6)连接到指定的AP(无线路由)
[root@FriendlyARM /]# iwconfig wlan0 ap auto
(7)设置无线网卡的IP地址
[root@FriendlyARM /]# ifconfig wlan0 192.168.1.120
(8)使用 ping 命令检测无线网连通状况
[root@FriendlyARM /]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=42.804 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=5.020 ms
[root@FriendlyARM /]# ifconfig eth0 down
(2)加载USB WiFi无线网卡
[root@FriendlyARM /]# ifconfig wlan0 up
(3)扫描可用的无线网络
[root@FriendlyARM /]# iwlist scanning | grep ESSID
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
wmaster0 Interface doesn't support scanning.
ESSID:"FRIENDLY-ARM"
ESSID:"NETGEAR"
ESSID:"TP-LINK"
(4)选择要连接的无线网络
[root@FriendlyARM /]# iwconfig wlan0 essid "FRIENDLY-ARM"
(5)输入该网络的安全密码
[root@FriendlyARM /]# iwconfig wlan0 key s:12345
(6)连接到指定的AP(无线路由)
[root@FriendlyARM /]# iwconfig wlan0 ap auto
(7)设置无线网卡的IP地址
[root@FriendlyARM /]# ifconfig wlan0 192.168.1.120
(8)使用 ping 命令检测无线网连通状况
[root@FriendlyARM /]# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
64 bytes from 192.168.1.1: seq=0 ttl=64 time=42.804 ms
64 bytes from 192.168.1.1: seq=1 ttl=64 time=5.020 ms
相关文章推荐
- SecureCRT配置前--Linux网卡设置
- *LINUX基础命令使用
- centos profile
- linux更新系统之后,删除多余的开机启动项
- Linux中使用mdadm命令来操作RAID的基本教程
- Linux查看内存情况
- JNI开发第三步:20130801_NDK_JNI的.so文件开发-安卓访问LINUX驱动
- 20130801 linux添加驱动 在dev下可以看到
- [国嵌攻略][100][嵌入式Linux内核制作]
- linux mysql 安装和配置
- linux rz上传与sz下载
- centos彻底删除mysql以及查看MySQL的安装路径
- Centos服务器下禅道管理软件安装与部署
- Java中通过jsch来连接远程服务器执行linux命令
- linux深入分析进程调度
- Linux 常用命令
- Linux wget安装详解
- linux 下定时器timer的使用
- 解决linux挂载U盘时:Not authorized to perform operation
- centos6升级 python到2.7