i am trying to get connected to the internet on my laptop running OpenBSD.

i believe the network card is atheros 802.11b/g

also my router has a username and WPA-PSK passkey to connect to the internet.

I've been looking at the documentation but honestly i am really lost. Could anyone help point me in the right direction?

I am trying to do it via the shell (x window not installed)

thanks

link|improve this question
What version of OpenBSD are you running? – Chris S Mar 17 '11 at 17:41
feedback

closed as off topic by sysadmin1138 Jan 2 at 12:49

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

2 Answers

ifconfig ath0 nwid [my_wifi_network] wpakey [wpa_passphrase]
dhclient ath0

Should be enough for a simple network. WPA doesn't have usernames, just passwords, and it's not the same password that you use to login to the router's configuration.

link|improve this answer
just tried that and got "ifconfig: wpakey: bad value" The key i am using is the same one i use to connect from my windows pc 8 characters and alphanumeric – Simon Mar 15 '11 at 19:46
@Simon, if there are special characters in the passphrase it needs to be enclosed with quotes. – Chris S Mar 15 '11 at 19:55
the passphrase is just 8 uppercase letters – Simon Mar 15 '11 at 19:58
enclosing them in either single or double quotes gets the same output – Simon Mar 15 '11 at 20:09
feedback

You should have the following file /etc/hostname.ath0 as per http://www.openbsd.org/cgi-bin/man.cgi?query=ath&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html

From there you should put the following line.

nwid [myssid] wpakey [wpapassword]

link|improve this answer
i edited the file by doing "vi /etc/hostname.ath0" I put that in and got the "wpakey: bad value" output – Simon Mar 15 '11 at 20:37
Are you using the latest OpenBSD version? You might have to use the older config... nwid myssid wpapsk 'wpa-psk [myssid] [wpapassword]' it might also be that the password has to be in hexadecimal as per undeadly.org/cgi?action=article&sid=20080416195151 – Alex Mar 16 '11 at 14:42
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.