summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-03-15 18:32:50 +0100
committerLuca Boccassi <luca.boccassi@gmail.com>2024-03-27 14:21:15 +0100
commita3ed665a29ea9355c78a2a6b3a032b9504499dd6 (patch)
treec68be42ab6a3ecb6b5d11f229f75eedebf6607a3 /man
parentjournalctl-show/util: add missing header (diff)
downloadsystemd-a3ed665a29ea9355c78a2a6b3a032b9504499dd6.tar.xz
systemd-a3ed665a29ea9355c78a2a6b3a032b9504499dd6.zip
network/dhcp-server: introduce PersistLeases= setting
Requested at https://github.com/systemd/systemd/pull/31772#issuecomment-2000053357.
Diffstat (limited to 'man')
-rw-r--r--man/networkd.conf.xml21
-rw-r--r--man/systemd.network.xml25
2 files changed, 43 insertions, 3 deletions
diff --git a/man/networkd.conf.xml b/man/networkd.conf.xml
index f7b3b4711c..3b592e9a67 100644
--- a/man/networkd.conf.xml
+++ b/man/networkd.conf.xml
@@ -284,6 +284,27 @@ DUIDRawData=00:00:ab:11:f9:2a:c2:77:29:f9:5c:00</programlisting>
</refsect1>
<refsect1>
+ <title>[DHCPServer] Section Options</title>
+
+ <para>This section configures the default setting of the DHCP server. The following options are available
+ in the [DHCPServer] section:</para>
+
+ <variablelist class='network-directives'>
+ <varlistentry>
+ <term><varname>PersistLeases=</varname></term>
+ <listitem>
+ <para>Specifies the default value for per-network <varname>PersistLeases=</varname>.
+ Takes a boolean. See for details in
+ <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
+ Defaults to <literal>yes</literal>.</para>
+
+ <xi:include href="version-info.xml" xpointer="v256"/>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+
+ <refsect1>
<title>See Also</title>
<para><simplelist type="inline">
<member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
diff --git a/man/systemd.network.xml b/man/systemd.network.xml
index e143aebb1b..4f0510030a 100644
--- a/man/systemd.network.xml
+++ b/man/systemd.network.xml
@@ -428,9 +428,12 @@
Defaults to <literal>no</literal>. Further settings for the DHCP server may be set in the
[DHCPServer] section described below.</para>
- <para>Even if this is enabled, the DHCP server will not be started automatically. It will be
- started after <filename>systemd-networkd-persistent-storage.service</filename> is started, which
- calls <command>networkctl persistent-storage yes</command>. See
+ <para>Even if this is enabled, the DHCP server will not be started automatically and wait for the
+ persistent storage being ready to load/save leases in the storage, unless
+ <varname>RelayTarget=</varname> or <varname>PersistLeases=no</varname> are specified in the
+ [DHCPServer] section. It will be started after
+ <filename>systemd-networkd-persistent-storage.service</filename> is started, which calls
+ <command>networkctl persistent-storage yes</command>. See
<citerefentry><refentrytitle>networkctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
for more details.</para>
@@ -3903,6 +3906,22 @@ ServerAddress=192.168.0.1/24</programlisting>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><varname>PersistLeases=</varname></term>
+ <listitem>
+ <para>Takes a boolean. When true, the DHCP server will load and save leases in the persistent
+ storage. When false, the DHCP server will neither load nor save leases in the persistent storage.
+ Hence, bound leases will be lost when the interface is reconfigured e.g. by
+ <command>networkctl reconfigure</command>, or <filename>systemd-networkd.service</filename>
+ is restarted. That may cause address conflict on the network. So, please take an extra care when
+ disable this setting. When unspecified, the value specified in the same setting in
+ <citerefentry><refentrytitle>networkd.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
+ which defaults to <literal>yes</literal>, will be used.</para>
+
+ <xi:include href="version-info.xml" xpointer="v256"/>
+ </listitem>
+ </varlistentry>
+
</variablelist>
</refsect1>