quickstart.xml 4.8 KB

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