]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: mention that DefaultRouteOnDevice= create the IPv4 default route
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 8 Dec 2022 04:17:15 +0000 (13:17 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 8 Dec 2022 09:26:26 +0000 (10:26 +0100)
And add an example setting for creating an IPv6 default route.

Closes #25440.

man/systemd.network.xml

index 7b30bd2e78c97566a0740a5b6a28f12b77021bcb..d83141de1103f8e16f4e98a7b0c2a206ae570f66 100644 (file)
       <varlistentry>
         <term><varname>DefaultRouteOnDevice=</varname></term>
         <listitem>
-          <para>Takes a boolean. If set to true, sets up the default route bound to the interface.
+          <para>Takes a boolean. If set to true, sets up the IPv4 default route bound to the interface.
           Defaults to false. This is useful when creating routes on point-to-point interfaces. This is
           equivalent to e.g. the following,
           <programlisting>ip route add default dev veth99</programlisting>
@@ -433,6 +433,11 @@ Gateway=0.0.0.0</programlisting></para>
           following instead:
           <programlisting>[Route]
 Gateway=0.0.0.0
+Table=1234</programlisting></para>
+          <para>If you'd like to create an IPv6 default route bound to the interface, please use the
+          following:
+          <programlisting>[Route]
+Gateway=::
 Table=1234</programlisting></para>
         </listitem>
       </varlistentry>