ffnord / ffnord-puppet-gateway

Deploy and manage your Freifunk community gateway, mostly compatible with Gluon.
15 stars 13 forks source link

add more dhcp config #179

Open rubo77 opened 7 years ago

rubo77 commented 7 years ago

This is our current config on vpn6:

cat /etc/dhcp/dhcpd.conf 
# 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;

default-lease-time 600;
max-lease-time 3600;

log-facility local7;
include "/etc/dhcp/interface-br-ffki.conf";
root@vpn6:~# cat /etc/dhcp/interface-br-ffki.conf 
subnet 10.116.128.0 netmask 255.255.128.0 {
  authoritative;
  range 10.116.184.12 10.116.184.244;
  range 10.116.185.11 10.116.185.244;
  range 10.116.186.11 10.116.186.244;
  range 10.116.187.11 10.116.187.244;
  range 10.116.188.11 10.116.188.244;
  range 10.116.189.11 10.116.189.244;
  range 10.116.190.11 10.116.190.244;
  range 10.116.191.11 10.116.191.244;

  default-lease-time 60;
  max-lease-time 300;

  option domain-name "ffki";
  option domain-name-servers 10.116.184.1;

  option ntp-servers 10.116.184.1;
  option routers 10.116.184.1;
}

this has to be implemented in puppet

rubo77 commented 7 years ago

superwichtig!

rubo77 commented 7 years ago

the lease time is set at https://github.com/ffnord/ffnord-puppet-gateway/commit/818c9905e4a950d58a0bd43b3572a3449467338b

what about the other file /etc/dhcp/interface-br-ffki.conf? What else is there to be done?