Configuration consists of two parts. The first is the configuration file that has to be given on commandline:
dhcpy6d -c dhcpy6d.conf
Dhcpy6d source code contains a config-example.conf as well as a clients-example.conf.
To get a SQLite database for volatile storage use the one coming in var/lib/volatile.sqlite or use sqlite commandline client with doc/volatile.sql:
sqlite volatile.sqlite < volatile.sql
The latter applies to MySQL databases:
mysql dhcpy6d < config.sql mysql dhcpy6d < volatile.sql
General and client configuration files are in RFC 822 style parsed by Python ConfigParser module.
The general configuration file consists of 3 types of sections:
- [dhcpy6d] – general settings
- [address_<address>] – definition of 1 address type, there can be many of this
- [class_<class>] – definition of class of clients, also several are allowed, refers to address definitons
Find more information about these sections here:
See some example configuration files:
If clients are configured in a file instead of a database it might look like this: