Page 2 of 2

Re: Gargoyle for Atheros AR7130

Posted: Wed May 27, 2009 7:57 am
by Eric
It looks like DHCP isn't starting for some reason. I've actually had some problems with DHCP on OpenWRT, though that's mostly been with the wireless WAN interface, not a wired WAN.

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&
(where $wan_if is the name of your wan interface)

Re: Gargoyle for Atheros AR7130

Posted: Wed May 27, 2009 6:01 pm
by szemo77
Ok, I successful connect with wireless DHCP after router reflash.
I think that is not problem with network config oraz wireless, because Gargoyle get now ip address form wirless DHCP and on ssh connection from router console I can ping any internet host.
But no pings from any Lan host to internet.

Firewall got bug or somethink is wrong with masquerade, :? dns?
I compare configs form LuCi and Gargoule based on Wireless dhcp client and gateway mode on eth0.

Configs from LuCi (working):

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'
Gargoyle configs:

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'