[solved]wireless will not connect - unable to get ip address

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
f.bluedevil
Posts: 91
Joined: 9. Jan 2011, 23:06

[solved]wireless will not connect - unable to get ip address

Post by f.bluedevil »

When I try to connect I get a "Connection Failed: Unable to get IP address" error.

I was reading on my laptop for a couple of hours when I decided to get on the web and noticed the problem. Strangely, I rebooted into Zenwalk which also uses wicd and ran into the same problem. But in Debian with network manager, no problems.

Oh lord, stuck inside Debian .....again.

Suggestions, advice - appreciated.
Last edited by f.bluedevil on 1. May 2011, 19:26, edited 1 time in total.
yves04
Donor
Posts: 58
Joined: 30. Jan 2011, 08:30
Location: Haute Provence, France

Re: wireless will not connect - unable to get ip address

Post by yves04 »

Hello
I've got a Dlink key wifi
The command #lsusb send me Bus 001 ...D-Link System
I've the packages wpa_supplicant
I've launched wicd Network Manager and Disconnect All and after Refresh : a new icon dlink has appeared ; just click on Properties and choose WPA 1/2 (Passphrase) ; Connect and it's ok
As simple as Debian !
Have a nice day.
User avatar
f.bluedevil
Posts: 91
Joined: 9. Jan 2011, 23:06

Re: wireless will not connect - unable to get ip address

Post by f.bluedevil »

yves04

I am not sure what you mean when you say
The command #lsusb send me Bus 001 ...D-Link System
I did try > launch wicd > disconnect all > refresh > re-enter passphrase > re-connect

However same result, wicd scans and then eventually comes back with the same "unable to find IP address." No results with ping as well.
User avatar
f.bluedevil
Posts: 91
Joined: 9. Jan 2011, 23:06

Re: wireless will not connect - unable to get ip address

Post by f.bluedevil »

yves04

Sorry, feeling a little dense this morning, upon further reflection, I ran the command lsusb and it does identify my receiver correctly.
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: wireless will not connect - unable to get ip address

Post by mimosa »

My experience with a similar problem was that although I managed to configure it manually, it was then very hard to get it working with wicd again; something in some configuration file must have been changed. If I had to do it again, I would be more scrupulous about making backups of absolutely everything and recording each step taken.

That was in a situation where I knew my wireless hardware should have been supported by Salix - and eventually it did work. But the first thing to establish in your case is surely whether that is true of your hardware. If not, just fiddling with wicd isn't likely to get you very far.

One approach might be to try connecting manually using a live cd session. If it works, you know your hardware's supported. If it doesn't, try an earlier or newer version of Salix.

Arch has very good documentation on setting up wireless:

https://wiki.archlinux.org/index.php/Wireless_Setup

but section 3.1.1.2 here is shorter and clearer as a starting-point:

https://wiki.archlinux.org/index.php/Beginners'_Guide

Apologies if you know all this stuff already! and good luck :)
User avatar
f.bluedevil
Posts: 91
Joined: 9. Jan 2011, 23:06

Re: wireless will not connect - unable to get ip address

Post by f.bluedevil »

mimosa

I will review the Arch doc's and try a live CD session with the latest release. I had the same thoughts about a configuration file being changed, although by an update because I had not done anything related to my wireless or any of the config files.

But, what does not make sense (to me anyway) is, I am having the same problem with Zenwalk running on another partition. While we have had some updates recently, I have not updated Zenwalk since I installed it to see what the new xfce looked like. So, both worked fine and neither works now.

So, back to the drawing boards ;) & thanks for the advice.
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

Re: wireless will not connect - unable to get ip address

Post by pwatk »

Can you provide the output from ifconfig and tell us what kind of security your using on your router (WEP, WPA(2), WPS etc).

Can also confirm whether your using a USB or PCI(-e) wifi device and provide the output from either lsusb or lspci respectively.

You might also gleam some information from demsg or by manually configuring your network settings and watching for errors.
Image
User avatar
f.bluedevil
Posts: 91
Joined: 9. Jan 2011, 23:06

Re: wireless will not connect - unable to get ip address

Post by f.bluedevil »

Ok, here we go:

Security: I beleive wpa-psk (wpa for sure)

Ifconfig:

Code: Select all

wlan0     Link encap:Ethernet  HWaddr 2c:81:58:e5:a0:9d  
          inet addr:192.168.1.64  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2e81:58ff:fee5:a09d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3117 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3355 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2856858 (2.7 MiB)  TX bytes:483782 (472.4 KiB)
lspci:

Code: Select all

00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
01:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8057 PCI-E Gigabit Ethernet Controller (rev 10)
02:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
0b:03.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05)
0b:03.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)
0b:03.2 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12)
I am unclear as to how to find or get dmesg output, but I will look into it.

Hope this proves to be helpful - thanks!
User avatar
f.bluedevil
Posts: 91
Joined: 9. Jan 2011, 23:06

Re: wireless will not connect - unable to get ip address

Post by f.bluedevil »

Looked at dmesg output, it's long so I'm not going to post it here unless necessary.

working connection: appears to try to connect once, is successful and then reports "No IPv6 routers present."

non-working connection: appears to try to connect four or five times and appears to fail again due to an inability to find a IPv6 router or address. But on the final try reports the link is associated.

If more detail is needed I can provide.
User avatar
pwatk
Posts: 474
Joined: 14. Mar 2010, 23:56
Location: United Kingdom

Re: wireless will not connect - unable to get ip address

Post by pwatk »

By the look of your ifconfig output you seam to have been assigned an IP address and the error your seeing is similar to a problem I was having with my Atheros card not so long ago.

Try disabling power management and see if the problem persists:

Code: Select all

iwconfig wlan0 power off
If it works you can always add this to /etc/rc.d/rc.local so it's executed on system startup.
Image
Post Reply