The solution is absurdly simple.
Use udhcpc not dhclient. Both are installed on 2008.8, only udhcpc does the
right thing.

For example...
Dhclient:
[EMAIL PROTECTED]:~# dhclient eth0
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

can't create /var/lib/dhcp/dhclient.leases: No such file or directory
Listening on LPF/eth0/00:12:cf:8e:f0:0e
Sending on   LPF/eth0/00:12:cf:8e:f0:0e
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER from 10.0.1.100
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 10.0.1.100
DHCPDECLINE on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6

udhcpc:
[EMAIL PROTECTED]:~# udhcpc  eth0
udhcpc (v1.9.1) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with return code 1
Sending discover...
Sending select for 10.0.1.214...
Lease of 10.0.1.214 obtained, lease time 4294967295
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with return code 1
adding dns 10.0.1.100

Much better result with the latter :)

On Thu, Sep 11, 2008 at 5:52 PM, Xavier Bestel <[EMAIL PROTECTED]>wrote:

> Hi,
>
> I have a FR whith 2008.8 + latest updates, and I can't connect to any
> wifi network with the GUI. The "settings" page shows correctly the list
> of available APs, when I click on one it asks for a password, and that's
> all.
>
> At home, I have a WEP network (which is working very well), and I could
> try connecting with the commandline. An iwlist scan shows the APs, then
> iwconfig essid and key connect to the AP, but that's all.
> When I then run "dhclient eth0", it goes into an infinite loop where it
> receives an OFFER, then does a DECLINE.
>
> Here is the log seen from the server side (dnsmasq):
>
> Sep 10 23:37:17 awak dnsmasq[14577]: DHCPREQUEST(ath0) 
> 192.168.4.17800:19:7d:87:60:4e
> Sep 10 23:37:17 awak dnsmasq[14577]: DHCPACK(ath0) 
> 192.168.4.17800:19:7d:87:60:4e
> Sep 10 23:37:50 awak dnsmasq[14577]: DHCPDISCOVER(ath0) 00:12:cf:8e:fe:59
> Sep 10 23:37:50 awak dnsmasq[14577]: DHCPOFFER(ath0) 
> 192.168.4.17900:12:cf:8e:fe:59
> Sep 10 23:37:50 awak dnsmasq[14577]: DHCPDISCOVER(ath0) 00:12:cf:8e:fe:59
> Sep 10 23:37:50 awak dnsmasq[14577]: DHCPOFFER(ath0) 
> 192.168.4.17900:12:cf:8e:fe:59
> Sep 10 23:37:50 awak dnsmasq[14577]: DHCPREQUEST(ath0) 
> 192.168.4.17900:12:cf:8e:fe:59
> Sep 10 23:37:50 awak dnsmasq[14577]: DHCPACK(ath0) 
> 192.168.4.17900:12:cf:8e:fe:59
> Sep 10 23:37:50 awak dnsmasq[14577]: DHCPDECLINE(ath0) 
> 192.168.4.17900:12:cf:8e:fe:59
> Sep 10 23:37:53 awak dnsmasq[14577]: DHCPDISCOVER(ath0) 00:12:cf:8e:fe:59
> Sep 10 23:37:53 awak dnsmasq[14577]: DHCPOFFER(ath0) 
> 192.168.4.18000:12:cf:8e:fe:59
> Sep 10 23:37:53 awak dnsmasq[14577]: DHCPREQUEST(ath0) 
> 192.168.4.18000:12:cf:8e:fe:59
> Sep 10 23:37:53 awak dnsmasq[14577]: DHCPACK(ath0) 
> 192.168.4.18000:12:cf:8e:fe:59
> Sep 10 23:37:53 awak dnsmasq[14577]: DHCPDECLINE(ath0) 
> 192.168.4.18000:12:cf:8e:fe:59
> Sep 10 23:37:56 awak dnsmasq[14577]: DHCPDISCOVER(ath0) 00:12:cf:8e:fe:59
> etc.
>
> dhclient on the FR shows the same kind of thing.
>
>
> Any hint ?
>
> Thanks,
>        Xav
>
>
>
> _______________________________________________
> Openmoko community mailing list
> community@lists.openmoko.org
> http://lists.openmoko.org/mailman/listinfo/community
>
_______________________________________________
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

Reply via email to