Add dhcp
This commit is contained in:
parent
7207ac4a5b
commit
80db7ef5a4
|
@ -0,0 +1,45 @@
|
||||||
|
config dnsmasq
|
||||||
|
option domainneeded '1'
|
||||||
|
option localise_queries '1'
|
||||||
|
option rebind_protection '1'
|
||||||
|
option rebind_localhost '1'
|
||||||
|
option local '/lan/'
|
||||||
|
option domain 'lan'
|
||||||
|
option expandhosts '1'
|
||||||
|
option cachesize '1000'
|
||||||
|
option authoritative '1'
|
||||||
|
option readethers '1'
|
||||||
|
option leasefile '/tmp/dhcp.leases'
|
||||||
|
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
|
||||||
|
option localservice '1'
|
||||||
|
option ednspacket_max '1232'
|
||||||
|
|
||||||
|
config dhcp 'lan'
|
||||||
|
option interface 'lan'
|
||||||
|
option start '100'
|
||||||
|
option limit '150'
|
||||||
|
option leasetime '12h'
|
||||||
|
option dhcpv4 'server'
|
||||||
|
option dhcpv6 'server'
|
||||||
|
option ra 'server'
|
||||||
|
list ra_flags 'managed-config'
|
||||||
|
list ra_flags 'other-config'
|
||||||
|
|
||||||
|
config dhcp 'wan'
|
||||||
|
option interface 'wan'
|
||||||
|
|
||||||
|
config odhcpd 'odhcpd'
|
||||||
|
option maindhcp '0'
|
||||||
|
option leasefile '/tmp/hosts/odhcpd'
|
||||||
|
option leasetrigger '/usr/sbin/odhcpd-update'
|
||||||
|
option loglevel '4'
|
||||||
|
|
||||||
|
config host
|
||||||
|
option name 'raspberrypi'
|
||||||
|
option ip '192.168.1.225'
|
||||||
|
option mac 'D8:3A:DD:E7:A6:03'
|
||||||
|
|
||||||
|
config host
|
||||||
|
option name 'raspberrypi'
|
||||||
|
option ip '192.168.1.226'
|
||||||
|
option mac '2C:CF:67:27:0E:46'
|
Loading…
Reference in New Issue