rendered paste bodyroot@OpenWrt:~# cat /etc/config/network
# Copyright (C) 2006 OpenWrt.org
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 type bridge
option ifname eth0
option proto static
option ipaddr 192.168.0.2
option netmask 255.255.255.0
config interface wifi
option ifname ath0
option proto static
option ipaddr 192.168.2.1
option netmask 255.255.255.0
config interface wan
option ifname ppp0
option proto pppoe
root@OpenWrt:~# cat /etc/config/wireless
config wifi-device wifi0
option type atheros
option channel 11
config wifi-iface
option device wifi0
option network wifi
option mode ap
option ssid teszt
option hidden 0
root@OpenWrt:~# cat /etc/dnsmasq.conf
# filter what we send upstream
domain-needed
bogus-priv
filterwin2k
localise-queries
# allow /etc/hosts and dhcp lookups via *.lan
local=/lan/
domain=lan
expand-hosts
resolv-file=/tmp/resolv.conf.auto
#@ifdef dhcp_enable
#dhcp-range=@@start@@,@@end@@,@@netmask@@,@@lease@@
dhcp-authoritative
dhcp-leasefile=/tmp/dhcp.leases
#@endif
#@ifdef wan_ifname
#except-interface=@@wan_ifname@@
#@endif
dhcp-range=lan,192.168.0.50,192.168.0.60,255.255.255.0,1h
dhcp-range=wifi,192.168.2.50,192.168.2.60,255.255.255.0,1h
# use /etc/ethers for static hosts; same format as --dhcp-host
# <hwaddr> <ipaddr>
read-ethers
# other useful options:
# default route(s): dhcp-option=3,192.168.1.1,192.168.1.2
# dns server(s): dhcp-option=6,192.168.1.1,192.168.1.2
dhcp-option=lan,3,192.168.0.2
dhcp-option=lan,6,195.228.74.126
dhcp-option=wifi,3,192.168.2.1
dhcp-option=wifi,6,195.228.74.126