LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-27-2014, 12:17 PM   #1
zjmarlow
LQ Newbie
 
Registered: May 2014
Posts: 22

Rep: Reputation: Disabled
Cannot connect to router wirelessly using USB wifi adapter after upgrading to wheezy


After upgrading to wheezy, I am no longer able to connect either of my two wireless routers using the D-Link DWA-131 802.11n Wireless N Nano Adapter(rev.A1). One router is visible and one is not. To keep things simple, I'd like to start out trying to connect to the visible router.

Code:
# uname -a
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.57-3+deb7u1 i686 GNUL/Linux

# lsusb
...
... D-Link System DWA-131 802.11n Wireless N Nano Adapter(rev.A1) [Realtek RTL8192SU]
...

# lsmod
...
r8712u...
...

# cat /etc/network/interfaces
...
auto wlan0
iface wlan0 inet static
  pre-up wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf
  wireless-essid MY_ESSID
  address 192.168.254.204
  netmask 255.255.255.0
  gateway 192.168.254.254
  default gateway 192.168.254.254
  dns-nameservers 8.8.8.8 24.205.192.61 192.168.254.254
  post-down killall -q wpa_supplicant

# cat wpa_supplicant.conf
network={
	ssid="MY_ESSID"
	psk=LONG_HEX_STRING
	key_mgmt=WPA_PSK
}
The contents of dmesg and kern.log are mostly

Code:
...wlan0: direct probe to... timed out
Please let me know if I need to provide any additional information.
 
Old 05-27-2014, 12:29 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
does this yield anything positive:
Code:
ifconfig
ifconfig -a
sudo ifconfig wlan0 down
sudo ifconfig wlan0 up
iwconfig
sudo iwlist wlan0 scan
sudo iwconfig wlan0 essid my_essid
 
Old 05-27-2014, 01:32 PM   #3
zjmarlow
LQ Newbie
 
Registered: May 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
Code:
# ifconfig
...
wlan0	Link  encap:Ethernet  HWaddr HWADDR
	inet addr:192.168.254.204  Bcast:192.168.254.255  Mask:255.255.255.0
	UP BROADCAST MULTICAST  MTU:1500 Metric:1
	RX packets:4 errors:0 dropped:0 overruns:0 frame:0
	TX packets:39 errors:0 dropped:0 overruns:0 carrier:0
	collisions:0 txqueuelen:1000
	RX bytes:452 (452.0 B)  TX bytes:6980 (6.8KiB)
	

# ifconfig -a
(output matches `ifconfig`)

# sudo ifconfig wlan0 down
(no output)

# sudo ifconfig wlan0 up
(no output)

# iwconfig
...
wlan0	IEEE 802.11bg  ESSID:"MY_ESSID"
	Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
	Tx-Power=27dBm
	Retry  long limit:7  RTS thr:off  Fragment thr:off
	Encryption key:off
	Power Management:off
...

# sudo iwlist wlan0 scan
wlan0	Scan completed :
	Cell 01 - Address: ADDR
		Channel:1
		Frequency:2.412 GHz (Channel 1)
		Quality=8/70  Signal level=-102dBm
		Encryption key:on
		ESSID:"MY_ESSID"
		Bit Rates:(1 through 18 Mb/s)
		Bit Rates:(24 through 54 Mb/s)
		Mode:Master
		...
		IE: IEEE 802.11i/WPA2 Version 1
		    Group Cipher : CCMP
		    Pairwise Ciphers (1) : CCMP
		    Authentication Suites (1) : PSK
		...

# sudo iwconfig wlan0 essid my_essid
(no output)
 
Old 05-27-2014, 01:42 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
it seems like you are connected. what does this give you:
Code:
cat /etc/resolv.conf
ping -c 5 192.168.254.254 && ping -c 5 64.235.229.141 && ping -c 5 www.02144.com

Last edited by schneidz; 05-27-2014 at 01:44 PM.
 
Old 05-27-2014, 01:53 PM   #5
zjmarlow
LQ Newbie
 
Registered: May 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
Code:
# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 192.168.1.1
nameserver 24.205.192.61
nameserver 8.8.8.8
(note that 192.168.1.1 is not the gateway.  I corrected it to 192.168.254.254 now)

# ping -c 5 192.168.254.254 && ping -c 5 64.235.229.141 && ping -c 5 www.02144.com
PING 192.168.254.254...
(Destination Host Unreachable for icmp_seq 1-5)
 
Old 05-27-2014, 01:56 PM   #6
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
not sure what ip your router is but lets try this:
Code:
ping -c 5 192.168.1.1; ping -c 5 64.235.229.141; ping -c 5 www.02144.com
 
Old 05-27-2014, 03:52 PM   #7
zjmarlow
LQ Newbie
 
Registered: May 2014
Posts: 22

Original Poster
Rep: Reputation: Disabled
Code:
connect: Network is unreachable
Please note that I still get the Destination Host Unreachable when pinging 192.168.254.254...
 
Old 05-27-2014, 07:41 PM   #8
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
I'm stumped. do you have any other devices connected to that router. what do they have configured as their gateway ?
 
Old 05-27-2014, 09:09 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,694

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Quote:
wlan0 IEEE 802.11bg ESSID:"MY_ESSID"
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=27dBm
Retry long limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementff
Your not connected to the router.

It appears that you have network manager installed. Is it running? Have you tried configuring the network via network-manager? Any reason why you want to use a static IP address? It is also interesting that iwconfig output shows encryption off whereas iwlist indicates it is on.

https://wiki.debian.org/WiFi/HowToUse
 
  


Reply



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
[SOLVED] Help: Can't get usb wifi adapter to connect on Mepis 8 apsrmusic Linux - Networking 7 01-10-2012 10:37 PM
How do I set up a laptop as a router to connect wirelessly to my ADSL router hairysocks Linux - Networking 12 12-20-2009 06:51 AM
Cannot connect wirelessly to router -Ay- Linux - Wireless Networking 4 09-30-2007 11:43 PM
How do I connect wirelessly to my router? Vince013 Linux - Networking 3 08-13-2006 07:33 AM
Belkin USB Adapter in Fedora. Can connect to the router but not the internet n0where Linux - Wireless Networking 0 03-04-2004 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:45 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
Open Source Consulting | Domain Registration