2018-02-06 12:39:24 +00:00
<!--
- Copyright (C) 2014-2018 Internet Systems Consortium, Inc. ("ISC")
-
- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
2018-12-18 15:59:29 -05:00
- file, you can obtain one at http://mozilla.org/MPL/2.0/.
2018-02-06 12:39:24 +00:00
-->
<!-- need this include to make the &keaversion; macro work -->
< !DOCTYPE book [
<!ENTITY % keaversion SYSTEM "version.ent">
%keaversion;
2014-06-11 14:21:54 +02:00
]>
2017-08-17 21:20:59 +03:00
<!-- Converted by db4 - upgrade version 1.1 -->
2018-02-06 12:39:24 +00:00
<chapter xmlns= "http://docbook.org/ns/docbook" version= "5.0"
xml: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
2018-12-18 15:59:29 -05:00
respective chapters in the Kea Administrator Reference Manual (ARM).
2014-06-11 14:21:54 +02:00
</para>
2017-08-17 21:20:59 +03:00
<section xml: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 >
2016-12-15 15:05:18 +02:00
Install required run-time and build dependencies. See <xref linkend= "build-requirements" /> for details.
2014-06-11 14:21:54 +02:00
</simpara>
</listitem>
<listitem >
2014-08-22 11:35:34 +02:00
<para >
2019-01-31 14:50:08 -05:00
Download the Kea source tarball from the <link xmlns:xlink= "http://www.w3.org/1999/xlink" xlink:href= "https://www.isc.org/downloads/" > ISC.org downloads page</link> or the <link xmlns:xlink= "http://www.w3.org/1999/xlink" xlink:href= "http://ftp.isc.org/isc/kea/" > ISC FTP server</link> .
2014-08-22 11:35:34 +02:00
</para>
</listitem>
<listitem >
<para >
Extract the tarball. For example:
2018-02-06 12:39:24 +00:00
<screen > $ <userinput > tar xvzf kea-&keaversion; .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:
2018-02-06 12:39:24 +00:00
<screen > $ <userinput > cd kea-&keaversion; </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:
2017-09-27 17:41:28 +02:00
<filename > kea-dhcp4.conf</filename> , <filename > kea-dhcp6.conf</filename> ,
<filename > kea-dhcp-ddns.conf</filename> and
<filename > kea-ctrl-agent.conf</filename> , for DHCPv4 server, DHCPv6 server,
2018-12-18 15:59:29 -05:00
D2, and Control Agent, respectively.
2017-09-27 17:22:35 +02:00
</para>
</listitem>
2014-06-11 14:21:54 +02:00
<listitem >
2018-12-18 15:59:29 -05:00
<para > In order to start the DHCPv4 server in the background, run the
2014-08-22 11:35:34 +02:00
following command (as root):
<screen > # <userinput > keactrl start -s dhcp4</userinput> </screen>
2018-12-18 15:59:29 -05:00
Or run the following command to start the DHCPv6 server instead:
2014-08-22 11:35:34 +02:00
<screen > # <userinput > keactrl start -s dhcp6</userinput> </screen>
2017-09-27 17:41:28 +02:00
Note that it is also possible to start all servers simultaneously:
2014-08-22 11:35:34 +02:00
<screen > $ <userinput > keactrl start</userinput> </screen>
2014-06-11 14:21:54 +02:00
</para>
</listitem>
<listitem >
2018-12-18 15:59:29 -05:00
<para > Verify that the Kea server(s) is/are running:
2014-08-22 11:35:34 +02:00
<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
2017-09-27 17:41:28 +02:00
<filename > [kea-install-dir]/var/kea/kea-dhcp4.log</filename> ,
<filename > [kea-install-dir]/var/kea/kea-dhcp6.log</filename> ,
<filename > [kea-install-dir]/var/kea/kea-ddns.log</filename> or
<filename > [kea-install-dir]/var/kea/kea-ctrl-agent.log</filename> )
2016-09-18 18:48:37 +01:00
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
2016-12-15 15:05:18 +02:00
the <link xmlns:xlink= "http://www.w3.org/1999/xlink" xlink:href= "http://www.isc.org/downloads/DHCP/" > ISC DHCP client</link> .
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
2018-12-18 15:59:29 -05:00
<link xmlns:xlink= "http://www.w3.org/1999/xlink" xlink:href= "https://kb.isc.org/docs/installing-kea" > system-specific notes</link> ,
2018-11-15 15:29:20 -05:00
available in the <link xmlns:xlink= "http://www.w3.org/1999/xlink" xlink:href= "https://kb.isc.org/docs" > Kea section of ISC's Knowledgebase</link> .
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>
2017-08-17 21:20:59 +03:00
<section xml: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>