好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

linux无线网卡命令配置 - Linux操作系统:Ubuntu_Ce


linux无线网卡命令配置

 

工作的大体思路如下:

 

用iwconfig开启无线网卡的电源,并查找区域内的无线网络

连接到相应的无线网络  www.2cto.com  

通过ifconfig启用无线网卡,并指定或获取IP

 

#打开无线网卡电源iwconfig wlan0 txpower on   

#列出区域内的无线网络 iwlist wlan0 scan   
 

#假设要连接到网络MyHome(即essid为MyHome的网络),那么输入命令 

iwconfig wlan0 essid "MyHome"   

  www.2cto.com  

#如果网络是 加密 的,密码是0123456789,那么就输入命令 

iwconfig wlan0 essid "MyHome" key 0123-4567-89   

#如果正常的话,输入下面命令就可以看到连接正常的各项参数了。 
 

iwconfig wlan0   #启用无线网卡的网络 ifconfig wlan0 up   

#如果是用DHCP获取IP的,那么用dhclient或dhcpcd获取
 

#现在无线网卡应该可以正常使用了
 

查看更多关于linux无线网卡命令配置 - Linux操作系统:Ubuntu_Ce的详细内容...

  阅读:59次