Solaris OpenSolaris
Judy Chen's Blog
« 在MacBook Pro上安装Solar... | Main | 什么是802.11n »
星期二 九月 11, 2007
Solaris无线局域网(WLAN)
无线局域网(Wireless Local Area Network)指的是利用无线射频(RF)技术组建局域网。它包括红外(IrDA)、蓝牙(BlueTooth)、IEEE802.11等技术。 IEEE802.11也常常被称为Wi-Fi(Wireless Fidelity)。本文将主要介绍Solaris对IEEE802.11的支持。

相比Solaris 10而言。OpenSolaris的一个新增特性就是添加了对WLAN的支持。这包括:

1. IEEE802.11无线网卡及驱动程序

OpenSolaris上支持的无线网卡芯片包括:

目前为止这些驱动中,除了Broadcom和ZyDAS仅发布在opensolaris.org的laptop社区中,其他驱动程序均包含在 OpenSolaris中。这部分驱动程序由于使用了GLDv3架构而仅能运行在OpenSolaris上。对于Solaris 10的用户来说,可以到opensolaris.org的laptop社区中下载这些驱动的Solaris 10版本。

另外,要判断无线网卡芯片的类型,对于PCI/MiniPCI/PC-Card而言,只需运行 “/usr/X11/bin/scanpci”即可。

1.1 Atheros

驱动程序 : ath
版本 : 1.3
相关网页 : http://www.opensolaris.org/os/community/laptop/wireless/ath/
模式 : BSS, IBSS
安全 : WEP, WPA/WPA2-PSK, TKIP/CCMP/AES
协议 : 802.11b, 802.11g, 802.11a depending on hardware
硬件平台 :
x86/x64
其他特性 : N/A

1.2 Broadcom 43xx

驱动程序 : bcmndis
版本 : 1.1
相关网页 : http://www.opensolaris.org/os/community/laptop/wireless/ndis/
模式 : BSS, IBSS
安全 : WEP
协议 : 802.11b, 802.11g, 802.11a depending on hardware
硬件平台 : x86/x64
其他特性 : N/A

1.3  Cisco Aironet 340/350

驱动程序 : pcan
版本 : 1.0
相关网页 : http://www.opensolaris.org/os/community/laptop/wireless/pcan/
模式 : BSS
安全 : WEP
协议 : 802.11b
硬件平台 : x86/x64/sparc
其他特性 : N/A

1.4 Intersil PrismII

驱动程序 : pcwl
版本 : 1.0
相关网页 : http://www.opensolaris.org/os/community/laptop/wireless/pcwl/
模式 : BSS, IBSS
安全 : WEP
协议 : 802.11b
硬件平台 : x86/x64/sparc
其他特性 : N/A

1.5 Intel PRO/Wireless 2100 802.11b

驱动程序 : ipw
版本 : 1.0
相关网页 : http://www.opensolaris.org/os/community/laptop/wireless/ipw/
模式 : BSS
安全 : WEP
协议 : 802.11b
硬件平台 : x86/x64
其他特性 : N/A

1.6 Intel PRO/Wireless 2200 802.11g / 2915 802.11ag

驱动程序 : iwi
版本 : 1.0
相关网页 : http://www.opensolaris.org/os/community/laptop/wireless/iwi/
模式 : BSS
安全 : WEP
协议 : 802.11b, 802.11g, 802.11a depending on hardware
硬件平台 : x86/x64
其他特性 : N/A

1.7 Intel PRO/Wireless 3945 802.11abg

驱动程序 : wpi
版本 : 1.0
相关网页 : http://www.opensolaris.org/os/community/laptop/wireless/wpi/
模式 : BSS
安全 : WEP
协议 : 802.11b, 802.11g, 802.11a depending on hardware
硬件平台 : x86/x64
其他特性 : N/A

1.8 Ralink RT2500

驱动程序 : ral
版本 : 1.0
相关网页 : http://www.opensolaris.org/os/community/laptop/wireless/ral/
模式 : BSS
安全 : WEP
协议 : 802.11b, 802.11g
硬件平台 : x86/x64
其他特性 : N/A

1.9 Ralink RT2500 USB 802.11 b/g

