]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: mention DHCPv4 Router option is ignored when Classless Static Routes option...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 3 Nov 2023 06:45:52 +0000 (15:45 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 3 Nov 2023 10:14:59 +0000 (10:14 +0000)
For #29564.

man/systemd.network.xml

index 02039b494254f7e31f431938dab86a04b748ad8b..55a5a2ec1c7f0993ef6a3b2e234f03290c2549b1 100644 (file)
@@ -2567,9 +2567,13 @@ NFTSet=prefix:netdev:filter:eth_ipv4_prefix</programlisting>
       <varlistentry>
         <term><varname>UseGateway=</varname></term>
         <listitem>
-          <para>When true, the gateway will be requested from the DHCP server and added to the routing
-          table with a metric of 1024, and a scope of <option>link</option>. When unset, the value
-          specified with <varname>UseRoutes=</varname> is used.</para>
+          <para>When true, and the DHCP server provides a Router option, the default gateway based on the
+          router address will be configured. Defaults to unset, and the value specified with
+          <varname>UseRoutes=</varname> will be used.</para>
+
+          <para>Note, when the server provides both the Router and Classless Static Routes option, and
+          <varname>UseRoutes=</varname> is enabled, the Router option is always ignored regardless of this
+          setting. See <ulink url="https://datatracker.ietf.org/doc/html/rfc3442">RFC 3442</ulink>.</para>
 
           <xi:include href="version-info.xml" xpointer="v246"/>
         </listitem>