quickstart.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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 configuration file which by default is installed in
  55. <filename>[kea-install-dir]/etc/kea/kea.conf</filename> and contains
  56. configuration for all Kea services. Configuration choices for DHCPv4
  57. and DHCPv6 services are described in <xref linkend="dhcp4-configuration"/> and <xref linkend="dhcp6-configuration"/>:w
  58. respectively.</para>
  59. </listitem>
  60. <listitem>
  61. <para>In order to start the DHCPv4 server in background, run the
  62. following command (as root):
  63. <screen># <userinput>keactrl start -s dhcp4</userinput></screen>
  64. Or run the following command to start DHCPv6 server instead:
  65. <screen># <userinput>keactrl start -s dhcp6</userinput></screen>
  66. Note that it is also possible to start both servers simultaneously:
  67. <screen>$ <userinput>keactrl start</userinput></screen>
  68. </para>
  69. </listitem>
  70. <listitem>
  71. <para>Verify that Kea server(s) are running:
  72. <screen># <userinput>keactrl status</userinput></screen>
  73. A server status of "inactive" may indicate a configuration
  74. error. Please check the log file (by default named
  75. <filename>[kea-install-dir]/var/kea/kea-dhcp4.log</filename> or
  76. <filename>[kea-install-dir]/var/kea/kea-dhcp6.log</filename>)
  77. for the details of the error.
  78. </para>
  79. </listitem>
  80. <listitem>
  81. <para>
  82. If the server has been started successfully, test that it is
  83. responding to DHCP queries and that the client
  84. receives a configuration from the server; for example, use
  85. the <ulink url="http://www.isc.org/downloads/DHCP/">ISC DHCP client</ulink>.
  86. </para>
  87. </listitem>
  88. <listitem>
  89. <para>
  90. Stop running the server(s):
  91. <screen># <userinput>keactrl stop</userinput></screen>
  92. </para>
  93. </listitem>
  94. </orderedlist>
  95. <para>
  96. For instructions specific to your system, please read the
  97. <ulink url="http://kea.isc.org/wiki/SystemSpecificNotes">system specific notes</ulink>,
  98. available on the <ulink url="http://kea.isc.org/">Kea web site</ulink>.
  99. </para>
  100. <para>The details of <command>keactrl</command> script usage can be found
  101. in <xref linkend="keactrl"/>.</para>
  102. </section>
  103. <section id="quick-start-direct-run">
  104. <title>Running the Kea Servers Directly</title>
  105. <para>The Kea servers can be started directly, without the need to use the
  106. <command>keactrl</command>. To start the DHCPv4 server run the following
  107. command:
  108. <screen># <userinput>kea-dhcp4 -c /path/to/your/kea4/config/file.json</userinput></screen>
  109. Similarly, to start the DHCPv6 server run the following command:
  110. <screen># <userinput>kea-dhcp6 -c /path/to/your/kea6/config/file.json</userinput></screen>
  111. </para>
  112. </section>
  113. </chapter>