2019-06-06 18:25:46 +02:00
|
|
|
.. _quickstart:
|
|
|
|
|
2019-06-17 17:20:36 -04:00
|
|
|
***********
|
|
|
|
Quick Start
|
|
|
|
***********
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
This section describes the basic steps needed to get Kea up and running.
|
|
|
|
For further details, full customizations, and troubleshooting, see the
|
2019-06-28 17:57:37 -04:00
|
|
|
respective chapters elsewhere in this Kea Administrator Reference Manual (ARM).
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
.. _quick-start:
|
|
|
|
|
2019-06-17 17:20:36 -04:00
|
|
|
Quick Start Guide for DHCPv4 and DHCPv6 Services
|
|
|
|
================================================
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
1. Install required run-time and build dependencies. See
|
2019-06-20 08:37:00 -04:00
|
|
|
:ref:`build-requirements` for details.
|
2019-06-06 18:25:46 +02:00
|
|
|
|
2019-06-20 17:08:06 -04:00
|
|
|
2. Download the Kea source tarball from the `ISC.org downloads
|
|
|
|
page <https://www.isc.org/download/>`__ or the `ISC FTP
|
|
|
|
server <ftp://ftp.isc.org/isc/kea/>`__.
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
3. Extract the tarball. For example:
|
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
.. code-block:: console
|
2019-06-06 18:25:46 +02:00
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
$ tar xvzf kea-|release|.tar.gz
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
4. Go into the source directory and run the configure script:
|
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
.. code-block:: console
|
2019-06-06 18:25:46 +02:00
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
$ cd kea-|release|
|
2019-06-06 18:25:46 +02:00
|
|
|
$ ./configure [your extra parameters]
|
|
|
|
|
|
|
|
5. Build it:
|
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
.. code-block:: console
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
$ make
|
|
|
|
|
|
|
|
6. Install it (by default it will be placed in ``/usr/local/``, so it
|
|
|
|
is likely that you will need root privileges for this step):
|
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
.. code-block:: console
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
# make install
|
|
|
|
|
|
|
|
7. Edit the Kea configuration files which by default are installed in
|
|
|
|
the ``[kea-install-dir]/etc/kea/`` 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.
|
|
|
|
|
|
|
|
8. In order to start the DHCPv4 server in the background, run the
|
|
|
|
following command (as root):
|
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
.. code-block:: console
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
# keactrl start -s dhcp4
|
|
|
|
|
|
|
|
Or run the following command to start the DHCPv6 server instead:
|
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
.. code-block:: console
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
# keactrl start -s dhcp6
|
|
|
|
|
|
|
|
Note that it is also possible to start all servers simultaneously:
|
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
.. code-block:: console
|
2019-06-06 18:25:46 +02:00
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
# keactrl start
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
9. Verify that the Kea server(s) is/are running:
|
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
.. code-block:: console
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
# keactrl status
|
|
|
|
|
|
|
|
A server status of "inactive" may indicate a configuration error.
|
|
|
|
Please check the log file (by default named
|
2019-07-18 13:13:59 +02:00
|
|
|
``[kea-install-dir]/var/log/kea-dhcp4.log``,
|
|
|
|
``[kea-install-dir]/var/log/kea-dhcp6.log``,
|
|
|
|
``[kea-install-dir]/var/log/kea-ddns.log`` or
|
|
|
|
``[kea-install-dir]/var/log/kea-ctrl-agent.log``) for the details of
|
2019-06-06 18:25:46 +02:00
|
|
|
the error.
|
|
|
|
|
|
|
|
10. If the server has been started successfully, test that it is
|
|
|
|
responding to DHCP queries and that the client receives a
|
2019-06-20 17:08:06 -04:00
|
|
|
configuration from the server; for example, use the `ISC DHCP
|
|
|
|
client <https://www.isc.org/download/>`__.
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
11. Stop running the server(s):
|
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
.. code-block:: console
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
# keactrl stop
|
|
|
|
|
|
|
|
For instructions specific to your system, please read the
|
2019-06-20 17:08:06 -04:00
|
|
|
`system-specific notes <https://kb.isc.org/docs/installing-kea>`__,
|
2019-06-28 17:57:37 -04:00
|
|
|
available in the Kea section of `ISC's
|
2019-06-20 17:08:06 -04:00
|
|
|
Knowledgebase <https://kb.isc.org/docs>`__.
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
The details of ``keactrl`` script usage can be found in
|
2019-06-20 08:37:00 -04:00
|
|
|
:ref:`keactrl`.
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
.. _quick-start-direct-run:
|
|
|
|
|
2019-06-17 17:20:36 -04:00
|
|
|
Running the Kea Servers Directly
|
|
|
|
================================
|
2019-06-06 18:25:46 +02:00
|
|
|
|
2019-06-17 11:03:56 -04:00
|
|
|
The Kea servers can be started directly, without the need to use
|
2019-06-06 18:25:46 +02:00
|
|
|
``keactrl``. To start the DHCPv4 server run the following command:
|
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
.. code-block:: console
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
# kea-dhcp4 -c /path/to/your/kea4/config/file.json
|
|
|
|
|
|
|
|
Similarly, to start the DHCPv6 server run the following command:
|
|
|
|
|
2019-07-15 08:32:02 +02:00
|
|
|
.. code-block:: console
|
2019-06-06 18:25:46 +02:00
|
|
|
|
|
|
|
# kea-dhcp6 -c /path/to/your/kea6/config/file.json
|