DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd August 2012
bobmarss bobmarss is offline
New User
 
Join Date: Aug 2012
Posts: 5
Default Newbie - need help configuring wireless connection...

Hi,

I am really embarrassed to have to ask help on this one but I just can't seem to figure it out.

I am simply trying to connect my OpenBSD 5.1 box to a WAP.

I have tried 3 different network devices:
1. PCMCIA Linksys WPC4G ver 3.1
2. Alfa AWUS036NH
3. Alfa AWUS036H (urtw0)

OpenBSD 5.1 seems to recognize all three of these cards right out of the box. I successfully use the following command with all three:

----------------------------

$ sudo ifconfig nwdevice scan

-----------------------------

After reading the ifconfig man page, I have tried using the following command to access my WAP:

$ sudo ifconfig urtw0 nwid Jupiter chan 7 bssid 00:0f:66:00:7c:29 wpakey XXX

The result:

------------------------

ifconfig urtw0

urtw0: flags=8a43<UP,BROADCAST, RUNNING, ALLMULTI,SIMPLEX,MULTICAST> mtu 1500

lladdr 00:c0:ca:50:79:21

priority: 4

groups: wlan

media: IEEE802.11 autoselect (DS1 mode 11g)

status: active

ieee80211: nwid Jupiter chan 7 bssid 00.0f:66:00:7c:29 100dB wpakey (not displayed) wpaprotos wpa1.wpa2. wpaakms psk wpaciphers tkep, ccmp wpagroupcipher tkip 100dBm

inet6 fe80::2c0:caff:fe50:7921%urtw0 prefixlen 64 scopeid 0x4


------------------------

The AWUS036H(urtw0) seems to be the most promising of the the three.

Unfortunately, I am not supplied with an IP and I do not seem to have an actual connection. Pinging google yields nothing.

Any assistance would be much appreciated.

Thank you,
Bob
Reply With Quote
  #2   (View Single Post)  
Old 2nd August 2012
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Hi bobmarss, and welcome to daemonforums.org!

You are half-way there. You've established a link-level connection to the WAP, but to get an IP address you'll probably want to use dhclient(9). This uses the DHCP protocol to attempt to get an IP address from the AP, etc. Usually the AP is set up to support this.
Reply With Quote
  #3   (View Single Post)  
Old 2nd August 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by bobmarss View Post
Hi,
Hello, and welcome!
Quote:
I am really embarrassed to have to ask help on this one but I just can't seem to figure it out.
There is nothing to be embarrassed about. We've all had technical puzzles that were highly complex (for us, anyway), as well as a few "facepalm" moments now and again. It comes with the territory.
Code:
$ sudo ifconfig urtw0 nwid Jupiter  chan 7 bssid 00:0f:66:00:7c:29 wpakey XXX
Not everyone needs to specify channel or bssid. But what's important is what I highlight below:
Code:
urtw0: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
 lladdr 00:c0:ca:50:79:21
 priority: 4
groups: wlan
media: IEEE802.11 autoselect (DS1 mode 11g)
status: active

ieee80211: nwid Jupiter chan 7 bssid 00.0f:66:00:7c:29 100dB wpakey (not displayed) wpaprotos wpa1.wpa2. wpaakms psk wpaciphers tkep, ccmp wpagroupcipher tkip 100dBm
inet6 fe80::2c0:caff:fe50:7921%urtw0 prefixlen 64 scopeid 0x4
Quote:
Unfortunately, I am not supplied with an IP and I do not seem to have an actual connection.
The "active" status means that there is a recognized Ethernet connection. You're on the right channel, connected to the right Access Point, with a recognized encryption key.

From what you've posted, it appears you just haven't yet requested an IP address. The protocol to do this is the Dynamic Host Configuration Protocol (DHCP). On OpenBSD, you can do this manually with the dhclient(8) program, simply: # dhclient urtw0 and that might do the trick.

You can also create an /etc/hostname.urtw0 file with "dhcp" in it, as described in the hostname.if(5) man page. The hostname.* files are used by the netstart(8) program, called by rc(8) during boot.
Reply With Quote
  #4   (View Single Post)  
Old 2nd August 2012
bobmarss bobmarss is offline
New User
 
Join Date: Aug 2012
Posts: 5
Default

IDOP and Jiggimi, that did the trick! I can't thank you both enough!!

Sincerely,
Bob
Reply With Quote
  #5   (View Single Post)  
Old 3rd August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Default

Congratulations bobmarss !!!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD 4.5 and wireless connection sd1965 OpenBSD Installation and Upgrading 5 17th July 2011 02:57 AM
Working dial-up connection - No Client Connection vigol FreeBSD General 5 22nd November 2009 10:59 PM
Wireless Network Loses Connection JMJ_coder NetBSD General 5 17th February 2009 09:14 PM
Configuring a wireless access point Serge FreeBSD General 6 6th June 2008 04:07 PM
KDE app for easy Wireless connection coppermine FreeBSD Ports and Packages 4 17th May 2008 07:33 PM


All times are GMT. The time now is 10:26 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick