quickstart.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
  4. <!ENTITY mdash "&#x2014;" >
  5. <!ENTITY % version SYSTEM "version.ent">
  6. %version;
  7. ]>
  8. <chapter id="quickstart">
  9. <title>Quick Start</title>
  10. <para>
  11. This section describes the basic steps needed to get Kea up and running.
  12. For further details, full customizations, and troubleshooting, see the
  13. respective chapters in the Kea guide.
  14. </para>
  15. <section id="quick-start">
  16. <title>Quick Start Guide for DHCPv4 and DHCPv6 Services</title>
  17. <orderedlist>
  18. <listitem>
  19. <simpara>
  20. Install required run-time and build dependencies. See <xref
  21. linkend="build-requirements"/> for details.
  22. </simpara>
  23. </listitem>
  24. <listitem>
  25. <para>
  26. 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>.
  27. </para>
  28. </listitem>
  29. <listitem>
  30. <para>
  31. Extract the tarball. For example:
  32. <screen>$ <userinput>tar xvzf kea-&__VERSION__;.tar.gz</userinput></screen>
  33. </para>
  34. </listitem>
  35. <listitem>
  36. <para>Go into the source directory and run the configure script:
  37. <screen>$ <userinput>cd kea-&__VERSION__;</userinput>
  38. $ <userinput>./configure [your extra parameters]</userinput></screen>
  39. </para>
  40. </listitem>
  41. <listitem>
  42. <para>Build it:
  43. <screen>$ <userinput>make</userinput></screen>
  44. </para>
  45. </listitem>
  46. <listitem>
  47. <para>Install it (by default it will be placed in
  48. <filename>/usr/local/</filename>,
  49. so it is likely that you will need root privileges for this step):
  50. <screen># <userinput>make install</userinput></screen>
  51. </para>
  52. </listitem>
  53. <listitem>
  54. <para>Edit the Kea configuration files which by default are installed in
  55. the <filename>[kea-install-dir]/etc/kea/</filename> directory. These are:
  56. <filename>kea-dhcp4.conf</filename>, <filename>kea-dhcp6.conf</filename>,
  57. <filename>kea-dhcp-ddns.conf</filename> and
  58. <filename>kea-ctrl-agent.conf</filename>, for DHCPv4 server, DHCPv6 server,
  59. D2 and Control Agent respectively.
  60. </para>
  61. </listitem>
  62. <listitem>
  63. <para>In order to start the DHCPv4 server in background, run the
  64. following command (as root):
  65. <screen># <userinput>keactrl start -s dhcp4</userinput></screen>
  66. Or run the following command to start DHCPv6 server instead:
  67. <screen># <userinput>keactrl start -s dhcp6</userinput></screen>
  68. Note that it is also possible to start all servers simultaneously:
  69. <screen>$ <userinput>keactrl start</userinput></screen>
  70. </para>
  71. </listitem>
  72. <listitem>
  73. <para>Verify that Kea server(s) are running:
  74. <screen># <userinput>keactrl status</userinput></screen>
  75. A server status of "inactive" may indicate a configuration
  76. error. Please check the log file (by default named
  77. <filename>[kea-install-dir]/var/kea/kea-dhcp4.log</filename>,
  78. <filename>[kea-install-dir]/var/kea/kea-dhcp6.log</filename>,
  79. <filename>[kea-install-dir]/var/kea/kea-ddns.log</filename> or
  80. <filename>[kea-install-dir]/var/kea/kea-ctrl-agent.log</filename>)
  81. for the details of the error.
  82. </para>
  83. </listitem>
  84. <listitem>
  85. <para>
  86. If the server has been started successfully, test that it is
  87. responding to DHCP queries and that the client
  88. receives a configuration from the server; for example, use
  89. the <ulink url="http://www.isc.org/downloads/DHCP/">ISC DHCP client</ulink>.
  90. </para>
  91. </listitem>
  92. <listitem>
  93. <para>
  94. Stop running the server(s):
  95. <screen># <userinput>keactrl stop</userinput></screen>
  96. </para>
  97. </listitem>
  98. </orderedlist>
  99. <para>
  100. For instructions specific to your system, please read the
  101. <ulink url="http://kea.isc.org/wiki/SystemSpecificNotes">system specific notes</ulink>,
  102. available on the <ulink url="http://kea.isc.org/">Kea web site</ulink>.
  103. </para>
  104. <para>The details of <command>keactrl</command> script usage can be found
  105. in <xref linkend="keactrl"/>.</para>
  106. </section>
  107. <section id="quick-start-direct-run">
  108. <title>Running the Kea Servers Directly</title>
  109. <para>The Kea servers can be started directly, without the need to use the
  110. <command>keactrl</command>. To start the DHCPv4 server run the following
  111. command:
  112. <screen># <userinput>kea-dhcp4 -c /path/to/your/kea4/config/file.json</userinput></screen>
  113. Similarly, to start the DHCPv6 server run the following command:
  114. <screen># <userinput>kea-dhcp6 -c /path/to/your/kea6/config/file.json</userinput></screen>
  115. </para>
  116. </section>
  117. </chapter>