I usuually do
iwconfig wlan0 essid ESSID
iwconfig lwan0 ap MAC
iwconfig wlan0 key KEY
ESSID is the name of the wireless network
MAC is ap's mac address
KEY is the wep or wpa encrypted key, any of key index 1-4 will work.
After dhclient wlan0, you should see so and so bound to an internal ip address to know that it worked.
Last edited by trist007; 08-21-2008 at 02:21 PM.