OpenSolaris 2008.11 System Administration Guide
OpenSolaris 2008.11 System Administration Guide: How to Manually Configure the System's Wireless Network Settings

Table of Contents

Normally, the NWAM service properly configures your network connection. This procedure shows how to configure the connection from the command line if the NWAM service does not properly configure your wireless network connection.

  1. Start a privileged shell.

    user@opensolaris:-$ pfexec bash
    #
    

    In this example, the bash shell is selected. You can choose to use any shell with the pfexec command. If you support multiple versions of the SolarisTM OS, use the standard su – root command. The su command works on all Solaris versions.

  2. Start the default network service and stop the NWAM service.
    # svcadm enable network/physical:default
    # svcadm disable network/physical:nwam
    
  3. Identify your system's wireless network interface.
    Suppose that your system has separate network interfaces for wired and wireless networking.
    # dladm show-phys
    LINK     MEDIA        STATE     SPEED     DUPLEX     DEVICE
    bge0     Ethernet     up        1000      full       bge0
    ath0     Wifi         up        1000      full       ath0
    

    The command identifies the media type of network interfaces in the system. In this output, the interface for wireless networks is ath0.
    Note - You can specify the system to display only wireless network interfaces by using the syntax dladm show-wifi.

  4. Configure the wireless network's interface with a valid IP address.
    # ifconfig ath0 plumb 192.168.10.20/24 up
    # ifconfig ath0
    ath0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 index 4
            inet 192.168.10.20 netmask ffffff00 broadcast 192.168.10.255
            ether 0:b:6b:4e:8f:18
    
  5. Check for available networks.
    # dladm scan-wifi
    LINK     ESSID     BSSID/IBSSID          SEC      STRENGTH      MODE     SPEED
    ath0     net1      00:0e:38:49:01:d0     none     good          g        54Mb
    ath0     net2      00:0e:38:49:02:f0     none     very weak     g        54Mb
    ath0     net3      00:0d:ed:a5:47:e0     none     very good     g        54Mb
    
  6. Connect to one of the wireless networks that was listed in Step 5.
    # dladm connect-wifi -e net3
    # dladm show-wifi
    LINK       STATUS        ESSID     SEC     STRENGTH   MODE   SPEED
    ath0       connected     net3      none    very good  g      54Mb
    

    The -e option indicates that you want to connect to the wireless network by using the extended service set ID (ESSID). The specific network to which you are connecting has the ESSID net3.