added example conf and update-script
This commit is contained in:
parent
76b3a4d30e
commit
522c78aaf5
31
dhcpd.conf
Normal file
31
dhcpd.conf
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# The ddns-updates-style parameter controls whether or not the server will
|
||||||
|
# attempt to do a DNS update when a lease is confirmed. We default to the
|
||||||
|
# behavior of the version 2 packages ('none', since DHCP v2 didn't
|
||||||
|
# have support for DDNS.)
|
||||||
|
ddns-update-style none;
|
||||||
|
|
||||||
|
# option definitions common to all supported networks...
|
||||||
|
option domain-name "freifunk.ffhh";
|
||||||
|
#option domain-name-servers ns1.example.org, ns2.example.org;
|
||||||
|
|
||||||
|
default-lease-time 600;
|
||||||
|
max-lease-time 7200;
|
||||||
|
|
||||||
|
# If this DHCP server is the official DHCP server for the local
|
||||||
|
# network, the authoritative directive should be uncommented.
|
||||||
|
authoritative;
|
||||||
|
|
||||||
|
# Use this to send dhcp log messages to a different log file (you also
|
||||||
|
# have to hack syslog.conf to complete the redirection).
|
||||||
|
log-facility local7;
|
||||||
|
|
||||||
|
# This is a very basic subnet declaration.
|
||||||
|
#freifunk aenderung
|
||||||
|
subnet 10.112.0.0 netmask 255.255.192.0 {
|
||||||
|
range 10.112.14.2 10.112.15.254;
|
||||||
|
|
||||||
|
option routers 10.112.14.1;
|
||||||
|
option domain-name-servers 10.112.14.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
include "/etc/dhcp/static.conf";
|
3
updateStatics.sh
Normal file
3
updateStatics.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cp static.conf /etc/dhcp/
|
Loading…
Reference in a new issue