【IT168 专稿】TCP/IP网络并不关心无线网络中计算机的操作系统是什么,它仅仅负责从一个计算机的端口接受和发送比特和字节。只要为无线网络适配器找到合适的驱动程序,所有计算机(unix /Linux , Mac OS /windows)都可以使用无线网络。
目前无线网卡芯片市场主要由Intel,Broadcom,Atheros这三家统治,Acer-4520使用的就是Atheros无线网卡,无线标准为 802.11 b/g。该网卡实际上使用了Atheros 802.11b/g芯片(Vendor ID: 168c; Device ID: 0024)。Open Solaris中Atheros无线网卡驱动程序是ath。
最近在opensolaris.org网站上发布了能支持这款芯片的 ath驱动程序的0.6版本。不过 0.6版本不支持802.11n协议。
该无线网卡的驱动不包含在Solaris标准安装盘中,但是可以从Open Solaris笔记本社区(http://opensolaris.org/os/community/laptop/downloads/ )下载。
OpenSolaris上支持的无线网卡芯片包括:
Atheros AR5210/AR5211/AR5212无线网卡
Broadcom 43xx
Cisco Aironet 340/350 系列802.11b无线网卡
Intersil PrismII 802.11b
Intel PRO/Wireless 2100 (迅驰BMiniPCI)
Intel PRO/Wireless 2200/2915 (迅驰AG MiniPCI)
Intel PRO/Wireless 3945 (迅驰ABG MiniPCI)
Ralink RT2500
Realtek RTL8180L 802.11b
ZyDAS ZD1211
Atheros AR5210/AR5211/AR5212无线网卡 目前最新的版本是0.6,文件名: ath-0.6-pkg.tar.gz。
1、安装驱动
下载安装过程如下:
#wget http://opensolaris.org/os/community/laptop/downloads/ath-0.6-pkg.tar.gz
#guzip
# pkgadd -d ./SUNWatheros SUNWatheros
![]() |
| 无线网卡安装成功界面 |
2、连接无线网络
#ifconfig ath0 plumb
#ifconfig ath0 dhcp
上面的“ifconfig ath0 dhcp”为连接当前可用的未加密的无线网络,并自动获取IP地址。如果要连接加密的无线网络,需要使用OpenSolaris提供的wificonfig工具。
下载安装:
# wget http://www.opensolaris.org/os/community/laptop/downloads/wificonfig-0.2-bin.tar.gz
# gzip -dc wificonfig-0.2-bin.tar.gz | tar xvf -
# cp wificonfig /usr/bin
查看当前可用无线网络:
通过如下命令可以查看当前环境可用的无线网络。
# wificonfig -i ath0 scan
自动连接到没有加密的无线网络,使用命令:
# wificonfig -i ath0 autoconf
连接到加密的无线网络,使用命令:
# wificonfig -i ath0 createprofile essid=mywifi encryption=WEP wepkey1=12345
# wificonfig -i ath0 connect mywifi
其中分别包含了网络名字(essid),加密类型(wep),WEP Key(加密密钥)
查看连接到加密的无线网络的状态,使用命令:
# wificonfig -i ath0 showstatus
3、使用dladm工具
Open Solaris中无线网卡的配置工具包括wificonfig和dladm。Wificonfig是Solaris中最早的无线网卡命令行配置工具,随着dladm和nwam的逐渐完善,最终将被dladm取代。
扫描可用的无线网络:
# dladm scan-wifi
LINK ESSID BSSID/IBSSID SEC STRENGTH MODE SPEED
ath0 ap6-1 0:f:24:19:9:70 none very weak g 54Mb
ath0 dlink 0:1b:11:ed:45:f2 wpa good b 11Mb
其中LINK表示:无线网卡接口
ESSID 表示:可用的无线网络名称
SEC 表示:网络安全模式
STRENGTH:信号强度
MODE 表示:协议标准
SPEED表示 :支持的最大传输速率
如果要连接的网络不使用任何加密,以上面的ap6-1为例
# dladm connect-wifi -e ap6-1
如果要连接的无线网络使用的是wpa加密方式
# dladm create-secobj -c wpa wpakey
provide value for 'wpakey': **********
confirm value for 'wpakey': **********
# dladm connect-wifi -e dlink -k wpakey
连接成功后,获取DHCP地址
# ifconfig ath0 dhcp
如果要连接的无线网络使用WEP加密方式。首先要创建是wep key,再在“dladm connect-wifi”中用“-k”选项指明要用的key。缺省情况下使用的都是第一个wep key。
# dladm create-secobj -c wep mykey
provide value for 'mykey': **********
confirm value for 'mykey': **********
# dladm connect-wifi -e wifi_with_wep -k mykey
到此为止:为Solaris 工作站配置无线网络的步骤全部介绍完了,参考文献,Wificonfig 文档:
http://opensolaris.org/os/community/laptop/wireless/wificonfig/
http://opensolaris.org/os/community/laptop/wireless/wificonfig/wificonfig.1m.txt
Open Solaris笔记本支持的无线网卡驱动下载地址:
http://opensolaris.org/os/community/laptop/wireless/
