You are not logged in.

#1 2009-04-17 20:04:53

megajosh2
Member
Registered: 2009-04-15
Posts: 57

wlan0: Various problems

I use ndiswrapper with the rtl8185 drivers on my Arch Linux. I can't manage to get internet access. There's several problems:

1. Using:

$ iwconfig wlan0 essid [essid] key [wep key]

sets the WEP key, but when I use:

$ iwconfig wlan0

it shows the essid as set to "off/any" instead of the essid I supply.
2. On startup and when I restart /etc/rc.d/network, I get the message "Could not associate wlan0" or something similar. I'm not sure if this is a problem or not.
3. Using "iwlist wlan0 scan" never returns any results.
4. Even though I set the following lines in my /etc/rc.conf:

wlan0="wlan0 192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255"
wlan_wlan0="wlan0 essid mynetwork key mykey"
INTERFACES=(!eth0 wlan0)

wlan0 is down when I log in, with none of the information for it set.

I definitely use the right WEP key, if it's possible that it could be the cause of any of this.

Last edited by megajosh2 (2009-04-18 00:33:33)

Offline

#2 2009-04-18 00:07:36

megajosh2
Member
Registered: 2009-04-15
Posts: 57

Re: wlan0: Various problems

I used this command:

# route add default gw 192.168.1.1 netmask 255.255.255.0

and I was able to ping 192.168.1.1 and get replies. Still didn't connect to my essid though.

Offline

#3 2009-04-18 00:12:30

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: wlan0: Various problems

If I recall correctly iwconfig can only handle WEP keys. There is a separate supplicant for WPA - called, surprisingly, wpa_supplicant.

I think you should look into that, and into netcfg2, for automation. But to start out you should try to connect to your network - unsecured. With a secured network you do not know whether it's the encryption or the network configuration itself giving problems, so you eliminate all possible factors to narrow it down.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2009-04-18 00:33:01

megajosh2
Member
Registered: 2009-04-15
Posts: 57

Re: wlan0: Various problems

Woops, I meant WEP big_smile!

Offline

#5 2009-04-18 01:37:44

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: wlan0: Various problems

Sorry I have no experience with WEP setup smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2009-04-18 01:54:30

megajosh2
Member
Registered: 2009-04-15
Posts: 57

Re: wlan0: Various problems

I just tried connecting to an open network, it didn't keep the essid.

          wlan0     IEEE 802.11g  ESSID:off/any  
          Mode:Auto  Frequency:2.412 GHz  Access Point: Not-Associated   
          Bit Rate:2 Mb/s   Tx-Power:20 dBm   Sensitivity=0/3  
          RTS thr:off   Fragment thr:off
          Encryption key: (key)   Security mode:restricted
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

-------------------------------------------------
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:14:D1:58:F1:4F  
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:21 Memory:90012000-90012025

Last edited by megajosh2 (2009-04-19 18:01:45)

Offline

#7 2009-04-18 17:55:06

Joe_Arch
Member
Registered: 2008-11-27
Posts: 67

Re: wlan0: Various problems

This may be a silly question, but you are using sudo, right?

Last edited by Joe_Arch (2009-04-18 17:55:18)

Offline

#8 2009-04-19 13:01:19

megajosh2
Member
Registered: 2009-04-15
Posts: 57

Re: wlan0: Various problems

I'm running all of this stuff as root.

Offline

#9 2009-04-19 18:05:54

megajosh2
Member
Registered: 2009-04-15
Posts: 57

Re: wlan0: Various problems

I tried using netcfg to see if my wireless would work with it, but wlan0 was down according to ifconfig and iwconfig showed the key as set but the essid set to off/any. I'm still not really getting anywhere...

Offline

#10 2009-04-19 19:55:55

Joe_Arch
Member
Registered: 2008-11-27
Posts: 67

Re: wlan0: Various problems

After

$ iwconfig wlan0 essid [essid] key [wep key]

did you try (as root):

dhcpcd wlan0

If that doesn't work, I would actually comment out the wlan0 bit in your rc.conf that you originally posted, and try the process again.

Offline

Board footer

Powered by FluxBB