ubuntu网络设置详解
rrier:0
collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) 只要看见eth0就说明网卡设备设别出来了,eth0就是无线网卡设备的名字了,至于其他,暂不研究. 2.确认无线网卡的型号 $ lspci ...... 00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03) ...... 上面的Intel Corporation 82567LM Gigabit Network Connection (rev 03)就是无线网卡芯片 的型号了.
3.打开无线网卡电源 $ sudo iwconfig eth0 txpower on 4.检索区域内的无线网络 $ iwlist eth0 scan eth0 Scan completed : Cell 01 - Address: 00:1D:0F:4D:8B:E4 ESSID:"TP-LINK" Mode:Master Frequency:2.437 GHz (Channel 6) Quality=28/70 Signal level=-67 dBm Noise level=-95 dBm Encryption key:off Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s 48 Mb/s; 54 Mb/s Extra:bcn_int=100 Extra:ath_ie=dd0900037f01010008ff7f Cell 02 - Address: 00:21:27:3A:37:0A ESSID:"TP-LINK" Mode:Master Frequency:2.437 GHz (Channel 6) Quality=12/70 Signal level=-83 dBm Noise level=-95 dBm Encryption key:on Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s 12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s 48 Mb/s; 54 Mb/s Extra:bcn_int=100 Extra:ath_ie=dd0900037f01010008ff7f Cell 03 - Address: 00:18:39:A6:98:E2 ESSID:"linksys" Mode:Master Frequency:2.437 GHz (Channel 6) Quality=3/70 Signal level=-92 dBm Noise level=-95 dBm Encryption key:on 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:bcn_int=100 IE: WPA Version 1 Group Cipher : CCMP Pairwise Ciphers (1) : CCMP Authentication Suites (1) : PSK 我附近有三个无线AP,ESSID所标记的就是无线AP的名字了,其中有两个无线AP都叫做 TP-LINK,另一个叫 linksys,记下这几个无线AP的名字,一会得挨个试. 5.连接无线AP $ sudo iwconfig ath0 essid "linksys" $ ifconfig 不管连上还是连不上都不会给出任何提示,到底连没连上还需要使用命令查看一下才行 $ iwconfig eth0 eth0 IEEE 802.11g ESSID:"linksys" Nickname:"" Mode:Managed Frequency:2.462 GHz Access Point: Not-Associated Bit Rate:0 kb/s Tx-Power:18 dBm Sensitivity=1/1 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=0/70 Signal level=-95 dBm Noise level=-95 dBm Rx invalid nwid:8172 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 上面的黑体字的部分说明没有连接成功,没关系再换一个就是了. $ sudo iwconfig eth0 essid "TP-LINK" $ ifconfig 执行后再查看一下接入状态 $ iwconfig eth0 eth0 IEEE 802.11g ESSID:"TP-LINK" Nickname:"" Mode:Managed Frequency:2.437 GHz Access Point: 00:1D:0F:4D:8B:E4 Bit Rate:36 Mb/s Tx-Power:18 dBm Sensitivity=1/1 Retry:off |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |