Okay, from how i understand it the baseband was upgraded in 2.2 so they are still working on an unlock? If so your best bet would be to find the 2.1 firmware, jailbreak and unlock, and then follow the instructions on upgrading and keeping the unlock. I'll post the link in a sec, and try to find out if 2.2 can be straight up unlocked.
http://iclarified.com/entry/index.php?enid=1880
Okay, so I'm going to assume that you have windows just because it's a more popular os. If so follow that link and all of it's steps. Now, supposedly it should work, but I did see a complaint on it.
Your best bet IMO is to use the search feature on this website, or even google the info, that you want to know.
This is another step by step method, but personally I would trust iclarified.
http://www.iphonedownloadblog.com/20...sing-quickpwn/