Changes

OpenWRT on Asus WL-500gP: Installation Guide

1,948 bytes added, 17:48, 15 July 2007
The following lines were added (+) and removed (-):
'''incomplete, more to come...'''== DNS and DHCP == The Asus WL-500gP has internal DHCP capabilities.  Using the nvram option the Asus router own DHCP server can be enabled, however, to make the router respond to dns queries as a caching names server you should use dnsmasq instead. Disable the router dhcp server and enable dhcp assignment via dnsmasq.  To use dnsmasq simply edit the following file:  /etc/dnsmasq.conf  I used dnsmasq.conf instead of nvram.  I wiped the S60dnsmasq file and created my own.  My init script for dnsmasq contains only the fillowing line:  killall -9 dnsmasq ; dnsmasq -K -I vlan1 My /etc/dnsmasq.conf contains the following:  <nowiki># filter what we send upstream</nowiki> <nowiki>domain-needed</nowiki> <nowiki>bogus-priv</nowiki> <nowiki>filterwin2k</nowiki> <nowiki>localise-queries</nowiki> <nowiki></nowiki> <nowiki># allow /etc/hosts and dhcp lookups via *.lan</nowiki> <nowiki>local=/lan/</nowiki> <nowiki>domain=lan</nowiki> <nowiki>expand-hosts</nowiki> <nowiki>no-negcache</nowiki> <nowiki>resolv-file=/etc/resolv.conf</nowiki> <nowiki></nowiki> <nowiki># enable dhcp (start,end,netmask,leasetime)</nowiki> <nowiki>dhcp-authoritative</nowiki> <nowiki></nowiki> <nowiki># dhcp-range=[network-id,]<start-addr>,<end-addr>[[,<netmask>],<broadcast>][,<default lease time>]</nowiki> <nowiki>dhcp-range=lan,192.168.30.100,192.168.30.150,255.255.255.0,24h</nowiki> <nowiki>dhcp-range=wifi,192.168.31.100,192.168.31.105,255.255.255.0,2h</nowiki> <nowiki></nowiki> <nowiki>dhcp-leasefile=/var/dhcp.leases</nowiki> <nowiki></nowiki> <nowiki># use /etc/ethers for static hosts; same format as --dhcp-host</nowiki> <nowiki># <hwaddr> <ipaddr></nowiki> <nowiki>read-ethers</nowiki> <nowiki></nowiki> <nowiki># other useful options:</nowiki> <nowiki># default route(s): dhcp-option=3,192.168.1.1,192.168.1.2</nowiki> <nowiki>#    dns server(s): dhcp-option=6,192.168.1.1,192.168.1.2</nowiki> <nowiki>dhcp-option=6,64.21.192.5,64.21.192.6</nowiki>     
Bureaucrat, administrator
16,192
edits