驱动程序 : ural
版本 : 0.1
相关网页 : http://opensolaris.org/os/community/laptop/wireless/ural/
模式 : BSS
安全 : WEP, WPA-PSK, TKIP
协议 : 802.11b, 802.11g
硬件平台 : x86/x64
其他特性 : N/A

1.10 Ralink RT2501/2601 USB 802.11 a/b/g

驱动程序 : rum
版本 : 0.1
相关网页 : http://opensolaris.org/os/community/laptop/wireless/rum/
模式 : BSS
安全 : WEP,WPA-PSK, TKIP
协议 : 802.11b, 802.11g
硬件平台 : x86/x64
其他特性 : N/A

1.11 Realtek RTL8180L 802.11b

驱动程序 : rtw
版本 : 1.0
相关网页 : http://www.opensolaris.org/os/community/laptop/wireless/rtw/
模式 : BSS
安全 : WEP
协议 : 802.11b
硬件平台 : x86/x64
其他特性 : N/A

1.12 ZyDAS ZD1211 (USB设备)

驱动程序 : zyd
版本 : 1.0
相关网页 : http://www.opensolaris.org/os/community/laptop/wireless/zyd/
模式 : BSS
安全 : N/A
协议 : 802.11b, 802.11g, 802.11a depending on hardware
其他特性 : N/A

2. 配置工具

2.1 命令行配置工具

OpenSolaris中无线网卡的配置工具包括wificonfig和dladm。Wificonfig是Solaris中最早的无线网卡命令行配置工具,随着dladm和nwam的逐渐完善,最终将被dladm取代。wificonfig和dladm功能对比如下。

Features
wificonfig
dladm
Properties
channel
r/w
r
speed
r/w
r/w
powermode
r/w
r/w
radio
r/w
r/w
essid
r/w
r/w
bssid
r
r
Authentication mode
open/shared_key
open/shared_key
Security
none/wep
none/wep/wpa
Profile
Yes
No

本文将以dladm为例,简单说明怎样配置无线网卡。

扫描可用的无线网络< br>
# dladm scan-wifi
LINK       ESSID               BSSID/IBSSID      SEC    STRENGTH   MODE   SPEED
ath0       ap7-2               0:f:24:19:9:70    none   very weak  g      54Mb
ath0       dlink               0:1b:11:ed:45:f2  wpa    good       g      54Mb
其中,LINK:无线网卡接口
ESSID:可用的无线网络名称
SEC:网络安全模式
STRENGTH:信号��度
MODE:协议标准
SPEED:支持���最大传输速率< br>

建立连接
# ifconfig ath0 plumb

如果要连接的网络不使用任何加密,以上面的ap7-2为例
# dladm connect-wifi -e ap7-2

如果要连接的无线网络使用WEP加密方式。首先要创建是wep key,再在“dladm connect-wifi”中用“-k”选项指明要用的key。需要注意的是,dladm不能设置wepkey index,缺省情况下使用的都是第一个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

如果要连接的无线网络使用的是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

打印当前连接状态
# dladm show-wifi
LINK       STATUS            ESSID               SEC    STRENGTH   MODE   SPEED
ath0       connected         dlink               wep    good       g      36Mb

2.2 图形化配置工具

图形化配置工具包括
  • 集成在OpenSolaris中的 /usr/bin/network-admin
  • 发布在opensolaris.org的laptop社区中的 inetmenu
本质上这两个工具都基于wificonfig提供了图形化的用户配置界面,个人推荐使用 inetmenu。其安装过程如下。
# wget http://www.opensolaris.org/os/community/laptop/downloads/inetmenu-2.3.2.pkg.gz
# gunzip inetmenu-2.3.2.pkg.gz
# pkgadd -d ./inetmenu-2.3.2.pkg

 

3 其他链接


Posted at 09:48下午 九月 11, 2007 by judy in Wireless  |  评论[1]

评论:

请问支持 WPA2 吗?怎样连接?我使用 dladm connect-wifi 总是连接不上。

发表于 Yandong Yao 在 2007年11月15日, 08:49 下午 CST #

发表一条评论:
  • HTML语法: 禁用