LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices



Reply
 
Search this Thread
Old 07-31-2012, 01:32 AM   #1
moonleo
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Rep: Reputation: Disabled
Connect to wireless router but iw give wrong result


My laptop has connected to my wireless router (a Cisco one)however, when I try iwconfig, I get weird result:
Lenovo-G570:~$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 IEEE 802.11 Access Point: Not-Associated
Link Quality:5 Signal level:215 Noise level:159
Rx invalid nwid:0 invalid crypt:0 invalid misc:0

Lenovo-G570:~$ iwlist eth1 scan
eth1 Interface doesn't support scanning.

However, I can access internet through my wireless router. Does anyone can explain this? I build the linux kernel by myself and it is:
Lenovo-G570:~$ uname -a
Linux Lenovo-G570 3.0.32 #1 SMP Fri Jun 1 10:26:17 PDT 2012 i686 i686 i386 GNU/Linux


Thanks!
moonleo
 
Old 07-31-2012, 10:23 PM   #2
ilesterg
Member
 
Registered: Jul 2012
Location: Philippines
Distribution: CentOS, Oracle Linux, AIX
Posts: 354

Rep: Reputation: 46
Quote:
Originally Posted by moonleo View Post
My laptop has connected to my wireless router (a Cisco one)however, when I try iwconfig, I get weird result:
Lenovo-G570:~$ iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

eth1 IEEE 802.11 Access Point: Not-Associated
Link Quality:5 Signal level:215 Noise level:159
Rx invalid nwid:0 invalid crypt:0 invalid misc:0

Lenovo-G570:~$ iwlist eth1 scan
eth1 Interface doesn't support scanning.

However, I can access internet through my wireless router. Does anyone can explain this? I build the linux kernel by myself and it is:
Lenovo-G570:~$ uname -a
Linux Lenovo-G570 3.0.32 #1 SMP Fri Jun 1 10:26:17 PDT 2012 i686 i686 i386 GNU/Linux


Thanks!
moonleo
Sorry to ask this, but can you try
Code:
ifconfig -a
 
Old 07-31-2012, 11:20 PM   #3
moonleo
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
xin@xin-Lenovo-G570:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:70:f4:2b:09:ab
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:43

eth1 Link encap:Ethernet HWaddr cc:af:78:25:4c:95
inet addr:192.168.1.141 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ceaf:78ff:fe25:4c95/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19367 errors:1 dropped:0 overruns:0 frame:3009353
TX packets:5821 errors:16 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16036497 (16.0 MB) TX bytes:483739 (483.7 KB)
Interrupt:17

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:25 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1572 (1.5 KB) TX bytes:1572 (1.5 KB)

Still no wireless interface although I know eth1 connect to wireless router
 
Old 07-31-2012, 11:33 PM   #4
ilesterg
Member
 
Registered: Jul 2012
Location: Philippines
Distribution: CentOS, Oracle Linux, AIX
Posts: 354

Rep: Reputation: 46
Quote:
Originally Posted by moonleo View Post
xin@xin-Lenovo-G570:~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:70:f4:2b:09:ab
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:43

eth1 Link encap:Ethernet HWaddr cc:af:78:25:4c:95
inet addr:192.168.1.141 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ceaf:78ff:fe25:4c95/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19367 errors:1 dropped:0 overruns:0 frame:3009353
TX packets:5821 errors:16 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16036497 (16.0 MB) TX bytes:483739 (483.7 KB)
Interrupt:17

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:25 errors:0 dropped:0 overruns:0 frame:0
TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1572 (1.5 KB) TX bytes:1572 (1.5 KB)

Still no wireless interface although I know eth1 connect to wireless router
eth1 is the only configured interface, so this might really be the one connected to the router. I could see some RX/TX errors on the interface, so this might be the reason why iwconfig says the interface is not associated with an access point, although the configuration was setup and the network is working. Not so sure though.
 
Old 07-31-2012, 11:38 PM   #5
moonleo
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
If it is not associated, how can the network work?

xin@xin-Lenovo-G570:~$ ping google.com
PING google.com (74.125.224.70) 56(84) bytes of data.
64 bytes from nuq04s07-in-f6.1e100.net (74.125.224.70): icmp_req=1 ttl=55 time=19.6 ms
64 bytes from nuq04s07-in-f6.1e100.net (74.125.224.70): icmp_req=2 ttl=55 time=19.4 ms
64 bytes from nuq04s07-in-f6.1e100.net (74.125.224.70): icmp_req=3 ttl=55 time=20.5 ms
64 bytes from nuq04s07-in-f6.1e100.net (74.125.224.70): icmp_req=4 ttl=55 time=20.2 ms

That is why I say iwconfig give wrong result ....
 
Old 07-31-2012, 11:47 PM   #6
ilesterg
Member
 
Registered: Jul 2012
Location: Philippines
Distribution: CentOS, Oracle Linux, AIX
Posts: 354

Rep: Reputation: 46
Quote:
Originally Posted by moonleo View Post
If it is not associated, how can the network work?

xin@xin-Lenovo-G570:~$ ping google.com
PING google.com (74.125.224.70) 56(84) bytes of data.
64 bytes from nuq04s07-in-f6.1e100.net (74.125.224.70): icmp_req=1 ttl=55 time=19.6 ms
64 bytes from nuq04s07-in-f6.1e100.net (74.125.224.70): icmp_req=2 ttl=55 time=19.4 ms
64 bytes from nuq04s07-in-f6.1e100.net (74.125.224.70): icmp_req=3 ttl=55 time=20.5 ms
64 bytes from nuq04s07-in-f6.1e100.net (74.125.224.70): icmp_req=4 ttl=55 time=20.2 ms

That is why I say iwconfig give wrong result ....
What I mean is, the association process between the AP and the interface returned errors, although the IP configuration process pushed through. I'm not sure why this happened though. I suggest you try reading log files why that happened,
Code:
/var/log/messages
/tmp/network-connect.log
 
Old 07-31-2012, 11:55 PM   #7
moonleo
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
If there is error and association fail, AP will not allow STA pass any traffic through it
Then how can STA ping google?
 
Old 08-01-2012, 12:05 AM   #8
ilesterg
Member
 
Registered: Jul 2012
Location: Philippines
Distribution: CentOS, Oracle Linux, AIX
Posts: 354

Rep: Reputation: 46
Quote:
Originally Posted by moonleo View Post
If there is error and association fail, AP will not allow STA pass any traffic through it
Then how can STA ping google?
I agree. Association should come in first, where parameters are being exchanged, such as windows size and authentication, then IP configuration are negotiated. This is why I suggest you read the log files to investigate, or enable logging then reconnect.
 
  


Reply

Tags
iwconfig, iwlist


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with wireless settings to connect to wireless router mascot17 Linux - Wireless Networking 12 10-09-2011 02:54 PM
Connect acer nb wireless 2200bg centOS 5.4 to D-link DSL-2640T wireless router LinpusKelvin Linux - Networking 2 05-10-2010 11:32 AM
ls .* does not give the expected result babu198649 Programming 3 04-23-2009 07:50 AM
Intel 4965 AGN - can't connect to wireless 802.11b router, can connect to 11g siodine Linux - Wireless Networking 3 12-01-2007 08:36 AM
Something wrong with my Wireless Router alaisofia Linux - Wireless Networking 7 04-22-2006 06:26 AM


All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration