You are not logged in.

#1 2011-08-04 01:16:20

mpz
Member
Registered: 2010-10-14
Posts: 54

[SOLVED] wlan0 error

I've spent more time then I'm willing to say trying to get my WiFi to work on our internal network.

$ ifconfig
eth0      Link encap:Ethernet  HWaddr E0:CB:4E:B9:07:D1  
          inet addr:192.168.80.253  Bcast:0.0.0.0  Mask:255.255.255.0
          inet6 addr: fe80::e2cb:4eff:feb9:7d1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1570054 errors:0 dropped:23 overruns:0 frame:0
          TX packets:1324161 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1024247817 (976.7 Mb)  TX bytes:205585920 (196.0 Mb)
          Interrupt:41 Base address:0x8000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1055 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1055 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:105498 (103.0 Kb)  TX bytes:105498 (103.0 Kb)

wlan0     Link encap:Ethernet  HWaddr 00:02:6F:93:F7:D8  
          inet addr:10.1.10.11  Bcast:10.1.10.255  Mask:255.255.255.0
          inet6 addr: fe80::202:6fff:fe93:f7d8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1331532 errors:1 dropped:1 overruns:0 frame:0
          TX packets:28528 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:422361648 (402.7 Mb)  TX bytes:1679791 (1.6 Mb)

$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     Ralink STA  ESSID:"<hidden>"  Nickname:"RT2870STA"
          Mode:Managed  Frequency=2.412 GHz  Access Point: 1C:AF:F7:73:7C:F7   
          Bit Rate=54 Mb/s   
          RTS thr:off   Fragment thr:off
          Link Quality=100/100  Signal level:-33 dBm  Noise level:-71 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

$ iwlist scan
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

wlan0     Scan completed :
          Cell 01 - Address: 1C:AF:F7:73:7C:F7
                    Protocol:802.11b/g/n
                    ESSID:"<hidden>"
                    Mode:Managed
                    Channel:1
                    Quality:100/100  Signal level:-35 dBm  Noise level:-71 dBm
                    Encryption key:on
                    Bit Rates:144 Mb/s
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK

Any way to debug error indicated in ifconfig? Windows and OSX users in our office are able to successfully connect.

Setup facts:
I have set a static IP for eth0 in rc.conf, it shouldn't matter though.
I am using NetworkManager with 2 dispatch scripts to bring up sshfs and smbnetfs.
I have set immutable bit on resolv.conf because NM kept overriding it with crappy nameservers.
I have tried many setting combinations in Network Setting window.
Our network is partly managed by third party.
Will update when I remember more...

Thank you

Last edited by mpz (2011-08-08 13:19:15)

Offline

#2 2011-08-04 01:29:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] wlan0 error

I'm not sure if I get it right, but

wlan0     Link encap:Ethernet  HWaddr 00:02:6F:93:F7:D8  
          inet addr:10.1.10.11  Bcast:10.1.10.255  Mask:255.255.255.0
          inet6 addr: fe80::202:6fff:fe93:f7d8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1331532 errors:1 dropped:1 overruns:0 frame:0
          TX packets:28528 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:422361648 (402.7 Mb)  TX bytes:1679791 (1.6 Mb)

says it's up & running, has an IP assigned and can both send and receive data pretty well (the last line).
That one dropped packet and a single error could be anything.

Offline

#3 2011-08-04 02:23:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,872

Re: [SOLVED] wlan0 error

I'm with Karol, I do not see any issues with what you have posted.  It looks okay to me; but...

You did not state from whence came your IP address.  10.1.10.11 looks reasonable.  It is a private network address in the 24 bit range. 
Is it static, or did it come from a DHCP server? If so, which client did you use?
I could be mistaken, but I think RFC 1918 indicates the subnet mask should be 255.0.0.0.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2011-08-04 06:10:24

roshanxd2
Member
Registered: 2011-08-03
Posts: 2

Re: [SOLVED] wlan0 error

hi
Kindly send me the steps to configure wireless connection with installation

Offline

#5 2011-08-04 07:27:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] wlan0 error

roshan - two things:
1. please don't hijack threads https://wiki.archlinux.org/index.php/Fo … _Hijacking
2. No-one is going to send you anything: whether it is an email with their brightness issues or instructions to set up wifi. If you post like this again, you will be banned from these boards


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2011-08-04 07:51:30

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] wlan0 error

mpz - as already advised, your wifi is working fine based on the details you provided, so you need to describe exactly how it isn't working.

While you're thinking about that, I have a question: Does your system need both connections i.e. eth0 and wlan0? If not, just disable the one you don't want - it's complicating your troubleshooting.

ewaller - re the subnet mask, that used to be the case in the old Class A/B/C days. The introduction of CIDR changed all that.

Offline

#7 2011-08-04 10:57:16

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

Re: [SOLVED] wlan0 error

ewaller wrote:

I could be mistaken, but I think RFC 1918 indicates the subnet mask should be 255.0.0.0.

LAN subnet masks (except for larger corporate LANs) are typically 255.255.255.0, so everything looks alright.


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

Offline

#8 2011-08-04 14:21:22

mpz
Member
Registered: 2010-10-14
Posts: 54

Re: [SOLVED] wlan0 error

Thanks for your help fellas, I appreciate it.

@karol
Yes, wireless dongle is up and running and I can connect to the network, I get assigned an IP and I can ping my gateway but none of the domains resolve.

@ewaller
Which client are you referring to? I tried to use NetworkManager to setup my wireless connection without success. Please elaborate and I'll post what you need. IP comes from Comcast via DHCP, it's our outside line for redundancy.

@tomk
Yes, I need 2 lines though not simultaneously. Even when I disable eth0, wlan0 doesn't resolve domain names.

Edit: Getting close smile
I removed immutable bit from resolv.conf to see what DNS NM would set for this connection. With it set, Comcast resolves. I added back google nameservers (so that eth0 can resolve quickly) and now both connections work but comcast resolves slowely (its nameserver is last after 2 google nameserver in the order). Is there any way to assign DNS based on interface? I checked man resolve and didn't see any options. Thanks again!

Offline

#9 2011-08-04 15:39:39

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED] wlan0 error

If you don't need both connections simultaneously, I don't see why there's a problem - just use google DNS when eth0 is active and the other one when wlan0 is active. I expect networkmanager would be able to handle that, buut I don't use it so I can't be sure. netcfg can do it anyway.

Offline

#10 2011-08-05 02:13:57

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,872

Re: [SOLVED] wlan0 error

tomk:  Thank You, that was a good read.  Clearly there was a gap in my knowledge there.  I had just rationalized the /24 as being a shorthand for a Class C network.  One learns something new everyday.

mpz:  It seems moot at this point, but my question was whether you are using dhclient or dhcpcd.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB