quickstart.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. <!-- We may need to replace it with the link to a downloadable tarball
  23. once we have it. -->
  24. <listitem>
  25. <simpara>
  26. Checkout the latest Kea revision from the Git repository:
  27. <screen>$ <userinput>git clone git://git.kea.isc.org/kea</userinput> </screen>
  28. </simpara>
  29. </listitem>
  30. <listitem>
  31. <para>Go into the source directory and run the configure script:
  32. <screen>$ <userinput>cd kea</userinput>
  33. $ <userinput>autoreconf --install</userinput>
  34. $ <userinput>./configure [your extra parameters]</userinput></screen>
  35. </para>
  36. </listitem>
  37. <listitem>
  38. <para>Build it:
  39. <screen>$ <userinput>make</userinput></screen>
  40. </para>
  41. </listitem>
  42. <listitem>
  43. <para>Install it (by default the installation prefix is <filename>/usr/local/</filename>,
  44. so you need root privileges for that step):
  45. <screen>$ <userinput>make install</userinput></screen>
  46. </para>
  47. </listitem>
  48. <listitem>
  49. <para>If you wish to run a DHCP server for IPv4, you need to set up and start
  50. the kea-dhcp4 server:</para>
  51. <orderedlist>
  52. <listitem>
  53. <para>Edit your configuration file for DHCPv4. <xref linkend="dhcp4-configuration"/>
  54. describes the configuration choices available; example DHCPv4 configuration can be found in
  55. doc/examples/kea4.</para>
  56. </listitem>
  57. <listitem>
  58. <para>Start Kea DHCPv4 server (as root):
  59. <screen># <userinput>kea-dhcp4 -c /path/to/your/kea4/config/file.json</userinput></screen>
  60. </para>
  61. </listitem>
  62. <listitem>
  63. <para>Test it; for example, use the
  64. <ulink url="http://www.isc.org/downloads/DHCP/">ISC DHCP client</ulink>
  65. to send DHCPv4 queries to the server and verify that the client receives a
  66. configuration from the server:
  67. <screen>$ <userinput>dhclient -4 eth0</userinput></screen>
  68. </para>
  69. </listitem>
  70. </orderedlist>
  71. </listitem>
  72. <listitem>
  73. <para>If you wish to run a DHCP server for IPv6, you need to set up and start
  74. the kea-dhcp6 server:</para>
  75. <orderedlist>
  76. <listitem>
  77. <para>Edit your configuration file for DHCPv6. <xref linkend="dhcp6-configuration"/>
  78. describes the configuration choices, and some example DHCPv6 configuration can be found in
  79. doc/examples/kea6.</para>
  80. </listitem>
  81. <listitem>
  82. <para>Start Kea DHCPv6 server (as root):
  83. <screen># <userinput>kea-dhcp6 -c /path/to/your/kea6/config/file.json</userinput></screen>
  84. </para>
  85. </listitem>
  86. <listitem>
  87. <para>Test it; for example, use the
  88. <ulink url="http://www.isc.org/downloads/DHCP/">ISC DHCP client</ulink>
  89. to send DHCPv6 queries to the server and verify that the client receives a
  90. configuration from the server:
  91. <screen>$ <userinput>dhclient -6 eth0</userinput></screen>
  92. </para>
  93. </listitem>
  94. </orderedlist>
  95. </listitem>
  96. </orderedlist>
  97. </section>
  98. </chapter>