mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 17:15:00 +02:00
moving to dnsmasq as dhcp server
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@75 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c16f39693e
commit
c6655b4963
22
root/etc/dnsmasq.conf
Normal file
22
root/etc/dnsmasq.conf
Normal file
@ -0,0 +1,22 @@
|
||||
# filter what we send upstream
|
||||
domain-needed
|
||||
bogus-priv
|
||||
filterwin2k
|
||||
|
||||
# allow /etc/hosts and dhcp lookups via *.lan
|
||||
local=/lan/
|
||||
domain=lan
|
||||
|
||||
# no dns queries from the wan
|
||||
except-interface=vlan1
|
||||
|
||||
# enable dhcp (start,end,netmask,leasetime)
|
||||
dhcp-range=192.168.1.100,192.168.1.250,255.255.255.0,12h
|
||||
dhcp-leasefile=/tmp/dhcp.leases
|
||||
|
||||
# allow a /etc/ethers for static hosts
|
||||
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
|
@ -1,5 +1,4 @@
|
||||
#!/bin/sh
|
||||
/usr/sbin/telnetd -l /bin/login
|
||||
/usr/sbin/httpd -p 80 -h /www -r WRT54G Router
|
||||
/usr/sbin/udhcpd /etc/udhcpd.conf
|
||||
#dnsmasq started from /etc/inittab
|
||||
/usr/sbin/dnsmasq
|
||||
|
@ -1,3 +1,2 @@
|
||||
::sysinit:/etc/init.d/rcS
|
||||
::shutdown:/sbin/halt
|
||||
::respawn:/usr/sbin/dnsmasq -d -l /tmp/udhcpd.leases -s lan
|
||||
|
@ -1,12 +0,0 @@
|
||||
max_leases 200
|
||||
start 192.168.1.20
|
||||
end 192.168.1.250
|
||||
interface br0
|
||||
lease_file /tmp/udhcpd.leases
|
||||
domain lan
|
||||
pidfile /tmp/udhcpd.pid
|
||||
option dns 192.168.1.1
|
||||
option subnet 255.255.255.0
|
||||
option router 192.168.1.1
|
||||
lease 7200
|
||||
|
Loading…
Reference in New Issue
Block a user