LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   No DHCPOFFERS received. No working leases in persistent database - sleeping. (https://www.linuxquestions.org/questions/linux-wireless-networking-41/no-dhcpoffers-received-no-working-leases-in-persistent-database-sleeping-677880/)

maati1980 10-20-2008 03:21 PM

No DHCPOFFERS received. No working leases in persistent database - sleeping.
 
Hi,
After a week of fighting with madwifi drivers finally i have my Atheros 5006X AR5413 working.
Code:

mati@RAKIETA:~$ sudo ifconfig
ath0      Link encap:Ethernet  HWaddr 00:1f:3a:3f:ec:5f
          inet6 addr: fe80::21f:3aff:fe3f:ec5f/64 Scope:Link
          UP BROADCAST RUNNING 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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 00:1e:68:11:f8:31
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:4578 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2341 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3712737 (3.5 MB)  TX bytes:294125 (287.2 KB)
          Interrupt:252 Base address:0x2000

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:10 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:500 (500.0 B)  TX bytes:500 (500.0 B)

wifi0    Link encap:UNSPEC  HWaddr 00-1F-3A-3F-EC-5F-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15883 errors:0 dropped:0 overruns:0 frame:3134
          TX packets:583 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:280
          RX bytes:1360545 (1.2 MB)  TX bytes:26818 (26.1 KB)
          Interrupt:19

Code:

mati@RAKIETA:~$ sudo iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wifi0    no wireless extensions.

ath0      IEEE 802.11g  ESSID:""  Nickname:""
          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated
          Bit Rate:0 kb/s  Tx-Power:16 dBm  Sensitivity=1/1
          Retry:off  RTS thr:off  Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/70  Signal level=-96 dBm  Noise level=-96 dBm
          Rx invalid nwid:15721  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0  Missed beacon:0

Code:

mati@RAKIETA:~$ sudo lshw -C network
  *-network
      description: Ethernet interface
      product: MCP67 Ethernet
      vendor: nVidia Corporation
      physical id: a
      bus info: pci@0000:00:0a.0
      logical name: eth0
      version: a2
      serial: 00:1e:68:11:f8:31
      capacity: 100MB/s
      width: 32 bits
      clock: 66MHz
      capabilities: pm msi ht bus_master cap_list ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
      configuration: autonegotiation=on broadcast=yes driver=forcedeth driverversion=0.61 latency=0 link=no maxlatency=20 mingnt=1 module=forcedeth multicast=yes port=MII
  *-network
      description: Wireless interface
      product: AR242x 802.11abg Wireless PCI Express Adapter
      vendor: Atheros Communications Inc.
      physical id: 0
      bus info: pci@0000:03:00.0
      logical name: wifi0
      version: 01
      serial: 00:1f:3a:3f:ec:5f
      width: 64 bits
      clock: 33MHz
      capabilities: pm msi pciexpress msix bus_master cap_list logical ethernet physical wireless
      configuration: broadcast=yes driver=ath_pci latency=0 module=ath_pci multicast=yes wireless=IEEE 802.11g

i've made:
Code:

mati@RAKIETA:~$ sudo ifconfig ath0 down
mati@RAKIETA:~$ sudo dhclient -r ath0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/ath0/00:1f:3a:3f:ec:5f
Sending on  LPF/ath0/00:1f:3a:3f:ec:5f
Sending on  Socket/fallback
mati@RAKIETA:~$ sudo ifconfig ath0 up
mati@RAKIETA:~$ sudo iwconfig ath0 essid "neciak"
mati@RAKIETA:~$ sudo iwconfig ath0 key 1DD25AA75
mati@RAKIETA:~$ sudo iwconfig ath0 mode Managed
mati@RAKIETA:~$ sudo dhclient ath0
There is already a pid file /var/run/dhclient.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/ath0/00:1f:3a:3f:ec:5f
Sending on  LPF/ath0/00:1f:3a:3f:ec:5f
Sending on  Socket/fallback
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

Is there something wrong with DHCP? I cant connect either using any of the managers.
Its my first distro so please be patient.

Total-MAdMaN 10-21-2008 08:34 AM

The error you're getting indicates the computer can't communicate with the network, either because you're out of range or the settings are incorrect.

maati1980 10-21-2008 09:19 AM

I'm in range. Under Xp i can get connection without any problems. Which settings can be wrong?

Total-MAdMaN 10-21-2008 09:23 AM

Encryption type, key, channel, etc. Go through the settings and make sure you haven't set things up incorrectly.

maati1980 10-21-2008 12:51 PM

Then please help me and analaze from the beginning.

Code:

mati@RAKIETA:~$ iwlist scan
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

wifi0    Interface doesn't support scanning.

ath0      Scan completed :
          Cell 01 - Address: 00:0E:2E:4E:1A:B3
                    ESSID:"Default"
                    Mode:Master
                    Frequency:2.437 GHz (Channel 6)
                    Quality=2/70  Signal level=-93 dBm  Noise level=-95 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
          Cell 02 - Address: 00:1A:70:99:A9:42
                    ESSID:"neciak"
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Quality=43/70  Signal level=-52 dBm  Noise level=-95 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
                              6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
          Cell 03 - Address: 00:06:4F:50:3D:DB
                    ESSID:"NASOR"
                    Mode:Master
                    Frequency:2.457 GHz (Channel 10)
                    Quality=12/70  Signal level=-83 dBm  Noise level=-95 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK

So im sure that channel 11 is only for my connection. Then:
Code:

mati@RAKIETA:~$ sudo ifconfig ath0 down
mati@RAKIETA:~$ sudo dhclient -r ath0
There is already a pid file /var/run/dhclient.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/ath0/00:1f:3a:3f:ec:5f
Sending on  LPF/ath0/00:1f:3a:3f:ec:5f
Sending on  Socket/fallback
mati@RAKIETA:~$ sudo ifconfig ath0 up
mati@RAKIETA:~$ sudo iwconfig ath0 essid "neciak"
mati@RAKIETA:~$ sudo iwconfig ath0 key s:8005200501
mati@RAKIETA:~$ sudo iwconfig ath0 channel 11
mati@RAKIETA:~$ sudo iwconfig ath0 mode Managed
mati@RAKIETA:~$ sudo dhclient ath0
There is already a pid file /var/run/dhclient.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/ath0/00:1f:3a:3f:ec:5f
Sending on  LPF/ath0/00:1f:3a:3f:ec:5f
Sending on  Socket/fallback
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

And another way for DHCP:
Code:

mati@RAKIETA:~$ sudo dhcpcd ath0
Error, ath0: timed out

Im sure for 100% that i use WEP with key 8005200501. This connection with these settings is working under XP.
Maybe this is the problem:
Code:

There is already a pid file /var/run/dhclient.pid with pid 0
??
Thanks in advance for your help.

sidholland 10-22-2008 01:10 AM

I get the line "There is already a pid file /var/run/dhclient.pid with pid 0" frequently but it's never stopped me getting a lease.

However what I'm sure is a problem is that in your list of commands you executed you specified the essid as "neciak" and then set the card to channel 6, but in the results of your iwlist it shows the channel for that AP as 11.

You might also try it without the "iwconfig ath0 mode Managed" since I've never needed it to connect anything.

Deun 09-25-2010 07:20 AM

I do have this problem for a week now. I am using Xubuntu and ndiswrapper on netgear wg 511 v2. But this is not a problem, since it is the same on my desktop computer with another os and wifi interface.

I had found here people dealing with this really frustrating problem :
http://forum.eeeuser.com/viewtopic.php?id=5392

So I beleive now that here comes trouble with Linux itself.

My network does not have any encryption key or security.

I had chenged the file /etc/network/interfaces in order to set up wlan0 in dhcp or static mode. I had removed everything except "localhost" from /etc/hosts.

It still does not work, while my macbook get connected without trouble.

Could be a bug to report somewhere ? Anyway I wonder what to do now.... ? thanks for helping.

slac-in-the-box 09-27-2010 10:24 PM

wicd
 
Have you tried wicd?


All times are GMT -5. The time now is 05:16 PM.