Try sshing into the router and restarting the dhcp client (udhcpc) manually:
Code: Select all
udhcpc -t 0 -i $wan_if -b -p /var/run/$wan_if.pid -R&
Moderator: Moderators
Code: Select all
udhcpc -t 0 -i $wan_if -b -p /var/run/$wan_if.pid -R&
Code: Select all
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
config 'interface' 'lan'
option 'ifname' 'eth0'
option 'type' 'bridge'
option 'proto' 'static'
option 'netmask' '255.255.255.0'
option 'ipaddr' '192.168.2.1'
config 'interface' 'wan'
option 'proto' 'dhcp'
option 'ifname' 'wifi0'
Code: Select all
config 'wifi-device' 'wifi0'
option 'type' 'atheros'
option 'channel' 'auto'
option 'disabled' '0'
option 'diversity' '0'
config 'wifi-iface'
option 'device' 'wifi0'
option 'encryption' 'none'
option 'ssid' 'Fonera'
option 'network' 'wan'
option 'mode' 'sta'
option 'txpower' '18'
Code: Select all
root@OpenWrt:/# cat /etc/config/network
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
config 'interface' 'lan'
option 'ifname' 'eth0'
option 'type' 'bridge'
option 'proto' 'static'
option 'netmask' '255.255.255.0'
option 'ipaddr' '192.168.2.1'
option 'dns' '192.168.2.1'
config 'interface' 'wan'
option 'proto' 'dhcp'
option 'type' 'bridge'
Code: Select all
root@OpenWrt:/# cat /etc/config/wireless
config 'wifi-device' 'wifi0'
option 'type' 'atheros'
option 'channel' '2'
config 'wifi-iface' 'cfg2'
option 'device' 'wifi0'
option 'mode' 'sta'
option 'network' 'wan'
option 'ssid' 'Fonera'
option 'encryption' 'none'