Joining a Hidden WPA2 Secured Wireless Network Using OpenSolaris 2008.11

Couple days ago I setup my new wireless router (hidden and secured by WPA2). The problem I had was that OpenSolaris 2008.11 was not able to join it. It offers to specify a network using the NWAM GUI, but strangely not the password. However there is a way, let's use dladm command.

 First you need to setup a password and then you may join the network using this password.

 # pfexec dladm create-secobj -c wpa private_key1
 # pfexec dladm connect-wifi -k private_key1 -e private_wifi iwk0

Where private_key1 is the key object (you'll be interactively asked to provide the password), private_wifi is the name of my router (ESSID), iwk0 is my wireless interface (like bge0 for ethernet). Note that the driver (iwk in my case) must support WPA2 otherwise this will not work.

Once the connect_wifi command is started the NWAM kicks in and network is configured and can be used later automatically, without typing the above commands ever again.

Worth mentioning are also show-wifi, disconnect-wifi and delete-secobj sub-commands of the dladm. For a complete reference type man dladm.

Comments:

Thanks, Lubomir for posting this. I needed this info. Why make this so hard for a new user? After all, who's using WEP or unsecured wifi these days? Non-broadcasted, WPA or WPA2 is the most secure way to go. I'm surprised Open Solaris doesn't make this easier, given it's almost the first thing a new user of any OS is likely going to do.

Posted by Yoon on March 14, 2009 at 12:00 AM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Lubomir Petrik

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today