The man page should have all the details you need for iwconfig "man iwconfig" if you need specifics then just ask.
There isn't any way to create profiles but you could easily create a few scripts to do it - ie:
wlanwork.sh:
Code:
iwconfig wlan0 essid 123456
iwconfig wlan0 essid WORKAP
ifconfig wlan0 10.0.0.100
route del default > /dev/null 2>&1
route add default gw 10.0.0.1
wlanhome.sh:
Code:
iwconfig wlan0 essid 654321
iwconfig wlan0 essid HOMEAP
ifconfig wlan0 192.168.0.100
route del default > /dev/null 2>&1
route add default gw 192.168.0.1
Then just run the script for the network you are in.