After playing a lot on my asus wl500gp router i have managed to break the firmware and had to re-flash the it. Everything went fine, I reconfigured the router as before. The problem is that now I have no dhcp on the wlan interface.
Dhcp works when I use no encryption and doesn't work for psk and wep. I have tried both Kamikaze 7.07 and 7.09. I have also tried flushing the entire nvram without any success. (nvram unset ...)
Any help/idea where to look further is appreciated.
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device wl0
option type broadcom
option channel 5
config wifi-iface
option device wl0
option network lan
option mode ap
option ssid sun-local
option encryption psk
option key somepass
root@OpenWrt:~# cat /etc/config/network | head
#### VLAN configuration
config switch eth0
option vlan0 "1 2 3 4 5*"
option vlan1 "0 5"
#### Loopback configuration
config interface loopback
option ifname "lo"
option proto static
root@OpenWrt:~# cat /etc/config/dhcp
config dhcp
option interface lan
option start 100
option limit 150
option leasetime 12h
config dhcp
option interface wan
option ignore 1
and on the PC: (/var/log/daemon.log)
NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
NetworkManager: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful. Connected to access point 'sun-local
'.
NetworkManager: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
NetworkManager: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
NetworkManager: <info> Activation (wlan0) Beginning DHCP transaction.
NetworkManager: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
NetworkManager: <info> DHCP daemon state is now 12 (successfully started) for interface wlan0
NetworkManager: <info> DHCP daemon state is now 1 (starting) for interface wlan0
dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
dhclient: No DHCPOFFERS received.
avahi-autoipd(wlan0)[7950]: Found user 'avahi-autoipd' (UID 104) and group 'avahi-autoipd' (GID 112).
avahi-autoipd(wlan0)[7950]: Successfully called chroot().
avahi-autoipd(wlan0)[7950]: Successfully dropped root privileges.
avahi-autoipd(wlan0)[7950]: Starting with address 169.254.3.114
avahi-autoipd(wlan0)[7950]: Callout BIND, address 169.254.3.114 on interface wlan0
avahi-autoipd(wlan0)[7950]: Successfully claimed IP address 169.254.3.114
Mar 17 02:18:58 sun-cpu NetworkManager: <info> DHCP daemon state is now 9 (fail) for interface wlan0
NetworkManager: <info> Activation (wlan0) Stage 4 of 5 (IP Configure Timeout) scheduled...
NetworkManager: <info> Activation (wlan0) Stage 4 of 5 (IP Configure Timeout) started...
NetworkManager: <info> Activation (wlan0) failure scheduled...