summaryrefslogtreecommitdiffstats
path: root/man/systemd.network.xml
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-09-17 13:36:33 +0200
committerGitHub <noreply@github.com>2023-09-17 13:36:33 +0200
commit23bef849d917f6c0abc82cd795a5622df6494903 (patch)
tree393b0e7226b7ab78be9da6098b8ea899156c666d /man/systemd.network.xml
parentcore: redirect LSan's report to /dev/console during manager exit (diff)
parenttest-network: add testcase for [DHCPServer] ServerAddress= with null address (diff)
downloadsystemd-23bef849d917f6c0abc82cd795a5622df6494903.tar.xz
systemd-23bef849d917f6c0abc82cd795a5622df6494903.zip
Merge pull request #29119 from yuwata/network-dhcp-server-allow-null-server-address
network/dhcp-server: allow null server address
Diffstat (limited to 'man/systemd.network.xml')
-rw-r--r--man/systemd.network.xml41
1 files changed, 36 insertions, 5 deletions
diff --git a/man/systemd.network.xml b/man/systemd.network.xml
index 0532007010..62adac34e1 100644
--- a/man/systemd.network.xml
+++ b/man/systemd.network.xml
@@ -3277,12 +3277,43 @@ Token=prefixstable:2002:da8:1::</programlisting></para>
<varlistentry>
<term><varname>ServerAddress=</varname></term>
- <listitem><para>Specifies server address for the DHCP server. Takes an IPv4 address with prefix
- length, for example 192.168.0.1/24. This setting may be useful when the link on
- which the DHCP server is running has multiple static addresses. When unset, one of static addresses
- in the link will be automatically selected. Defaults to unset.</para>
+ <listitem>
+ <para>Specifies the server address for the DHCP server. Takes an IPv4 address with prefix length
+ separated with a slash, e.g. <literal>192.168.0.1/24</literal>. Defaults to unset, and one of
+ static IPv4 addresses configured in [Network] or [Address] section will be automatically selected.
+ This setting may be useful when the interface on which the DHCP server is running has multiple
+ static IPv4 addresses.</para>
+ <para>This implies <varname>Address=</varname> in [Network] or [Address] section with the same
+ address and prefix length. That is,
+ <programlisting>[Network]
+DHCPServer=yes
+Address=192.168.0.1/24
+Address=192.168.0.2/24
+[DHCPServer]
+ServerAddress=192.168.0.1/24</programlisting>
+ or
+ <programlisting>[Network]
+DHCPServer=yes
+[Address]
+Address=192.168.0.1/24
+[Address]
+Address=192.168.0.2/24
+[DHCPServer]
+ServerAddress=192.168.0.1/24</programlisting>
+ are equivalent to the following.
+ <programlisting>[Network]
+DHCPServer=yes
+Address=192.168.0.2/24
+[DHCPServer]
+ServerAddress=192.168.0.1/24</programlisting>
+ </para>
+ <para>Since version 255, like the <varname>Address=</varname> setting in [Network] or [Address]
+ section, this also supports a null address, e.g. <literal>0.0.0.0/24</literal>, and an unused
+ address will be automatically selected. For more details about the automatic address selection,
+ see <varname>Address=</varname> setting in [Network] section in the above.</para>
- <xi:include href="version-info.xml" xpointer="v249"/></listitem>
+ <xi:include href="version-info.xml" xpointer="v249"/>
+ </listitem>
</varlistentry>
<varlistentry>