Hi guys, apologies if the following is a little disjointed - I’ve been compiling all my info for a while now to make sure I had tried everything/collected all necessary info before asking for help:
I’ve got a (relatively cheap) usb wireless stick based on the Ralink RT5370 chipset. (I chose this as it supposedly works with the Raspberry Pi I’m hoping to receive in the next few days, plus my other wifi card isn’t supported in linux )
When I plug it in, I can connect to my wireless network, but can’t connect to the internet. Having seen this thread http://forums.opensuse.org/english/get-technical-help-here/wireless/472338-wireless-up-but-no-internet.html , I thought it might be a similar issue, but even after I try
ifconfig eth0 down
the problem persists.
I don’t know if this is related, but when I boot my PC, NetworkManager doesn’t autostart. If I do ifconfig without starting Network Manager, eth0 and wlan0 are not present, but when I start NM, eth0 and wlan0 appear. (wlan0 is the one I want), and eth0 is ‘UP’. As I said, after performing the ‘down’ command, the problem still persists.
Finally it may be worth noting that (and I may say it again below), I can access the internet through my Android phone (which in turn goes through the WiFi). However, if I connect my phone after trying and failing to use NM & my usb wifi device, I cannot connect to the internet and am still presented with the same error messages.
Hopefully that set the scene and makes sense. Below is all the info I could collate on the issue:
I believe my device is supported natively under Linux (I’m running OpenSUSE 12.2), which is confirmed by the following:
$> cat /etc/issue
Welcome to openSUSE 12.2 "Mantis" - Kernel \r (\l).
$> lsusb
Bus 001 Device 002: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 002 Device 007: ID **148f:5370** Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0ac8:3420 Z-Star Microelectronics Corp. Venus USB2.0 Camera
Bus 001 Device 006: ID 0bb4:0c86 High Tech Computer Corp.
Bus 001 Device 004: ID 062a:3270 Creative Labs
$> /sbin/modinfo rt2800usb | grep 5370
alias: usb:v**148Fp5370**d*dc*dsc*dp*ic*isc*ip*
And my understanding of modprobe is that the driver is loaded:
$> modprobe -l | grep 2800
kernel/drivers/net/wireless/rt2x00/rt2800lib.ko
kernel/drivers/net/wireless/rt2x00/rt2800pci.ko
kernel/drivers/net/wireless/rt2x00/rt2800usb.ko
I have my device present in iwconfig:
$> /usr/sbin/iwconfig
usb0 no wireless extensions.
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on
$> dmesg -T
...
[Tue Feb 19 20:01:55 2013] usb 2-2: new high-speed USB device number 7 using ehci_hcd
[Tue Feb 19 20:01:55 2013] usb 2-2: New USB device found, idVendor=148f, idProduct=5370
[Tue Feb 19 20:01:55 2013] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Tue Feb 19 20:01:55 2013] usb 2-2: Product: 802.11 n WLAN
[Tue Feb 19 20:01:55 2013] usb 2-2: Manufacturer: Ralink
[Tue Feb 19 20:01:55 2013] usb 2-2: SerialNumber: 1.0
[Tue Feb 19 20:01:55 2013] usb 2-2: reset high-speed USB device number 7 using ehci_hcd
[Tue Feb 19 20:01:55 2013] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[Tue Feb 19 20:01:55 2013] Registered led device: rt2800usb-phy0::radio
[Tue Feb 19 20:01:55 2013] Registered led device: rt2800usb-phy0::assoc
[Tue Feb 19 20:01:55 2013] Registered led device: rt2800usb-phy0::quality
$> sudo /usr/sbin/iwlist scan
root's password:
usb0 Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
lo Interface doesn't support scanning.
wlan0 Interface doesn't support scanning : Network is down
$> sudo /sbin/ifup wlan0
wlan0
No configuration found for wlan0
The above is all performed after boot but before starting NetworkManager.
The following is from after starting NetworkManager and connecting to my network: (Note: usb0 is my android device)
> /usr/sbin/iwconfig
usb0 no wireless extensions.
eth0 no wireless extensions.
lo no wireless extensions.
wlan0 IEEE 802.11bgn ESSID:"virginmedia1234567"
Mode:Managed Frequency:2.462 GHz Access Point: NO:TR:EA:L1:23
Bit Rate=19.5 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on
Link Quality=47/70 Signal level=-63 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:21 Missed beacon:0
$> sudo /usr/sbin/iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: NO:TR:EA:L1:23
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=49/70 Signal level=-61 dBm
Encryption key:on
ESSID:"virginmedia123456"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=***
Extra: Last beacon: 75ms ago
IE: Unknown: ***
IE: Unknown: ***
IE: Unknown: ***
IE: Unknown: ***
IE: Unknown: ***
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: ***
IE: Unknown: ***
IE: Unknown: ***
IE: Unknown: ***
IE: Unknown: ***
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: ***
As I don’t know what the numbers in this output mean, I have replaced them all with ‘***’. Probably over cautious but ah well. Also my MAC address and essid are false.
As far as I can tell, I’m connected to the network:
$> ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=112 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=16.0 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=16.2 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=15.8 ms
64 bytes from 192.168.0.1: icmp_seq=5 ttl=64 time=15.6 ms
64 bytes from 192.168.0.1: icmp_seq=6 ttl=64 time=16.4 ms
64 bytes from 192.168.0.1: icmp_seq=7 ttl=64 time=17.4 ms
64 bytes from 192.168.0.1: icmp_seq=8 ttl=64 time=16.5 ms
64 bytes from 192.168.0.1: icmp_seq=9 ttl=64 time=15.9 ms
64 bytes from 192.168.0.1: icmp_seq=10 ttl=64 time=21.1 ms
64 bytes from 192.168.0.1: icmp_seq=11 ttl=64 time=18.8 ms
64 bytes from 192.168.0.1: icmp_seq=12 ttl=64 time=21.2 ms
64 bytes from 192.168.0.1: icmp_seq=13 ttl=64 time=15.8 ms
64 bytes from 192.168.0.1: icmp_seq=14 ttl=64 time=16.0 ms
64 bytes from 192.168.0.1: icmp_seq=15 ttl=64 time=16.7 ms
64 bytes from 192.168.0.1: icmp_seq=16 ttl=64 time=16.5 ms
64 bytes from 192.168.0.1: icmp_seq=17 ttl=64 time=15.7 ms
^C
--- 192.168.0.1 ping statistics ---
17 packets transmitted, 17 received, 0% packet loss, time 16022ms
rtt min/avg/max/mdev = 15.686/22.661/112.855/22.612 ms
but when I try to access the internet I get the following errors:
Google Chrome:
Error 137 (net::ERR_NAME_RESOLUTION_FAILED): Unknown error.
Firefox:
Server not found
Firefox can't find the server at www.google.co.uk.
Check the address for typing errors such as
ww.example.com instead of
www.example.com
If you are unable to load any pages, check your computer's network
connection.
If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.
$> /sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
loopback * 255.0.0.0 U 0 0 0 lo
192.168.0.0 * 255.255.255.0 U 0 0 0 wlan0
When I allow my computer to connect to the internet through my Android phone, (via the wifi network), everything works (hence my being able to post this message), hopefully showing that the router works and also that when I have an internet connection, Chrome can use it.
It’s also worth mentioning that my PC dual-boots Windows 7, and this device/network setup works perfectly.
That’s everything that I can think of - if any more info is required, please let me know.
Thanks in advance for any hints you may be able to provide!
Peace,
Thonners