LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1102|回复: 4

请教命令行下连接无线网络

[复制链接]
发表于 2008-7-29 22:38:52 | 显示全部楼层 |阅读模式
网卡能被识别
iwlist wlan0 scanning 显示我的路由器
wlan0     Scan completed :
          Cell 01 - Address: 00:14:BF:6B:87:EC
                    ESSID:"linksys"
                    Mode:Master
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=46/100  Signal level=-81 dBm  Noise level=-127 dBm
                    Encryption keyn
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:tsf=0000000006c7f17e


请问我该怎么连接呢?
谢谢
发表于 2008-7-30 16:27:13 | 显示全部楼层
关注~

“我是凑字数的”
回复 支持 反对

使用道具 举报

发表于 2008-8-4 13:55:23 | 显示全部楼层
iwconfig ?!
回复 支持 反对

使用道具 举报

发表于 2008-8-4 17:02:17 | 显示全部楼层
一下假设网络没有采用加密:
  1. ifconfig wlan0 up
  2. iwconfig wlan0 essid linksys #相比有线网络, 多了这个。
  3. ifconfig wlan0 192.168.1.113 #设置IP
  4. route add -net default gw 192.168.1.1 #设置网关
复制代码

iwconfig还可以使用WEP加密的无线网络。 不过好像不支持WAP的。
采用WEP 128bit加密的:
  1. iwconfig wlan0 key 0123-4567-89
  2. iwconfig wlan0 key open
  3. iwconfig wlan0 key on
复制代码
采用WEP 64bit加密的:
  1. iwconfig wlan0 key [1] 0123-4567-89 #[1] 是密钥索引, 通常是[1], 看看你的无线路由器就知道了。
  2. iwconfig wlan0 key open
  3. iwconfig wlan0 key on
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-8-4 23:46:08 | 显示全部楼层
推荐LZ使用WPA SUPPLICANT这个软件吧。。基本上所有的无线认证方式都支持了,包括EAP-TLS这种要求证书的都可以
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表