2014-06-11 14:21:54 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
|
|
|
|
<!ENTITY mdash "—" >
|
2014-08-28 09:37:32 -07:00
|
|
|
<!ENTITY % version SYSTEM "version.ent">
|
|
|
|
%version;
|
2014-06-11 14:21:54 +02:00
|
|
|
]>
|
|
|
|
|
|
|
|
<chapter id="quickstart">
|
2016-09-18 18:48:37 +01:00
|
|
|
<title>Quick Start</title>
|
2014-06-11 14:21:54 +02:00
|
|
|
|
|
|
|
<para>
|
2016-09-18 18:48:37 +01:00
|
|
|
This section describes the basic steps needed to get Kea up and running.
|
2014-06-11 14:21:54 +02:00
|
|
|
For further details, full customizations, and troubleshooting, see the
|
|
|
|
respective chapters in the Kea guide.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<section id="quick-start">
|
2016-09-18 18:48:37 +01:00
|
|
|
<title>Quick Start Guide for DHCPv4 and DHCPv6 Services</title>
|
2014-06-11 14:21:54 +02:00
|
|
|
|
|
|
|
<orderedlist>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Install required run-time and build dependencies. See <xref
|
|
|
|
linkend="build-requirements"/> for details.
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2014-08-22 11:35:34 +02:00
|
|
|
<para>
|
|
|
|
Download Kea source tarball from <ulink url="https://www.isc.org/downloads/">ISC.org downloads page</ulink> or <ulink url="http://ftp.isc.org/isc/kea/">ISC ftp server</ulink>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Extract the tarball. For example:
|
2014-08-28 13:34:41 -07:00
|
|
|
<screen>$ <userinput>tar xvzf kea-&__VERSION__;.tar.gz</userinput></screen>
|
2014-08-22 11:35:34 +02:00
|
|
|
</para>
|
2014-06-11 14:21:54 +02:00
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2014-06-18 11:12:56 +01:00
|
|
|
<para>Go into the source directory and run the configure script:
|
2014-08-28 09:37:32 -07:00
|
|
|
<screen>$ <userinput>cd kea-&__VERSION__;</userinput>
|
2014-06-11 14:21:54 +02:00
|
|
|
$ <userinput>./configure [your extra parameters]</userinput></screen>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Build it:
|
|
|
|
<screen>$ <userinput>make</userinput></screen>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2016-09-18 18:48:37 +01:00
|
|
|
<para>Install it (by default it will be placed in
|
|
|
|
<filename>/usr/local/</filename>,
|
|
|
|
so it is likely that you will need root privileges for this step):
|
2014-08-22 15:03:06 +02:00
|
|
|
<screen># <userinput>make install</userinput></screen>
|
2014-06-11 14:21:54 +02:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
|
2017-09-27 17:22:35 +02:00
|
|
|
<listitem>
|
|
|
|
<para>Edit the Kea configuration files which by default are installed in
|
|
|
|
the <filename>[kea-install-dir]/etc/kea/</filename> directory. These are:
|
|
|
|
kea-dhcp4.conf, kea-dhcp6.conf, kea-dhcp-ddns.conf and kea-ctrl-agent.conf,
|
|
|
|
for DHCPv4 server, DHCPv6 server, D2 and Control Agent respectively.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
|
2014-06-11 14:21:54 +02:00
|
|
|
<listitem>
|
2014-10-17 17:27:29 -07:00
|
|
|
<para>Edit the configuration file which by default is installed in
|
2014-08-22 11:35:34 +02:00
|
|
|
<filename>[kea-install-dir]/etc/kea/kea.conf</filename> and contains
|
|
|
|
configuration for all Kea services. Configuration choices for DHCPv4
|
2016-09-18 18:48:37 +01:00
|
|
|
and DHCPv6 services are described in <xref linkend="dhcp4-configuration"/> and <xref linkend="dhcp6-configuration"/>:w
|
|
|
|
respectively.</para>
|
2014-08-22 11:35:34 +02:00
|
|
|
</listitem>
|
2014-06-11 14:21:54 +02:00
|
|
|
|
|
|
|
<listitem>
|
2014-08-22 11:35:34 +02:00
|
|
|
<para>In order to start the DHCPv4 server in background, run the
|
|
|
|
following command (as root):
|
|
|
|
<screen># <userinput>keactrl start -s dhcp4</userinput></screen>
|
|
|
|
Or run the following command to start DHCPv6 server instead:
|
|
|
|
<screen># <userinput>keactrl start -s dhcp6</userinput></screen>
|
|
|
|
Note that it is also possible to start both servers simultaneously:
|
|
|
|
<screen>$ <userinput>keactrl start</userinput></screen>
|
2014-06-11 14:21:54 +02:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2014-08-22 11:35:34 +02:00
|
|
|
<para>Verify that Kea server(s) are running:
|
|
|
|
<screen># <userinput>keactrl status</userinput></screen>
|
2016-09-18 18:48:37 +01:00
|
|
|
A server status of "inactive" may indicate a configuration
|
|
|
|
error. Please check the log file (by default named
|
|
|
|
<filename>[kea-install-dir]/var/kea/kea-dhcp4.log</filename> or
|
|
|
|
<filename>[kea-install-dir]/var/kea/kea-dhcp6.log</filename>)
|
|
|
|
for the details of the error.
|
2014-08-22 11:35:34 +02:00
|
|
|
</para>
|
2014-06-18 11:12:56 +01:00
|
|
|
</listitem>
|
2014-06-11 14:21:54 +02:00
|
|
|
|
|
|
|
<listitem>
|
2014-08-22 11:35:34 +02:00
|
|
|
<para>
|
2015-12-14 13:18:30 -06:00
|
|
|
If the server has been started successfully, test that it is
|
2014-08-22 11:35:34 +02:00
|
|
|
responding to DHCP queries and that the client
|
|
|
|
receives a configuration from the server; for example, use
|
|
|
|
the <ulink url="http://www.isc.org/downloads/DHCP/">ISC DHCP client</ulink>.
|
2014-06-11 14:21:54 +02:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
|
|
|
|
<listitem>
|
2014-08-22 11:35:34 +02:00
|
|
|
<para>
|
2016-09-18 18:48:37 +01:00
|
|
|
Stop running the server(s):
|
2014-08-22 11:35:34 +02:00
|
|
|
<screen># <userinput>keactrl stop</userinput></screen>
|
|
|
|
</para>
|
2014-06-18 11:12:56 +01:00
|
|
|
</listitem>
|
2014-06-11 14:21:54 +02:00
|
|
|
</orderedlist>
|
2014-08-27 20:44:49 +02:00
|
|
|
<para>
|
2016-09-18 18:48:37 +01:00
|
|
|
For instructions specific to your system, please read the
|
|
|
|
<ulink url="http://kea.isc.org/wiki/SystemSpecificNotes">system specific notes</ulink>,
|
|
|
|
available on the <ulink url="http://kea.isc.org/">Kea web site</ulink>.
|
2014-08-27 20:44:49 +02:00
|
|
|
</para>
|
2014-06-11 14:21:54 +02:00
|
|
|
|
2014-08-22 11:35:34 +02:00
|
|
|
<para>The details of <command>keactrl</command> script usage can be found
|
2014-08-22 15:03:06 +02:00
|
|
|
in <xref linkend="keactrl"/>.</para>
|
2014-08-22 11:35:34 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<section id="quick-start-direct-run">
|
2016-09-18 18:48:37 +01:00
|
|
|
<title>Running the Kea Servers Directly</title>
|
|
|
|
<para>The Kea servers can be started directly, without the need to use the
|
|
|
|
<command>keactrl</command>. To start the DHCPv4 server run the following
|
2015-12-14 13:18:30 -06:00
|
|
|
command:
|
2014-08-22 11:35:34 +02:00
|
|
|
<screen># <userinput>kea-dhcp4 -c /path/to/your/kea4/config/file.json</userinput></screen>
|
2016-09-18 18:48:37 +01:00
|
|
|
Similarly, to start the DHCPv6 server run the following command:
|
2014-08-22 11:35:34 +02:00
|
|
|
<screen># <userinput>kea-dhcp6 -c /path/to/your/kea6/config/file.json</userinput></screen>
|
|
|
|
</para>
|
2014-06-11 14:21:54 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
</chapter>
|