From: Tomek Mrugalski Date: Fri, 22 Feb 2019 12:57:10 +0000 (+0100) Subject: [#362,!182] Example of hosts-database added. X-Git-Tag: 481-remote-subnet4-set-inconsistent-work-when-id-subnet-is-duplicated_base~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8176e6a7c3468ea7dc0e4ffa3694422363094f23;p=thirdparty%2Fkea.git [#362,!182] Example of hosts-database added. --- diff --git a/doc/guide/dhcp6-srv.xml b/doc/guide/dhcp6-srv.xml index 290e480fdb..c31a629f3f 100644 --- a/doc/guide/dhcp6-srv.xml +++ b/doc/guide/dhcp6-srv.xml @@ -557,6 +557,22 @@ linkend="cassandra-database-configuration4"/> for details. supported hosts database types are MySQL and PostgreSQL; the Cassandra backend does not yet support host reservations. + For example, the following configuration can be used to + configure connection to MySQL: + +"Dhcp6": { + "hosts-database": { + "type": "mysql", + "name": "kea", + "user": "kea", + "password": "secret123", + "host": "localhost", + "port": 3306 + } +} Note that depending on your database configuration, many of + the parameters may be optional. + + Please note that usage of hosts storage is optional. A user can define all host reservations in the configuration file, and that is the recommended way if the number of reservations is small. However, when the number of