diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-03-15 18:32:50 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-03-27 14:21:15 +0100 |
commit | a3ed665a29ea9355c78a2a6b3a032b9504499dd6 (patch) | |
tree | c68be42ab6a3ecb6b5d11f229f75eedebf6607a3 /man/systemd.network.xml | |
parent | journalctl-show/util: add missing header (diff) | |
download | systemd-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/systemd.network.xml')
-rw-r--r-- | man/systemd.network.xml | 25 |
1 files changed, 22 insertions, 3 deletions
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> |