diff --git a/dhcpd.conf b/dhcpd.conf new file mode 100644 index 0000000..fd1d7c8 --- /dev/null +++ b/dhcpd.conf @@ -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"; \ No newline at end of file diff --git a/updateStatics.sh b/updateStatics.sh new file mode 100644 index 0000000..1203d4b --- /dev/null +++ b/updateStatics.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +cp static.conf /etc/dhcp/ \ No newline at end of file