I've installed OpenWRT on a Asus WL-520GU wireless router. I got the image from MighyOhm.com (http://mightyohm.com/files/kamikaze-2.4 … uashfs.trx). Everything seems to be working fairly well. To be fair, I don't think I'm having an OpenWRT problem, I *think* this is a network configuration problem.
I can ping the IP address of the router from my computer and visa versa. But, I'm having problems pinging outside systems. I noticed that when I reboot the router, this message scrolls by -
Device eth0: hwaddr 00-24-8C-86-08-94, ipaddr 192.168.1.3, mask 255.255.255.0
gateway not set, nameserver not set
When I get a shell prompt, I try pinging from the router and I get "bad address":
root@OpenWrt:/# ping www.google.com
ping: bad address 'www.google.com'
I've included copies of the a couple of network configuration network files below. In terms of my home network set-up, I have another router connected to the internet at 192.168.1.1 and I've got the ASUS either using 192.168.1.3 or dhcp (i've tried both) to try to connect through my permanent router to the internet. I've also tried to set the gateway and nameserver address using nvram commands:
nvram set wan_gateway=192.168.1.1
nvram set wan_dns=68.94.156.1
nvram set lan_gateway=192.168.1.1
nvram set lan_dns=68.94.156.1
nvram commit
Here is my /etc/config/network file:
-----------------------------------------------------------
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
#### LAN configuration
config interface lan
option type bridge
option ifname "eth0.0"
option proto dhcp
option netmask 255.255.255.0
option gateway 192.168.1.1
option dns 68.94.156.1
option dns 68.94.157.1
#### WAN configuration
config interface wan
option ifname "eth0.1"
option proto dhcp
option netmask 255.255.255.0
option gateway 192.168.1.1
option dns 68.94.156.1
option dns 68.94.157.1
-----------------------------
And my /etc/config/wireless file:
--------------------------------
option type broadcom
option channel 6
# REMOVE THIS LINE TO ENABLE WIFI:
#option disabled 1
config wifi-iface
option device wl0
option network wan
option mode sta
option ssid Palmer
option encryption wep
option key XXXXXXXXXX (changed to protect the innocent)
-----------------------