quickstart.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. ]>
  6. <chapter id="quickstart">
  7. <title>Quick start</title>
  8. <para>
  9. This quickly covers the standard steps for installing and deploying Kea.
  10. For further details, full customizations, and troubleshooting, see the
  11. respective chapters in the Kea guide.
  12. </para>
  13. <section id="quick-start">
  14. <title>Quick start guide for DHCPv4 and DHCPv6 services</title>
  15. <orderedlist>
  16. <listitem>
  17. <simpara>
  18. Install required run-time and build dependencies. See <xref
  19. linkend="build-requirements"/> for details.
  20. </simpara>
  21. </listitem>
  22. <listitem>
  23. <para>
  24. 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>.
  25. </para>
  26. </listitem>
  27. <listitem>
  28. <para>
  29. Extract the tarball. For example:
  30. <screen>$ <userinput>tar xvf kea-0.9-beta1.tar.gz</userinput></screen>
  31. </para>
  32. </listitem>
  33. <listitem>
  34. <para>Go into the source directory and run the configure script:
  35. <screen>$ <userinput>cd kea-0.9-beta1</userinput>
  36. $ <userinput>autoreconf --install</userinput>
  37. $ <userinput>./configure [your extra parameters]</userinput></screen>
  38. </para>
  39. </listitem>
  40. <listitem>
  41. <para>Build it:
  42. <screen>$ <userinput>make</userinput></screen>
  43. </para>
  44. </listitem>
  45. <listitem>
  46. <para>Install it (by default the installation prefix is <filename>/usr/local/</filename>,
  47. so you need root privileges for that step):
  48. <screen>$ <userinput>make install</userinput></screen>
  49. </para>
  50. </listitem>
  51. <listitem>
  52. <para>Edit configuration file which is by default installed in
  53. <filename>[kea-install-dir]/etc/kea/kea.conf</filename> and contains
  54. configuration for all Kea services. Configuration choices for DHCPv4
  55. and DHCPv6 services are described in <xref linkend="dhcp4-configuration"/> and <xref linkend="dhcp6-configuration"/> respectively.</para>
  56. </listitem>
  57. <listitem>
  58. <para>In order to start the DHCPv4 server in background, run the
  59. following command (as root):
  60. <screen># <userinput>keactrl start -s dhcp4</userinput></screen>
  61. Or run the following command to start DHCPv6 server instead:
  62. <screen># <userinput>keactrl start -s dhcp6</userinput></screen>
  63. Note that it is also possible to start both servers simultaneously:
  64. <screen>$ <userinput>keactrl start</userinput></screen>
  65. </para>
  66. </listitem>
  67. <listitem>
  68. <para>Verify that Kea server(s) are running:
  69. <screen># <userinput>keactrl status</userinput></screen>
  70. If the server status is "inactive" may indicate a configuration
  71. error. Please check a log file (by default located in
  72. <filename>[kea-install-dir]/var/kea/kea.log</filename>) for the
  73. details of the error.
  74. </para>
  75. </listitem>
  76. <listitem>
  77. <para>
  78. If the server has been started sucessfully, test that it is
  79. responding to DHCP queries and that the client
  80. receives a configuration from the server; for example, use
  81. the <ulink url="http://www.isc.org/downloads/DHCP/">ISC DHCP client</ulink>.
  82. </para>
  83. </listitem>
  84. <listitem>
  85. <para>
  86. Stop running server(s):
  87. <screen># <userinput>keactrl stop</userinput></screen>
  88. </para>
  89. </listitem>
  90. </orderedlist>
  91. <para>The details of <command>keactrl</command> script usage can be found
  92. in <xref linkend="keactrl"/></para>
  93. </section>
  94. <section id="quick-start-direct-run">
  95. <title>Running Kea servers directly</title>
  96. <para>Kea servers can be started directly (without a need to use
  97. <command>keactrl</command>). To start DHCPv4 server run the following
  98. commmand:
  99. <screen># <userinput>kea-dhcp4 -c /path/to/your/kea4/config/file.json</userinput></screen>
  100. And, to start the DHCPv6 server run the following command:
  101. <screen># <userinput>kea-dhcp6 -c /path/to/your/kea6/config/file.json</userinput></screen>
  102. </para>
  103. </section>
  104. </chapter>