Today's Page Hits: 243
This page validates as XHTML 1.0, and will look much better in a browser that supports web standards, but it is accessible to any browser or Internet device. It was created using techniques detailed at glish.com/css/.
WiFi (WPA) with Solaris Express on my Thinkpad laptop

This monday I went to http://www.sun.com/software/solaris/solaris-express/get.jsp to get a free copy of Solaris Express Developer Edition (SXDE) 9/07 nv70b. No postage, no handling, no nothing. I got it yesterday and installed it over my old Solaris 10 partition (after backing my data up). It installed beautifully, except for Wifi, which took additional work today. After installing SXDE, I installed some more software from the regular Solaris 10 "Software Companion" DVD (such as my favorite editor, vim/gvim). I'm writing this blog entry on SXDE now.
Anyway, to get WPA to work, the key is to use the dladm(1M) command. SXDE has a popup window with a list of detected wifi networks, but it didn't work for me—the WPA PSK key was rejected after several tries. I also have to configure the IP address and route by hand, as DHCP doesn't seem to work with wifi, at least for me. But I'm happy WPA wireless works at all--I just put this stuff in a shell script and click on it when I need to fire wireless up. Anyhoo, here's a transcript of what I did to start wifi. There's more commands than needed because I include diagnostics. Basically, all you need is the dladm connect-wifi command. The names/numbers have been changed below to protect the innocent (me).
# dladm create-secobj -c wpa psk provide value for 'psk': ************************************* confirm value for 'psk': ************************************* # ifconfig ath0 plumb # dladm connect-wifi -e Molly Wireless -k psk ath0 # dladm show-wifi # ifconfig ath0 192.168.200.123/24 up # route add default 192.168.200.1 add net default: gateway 192.168.200.1 # ping 192.168.200.1 192.168.200.1 is alive # ifconfig ath0 ath0: flags=201000843 |
Posted at 11:31PM Oct 12, 2007 by DanX in Solaris | Comments[2]
Did you try 'svcadm enable nwam' ?
Posted by Dick Davies on October 13, 2007 at 10:18 AM PDT #
nwam was enabled to start with--that's why I got those annoying popup boxes listing the wifi networks.
I disabled nwam because it didn't work--it didn't take the WPA PSK passphrase, and I tried several times, so it wasn't a typo.
However, using dladm worked.
Posted by Dan on October 13, 2007 at 12:03 PM PDT #