quickstart.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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>./configure [your extra parameters]</userinput></screen>
  37. </para>
  38. </listitem>
  39. <listitem>
  40. <para>Build it:
  41. <screen>$ <userinput>make</userinput></screen>
  42. </para>
  43. </listitem>
  44. <listitem>
  45. <para>Install it (by default the installation prefix is <filename>/usr/local/</filename>,
  46. so you likely need root privileges for that step):
  47. <screen># <userinput>make install</userinput></screen>
  48. </para>
  49. </listitem>
  50. <listitem>
  51. <para>Edit configuration file which is by default installed in
  52. <filename>[kea-install-dir]/etc/kea/kea.conf</filename> and contains
  53. configuration for all Kea services. Configuration choices for DHCPv4
  54. and DHCPv6 services are described in <xref linkend="dhcp4-configuration"/> and <xref linkend="dhcp6-configuration"/>, respectively.</para>
  55. </listitem>
  56. <listitem>
  57. <para>In order to start the DHCPv4 server in background, run the
  58. following command (as root):
  59. <screen># <userinput>keactrl start -s dhcp4</userinput></screen>
  60. Or run the following command to start DHCPv6 server instead:
  61. <screen># <userinput>keactrl start -s dhcp6</userinput></screen>
  62. Note that it is also possible to start both servers simultaneously:
  63. <screen>$ <userinput>keactrl start</userinput></screen>
  64. </para>
  65. </listitem>
  66. <listitem>
  67. <para>Verify that Kea server(s) are running:
  68. <screen># <userinput>keactrl status</userinput></screen>
  69. If the server status is "inactive" may indicate a configuration
  70. error. Please check a log file (by default located in
  71. <filename>[kea-install-dir]/var/kea/kea.log</filename>) for the
  72. details of the error.
  73. </para>
  74. </listitem>
  75. <listitem>
  76. <para>
  77. If the server has been started sucessfully, test that it is
  78. responding to DHCP queries and that the client
  79. receives a configuration from the server; for example, use
  80. the <ulink url="http://www.isc.org/downloads/DHCP/">ISC DHCP client</ulink>.
  81. </para>
  82. </listitem>
  83. <listitem>
  84. <para>
  85. Stop running server(s):
  86. <screen># <userinput>keactrl stop</userinput></screen>
  87. </para>
  88. </listitem>
  89. </orderedlist>
  90. <para>The details of <command>keactrl</command> script usage can be found
  91. in <xref linkend="keactrl"/>.</para>
  92. </section>
  93. <section id="quick-start-direct-run">
  94. <title>Running Kea servers directly</title>
  95. <para>Kea servers can be started directly (without a need to use
  96. <command>keactrl</command>). To start DHCPv4 server run the following
  97. commmand:
  98. <screen># <userinput>kea-dhcp4 -c /path/to/your/kea4/config/file.json</userinput></screen>
  99. And, to start the DHCPv6 server run the following command:
  100. <screen># <userinput>kea-dhcp6 -c /path/to/your/kea6/config/file.json</userinput></screen>
  101. </para>
  102. </section>
  103. </chapter>