From: Marcin Siodelski Date: Fri, 13 Jun 2014 09:16:49 +0000 (+0200) Subject: [3422] Install kea.conf file in the etc folder. X-Git-Tag: trac3434_base~6^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1eecf8a6d7bcd8d2842c8648e0b1eabb0c3b4e54;p=thirdparty%2Fkea.git [3422] Install kea.conf file in the etc folder. --- diff --git a/configure.ac b/configure.ac index 01bfbb0d7a..0a4bac7db9 100644 --- a/configure.ac +++ b/configure.ac @@ -1459,6 +1459,7 @@ AC_CONFIG_FILES([compatcheck/Makefile src/bin/dhcp6/tests/test_data_files_config.h src/bin/dhcp6/tests/test_libraries.h src/bin/keactrl/keactrl + src/bin/keactrl/kea.conf src/bin/keactrl/keactrl.conf src/bin/keactrl/Makefile src/bin/keactrl/tests/keactrl_tests.sh diff --git a/src/bin/keactrl/.gitignore b/src/bin/keactrl/.gitignore index 052400cae4..645a4d72ee 100644 --- a/src/bin/keactrl/.gitignore +++ b/src/bin/keactrl/.gitignore @@ -1,2 +1,3 @@ -keactrl -keactrl.conf +/keactrl +/kea.conf +/keactrl.conf diff --git a/src/bin/keactrl/Makefile.am b/src/bin/keactrl/Makefile.am index 627da00149..d0100fc70e 100644 --- a/src/bin/keactrl/Makefile.am +++ b/src/bin/keactrl/Makefile.am @@ -5,9 +5,9 @@ SUBDIRS = . tests # If the default location needs to be changed the it may be achieved by # setting KEACTRL_CONF environment variable. sbin_SCRIPTS = keactrl -CONFIGFILES = keactrl.conf +CONFIGFILES = keactrl.conf kea.conf -DISTCLEANFILES = keactrl keactrl.conf +DISTCLEANFILES = keactrl $(CONFIGFILES) EXTRA_DIST = keactrl.in keactrl.conf.in install-data-local: diff --git a/src/bin/keactrl/kea.conf.in b/src/bin/keactrl/kea.conf.in new file mode 100644 index 0000000000..3429605527 --- /dev/null +++ b/src/bin/keactrl/kea.conf.in @@ -0,0 +1,60 @@ +# This is a basic configuration for the Kea DHCPv4 and DHCPv6 servers. +# Subnet declarations are commented out and no interfaces are listed. +# Therefore, the servers will not listen or to any queries. The basic +# configuration must be extended to specify interfaces on which the +# servers should listen. Also, subnets and options must be declared. +{ + +# DHCPv4 configuration starts here. +"Dhcp4": +{ +# Add names of interfaces to listen on. + "interfaces": [ ], + +# Use Memfile lease database backend to store leases in a CSV file. + "lease-database": { + "type": "memfile" + }, + +# Global (inherited by all subnets) lease lifetime is mandatory parameter. + "valid-lifetime": 4000, + +# Below an example of the simple subnet declaration. Uncomment to +# enable it. + "subnet4": [ +# { "pool": [ "192.0.2.1 - 192.0.2.200" ], +# "subnet": "192.0.2.0/24" } + ] +}, + +# DHCPv6 configuration starts here. +"Dhcp6": +{ +# Add names of interfaces to listen on. + "interfaces": [ ], + +# Addresses will be assigned with preferred and valid lifetimes +# being 3000 and 4000, respectively. Client is told to start +# renewing after 1000 seconds. If the server does not repond +# after 2000 seconds since the lease was granted, client is supposed +# to start REBIND procedure (emergency renewal that allows switching +# to a different server). + "preferred-lifetime": 3000, + "valid-lifetime": 4000, + "renew-timer": 1000, + "rebind-timer": 2000, + +# The following list defines subnets. Uncomment to enable them. + "subnet6": [ +# { "pool": [ "2001:db8:1::/80" ], +# "subnet": "2001:db8:1::/64" }, +# { "pool": [ "2001:db8:2::/80" ], +# "subnet": "2001:db8:2::/64" }, +# { "pool": [ "2001:db8:3::/80" ], +# "subnet": "2001:db8:3::/64" }, +# { "pool": [ "2001:db8:4::/80" ], +# "subnet": "2001:db8:4::/64" } + ] +} + +}