Changeset 4d418ccd for networking


Ignore:
Timestamp:
06/06/2023 09:18:30 AM (12 months ago)
Author:
Thomas Trepl <thomas@…>
Branches:
12.0, 12.1, kea, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
e8a4d3b1
Parents:
c2ab6f4
Message:

Add ISC-Kea DHCP server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • networking/connect/kea.xml

    rc2ab6f4 r4d418ccd  
    123123    </para>
    124124
    125 <screen role="root"><userinput>make install</userinput></screen>
    126 
    127   </sect2>
    128 
     125<screen role="root"><userinput>make -j1 install</userinput></screen>
     126
     127  </sect2>
     128
     129  <sect2 role="commands">
     130    <title>Command Explanations</title>
     131
     132    <para>
     133      <parameter>make -j1 install</parameter>: ISC doesn not recomment any form of
     134      parallel or job server options when doing the install.
     135    </para>
     136
     137  </sect2>
     138 
    129139  <sect2 role="configuration">
    130140    <title>Configuring ISC Kea DHCP</title>
     141
     142    <para>Consult the
     143    <ulink url="https://kea.readthedocs.io/en/kea-2.2.0/">Kea Administrator Reference Manual</ulink>
     144    for detailled information about the configuration of Kea.</para>
    131145
    132146    <para>The support of IPv4, IPv6 and DDNS has been splitted into
    133147    separate servers which runs independently from each other. Each
    134148    of them has its own configuration file. Additional configuration
    135     files come from the control agent which is uses to control the
     149    files come from the keactrl agent which is uses to control the
    136150    servers in an easy way.</para>
    137151   
     
    146160        <filename>/etc/kea/kea-dhcp-ddns.conf</filename>
    147161      </para>
    148 <!--
     162
    149163      <indexterm zone="kea keactrl-config">
    150164        <primary sortas="e-etc-kea-keactrl.conf">/etc/kea/keactrl.conf</primary>
    151165      </indexterm>
    152 
     166<!--
    153167      <indexterm zone="kea kea-ctrl-agent-config">
    154168        <primary sortas="e-etc-kea-kea-ctrl-agent.conf">/etc/kea/kea-ctrl-agent.conf</primary>
    155169      </indexterm>
    156 
     170-->
    157171      <indexterm zone="kea kea-dhcp4-config">
    158172        <primary sortas="e-etc-kea-dhcp4.conf">/etc/kea/kea-dhcp4.conf</primary>
    159173      </indexterm>
    160 
     174<!--
    161175      <indexterm zone="kea kea-dhcp6-config">
    162176        <primary sortas="e-etc-kea-dhcp6.conf">/etc/kea/kea-dhcp6.conf</primary>
     
    171185    <sect3 id="keactrl-config">
    172186      <title>Kea Control Configuration</title>
    173      
     187
    174188      <para><command>keactrl</command> is used to control the
    175189      independend servers (IPv4, IPv6, DDNS). Its configuration file
     
    183197        <listitem>
    184198          <para>IPv4 DHCP server</para>
    185           <para>Set <literal>dhcp4=yes</literal> to start it, set
     199          <para>This daemon handles requests for IPv4 addresses.
     200          Set <literal>dhcp4=yes</literal> to start it, set
    186201          <literal>dhcp4=no</literal> in case DHCP service for IPv4
    187202          is not wanted.</para>
     
    189204        <listitem>
    190205          <para>IPv6 DHCP server</para>
    191           <para>Set <literal>dhcp6=yes</literal> to start it, set
     206          <para>This daemon handles requests for IPv6 addresses.
     207          Set <literal>dhcp6=yes</literal> to start it, set
    192208          <literal>dhcp6=no</literal> in case DHCP service for IPv6
    193209          is not wanted.</para>
     
    195211        <listitem>
    196212          <para>Dynamic DNS</para>
    197           <para>Set <literal>dhcp_ddns=yes</literal> to enable it, set
     213          <para>This daemon is used to update a DNS server dynamically
     214          when Kea assignes an IP address to a device.
     215          Set <literal>dhcp_ddns=yes</literal> to enable it, set
    198216          <literal>dhcp_ddns=no</literal> in case dynamic DNS updates
    199217          are not wanted.</para>
     
    201219        <listitem>
    202220          <para>Control Agent</para>
    203           <para>Set <literal>ctrl_agent=yes</literal> to start the
     221          <para>The Control Agent is a daemon which allows the
     222          (re)configuration of the Kea DHCP service via REST API.
     223          Set <literal>ctrl_agent=yes</literal> to start the
    204224          control agent (service providing a REST API), set
    205225          <literal>ctrl_agent=no</literal> in case the control agent
     
    210230      <para>The Netconf service is not installed because required
    211231      dependencies are not covered by the current BLFS book.</para>
    212      
     232
     233      <para>With the following command, Kea will be configured to
     234      start the dhcp service for IPv4 and the
     235      dynamic DNS update, while the control agent and
     236      the dhcp service for IPv6 remains down. Tweak the command to
     237      match your needs on started services and execute as the
     238      <systemitem class="username">root</systemitem> user:</para>
     239
     240<screen><userinput role="root">sed -e "s/^dhcp4=.*/dhcp4=yes/" \
     241    -e "s/^dhcp6=.*/dhcp6=no/" \
     242    -e "s/^dhcp_ddns=.*/dhcp_ddns=yes/" \
     243    -e "s/^ctrl_agent=.*/ctrl_agent=no/" \
     244    -i /etc/kea/keactrl.conf
     245</userinput></screen>
     246
    213247    </sect3>
    214248
     
    225259<screen role="nodump" ><userinput>cat &gt; /etc/kea/kea-dhcpd4.conf &lt;&lt; "EOF"
    226260<literal>// Begin /etc/kea/kea-dhcpd4.conf
    227 
     261{
    228262"Dhcp4": {
    229263    "interfaces-config": {
     
    286320    ]
    287321}
    288 
     322}
    289323// End /etc/kea/kea-dhcpd4.conf</literal>
    290324EOF</userinput></screen>
Note: See TracChangeset for help on using the changeset viewer.