how to connect to wireless fbsd8.0

I have an atheros wifi card in my laptop (it shows up in ifconfig as ath0) and I need help connecting it wirelessly. In ubuntu it showed up as wlan0 and i used
Code:
iwconfig wlan0 essid (my network name) key (my wep)
In freebsd I'm aware I need to use ifconfig for this too.
what is the syntax for connecting to a network, say, "library" with the key "1234567890"?
I tried
Code:
ifconfig ath0 ssid library wepkey 1234567890
to no avail.
I read somewhere i need to use wlan0 instead of ath0, is this true?
 
ok i added the lines to /boot/loader.conf and /etc/rc.d and rebooted. now wlan0 says its connected to my network and ath0 is associated. wlan0 just won't associate... what am i doing wrong? also, /boot/loader.conf didnt exist until i made it with vi. is that normal?
 
Don't know if that is normal but that is how it was for me.
What exactally does your /etc/rc.conf and /boot/loader.conf look like?
 
Back
Top