Yet another Need Help with Internet Thread

I run dmesg to find out what internet hook up I'm using. Using either usb wireless or lan line, I gotta use wep key and ssid so I try this:

Code:
#ifconfig nfe0 ssid Monkeys123456 wepmod on wepkey 36HH8JY15K
ifconfig: SIOCS89211: Invalid arguement

I have already designated the interface as up. The ssid and wepkey of course aren't really what mine is, but they are the same format.

What do I do with that error? what am I missing?
 
Well, as nfe(4) is the NVIDIA Ethernet driver for wired LAN, you won't be able to activate WEP, which is for wireless LAN.

Which wireless LAN hardware do you have?
 
Tried this according to a netbsd archive, used this format instead:

Code:
wepkey 1:0xMY_KEY ssid MYSSID weptxkey 1 wepmode on

...and I get the same error message. Right now, at least until I get this sorted, I'm using a lan line that is going through a router...
 
I see, but you can't enable a wireless LAN security algorithm on wired LAN, so using WEP on nfe0 can't work. The device doesn't support it. ;)

What is this USB wireless controller you wrote about?
 
I've tried both a linksys using ral driver and a belkin using rum and got this error message.

Ultimately I would love to have the linksys work. It seems that freebsd loads the interface fine, just can't get the right code entered to get past this error.
 
volatilevoid: thanks for the tip with the lan; it works.

But why am I getting that error message with the wireless? I can't leave this indefinitely plugged into the router; the wife will beat me. ;-)
 
Have you tried the example from the ral(4) man page?

Join a specific BSS network with 104-bit WEP encryption:

# ifconfig wlan create wlandev ral0 inet 192.168.0.20 netmask 0xffffff00 ssid my_net wepmode on wepkey 0x01020304050607080910111213 weptxkey 1

Note that the example uses a key with characters converted to their hexadecimal values. So you have to convert your passphrase first.

See also the sticky thread from DutchDaemon.
 
volatilevoid: very well done! I'm not totally out of the woods, but the interface seems to be cooking.

Now I can run a scan and see the router, but I can't get the internet. ifconfig wlan0 status says associated, but still neither opera nor firefox3 can get a connection...

Any idea what to do?
 
I run dhclient wlan0 and it says DHDISCOVER on wlan0 a few times, but then says no DHOFFERS recieved...
 
volatilevoid said:
Does your router have a status log? If so, what does it say?

What happens if you use a static IP? Can you ping your router?

Don't know how to ping my router or check for a status log...I did try to ping a website and it gave a negative...
 
Well, your router likely has the same IP as you would get by DHCP but with .1 at the end. The most common ones are 192.168.0.1 / 192.168.1.1 or, if you're on a Fritz!Box like me, 192.168.178.1.

Not getting an IP sounds to me like an authentication problem. Your router then discards your DHDISCOVER requests. Are you sure your key is correct?

It would also help to know exactly what you entered. ;)
 
Well, it was basically this

Code:
ifconfig wlan create wlandev ural0 ssid Fakeyboy123456 wepmode on wepkey 0x32374545394143303349 weptxkey 1

with changes of course, but it is essentially that...

then

Code:
dhclient wlan0

...did I miss something again? You're kicking butt, like I said, and it's much closer now...what else?
:\
 
Oh, and as far as whether or not the code is right, I just flat copied (copied and pasted) it into the link you gave me and hit convert...thanks for that link, by the way...
 
Hmmm, in DutchDaemons thread, the command is # ifconfig wlan0 ... whereas in the manual it is # ifconfig wlan .... I don't know if that makes any difference though. Rest looks OK.

You may also give wlandebug(8) a try. Especially to check whether authentication works or not.
 
volatilevoid said:
Hmmm, in DutchDaemons thread, the command is # ifconfig wlan0 ... whereas in the manual it is # ifconfig wlan .... I don't know if that makes any difference though. Rest looks OK.

The NIC manuals differ in this respect. Compare e.g. iwi(4) and ath(4)). To me 'wlan0' sounds slightly more 'right', because all NICs are referred to as nic0 (nic1, nic2, etc.) in ifconfig(8). Then again, wlan isn't really a nic ;)
 
LateNiteTV: as far as I know...I mentioned before that I just took the key that I knew, that I've used for some time, then volatilevoid had mentioned that it needed to be converted, provided a link, I selected it, copied it, then pasted it, all via the computer, converted it, then moved it to a flash drive and then to the freebsd computer. So the answer is, yes, I can make mistakes (and I'll check it again), but I'm pretty sure...
 
i only have wep enabled on my wireless network and the key is not hex.
i was having problems when first setting it up because i thought it had to be converted to hex also, but it turns out that that is wrong.
 
LateNiteTV said:
the key still needs to have the 0x in front of it, but the actual key doesnt have to be converted to hex.

Hmmm...I'll try that too...I'll post back with results in the next day or so...
 
If that really is the cause, then someone should change the manual pages accordingly. ;)

Unfortunately, I don't have any own experience with WEP - always used WPA2 with wpa_supplicant and that worked for me. :)
 
Back
Top