]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: add an example to configure default route on device with table
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 15 Jun 2021 07:05:08 +0000 (16:05 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 15 Jun 2021 10:29:20 +0000 (11:29 +0100)
Prompted by #19911.

man/systemd.network.xml

index b059ed07710f63f57d2075a5d1ddfec9e7e99480..8d3d65024c8b856e7b65f2b352c927d360200153 100644 (file)
           <listitem>
             <para>Takes a boolean. If set to true, sets up the 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></para>
+            This is equivalent to e.g. the following,
+            <programlisting>ip route add default dev veth99</programlisting>
+            or,
+            <programlisting>[Route]
+Gateway=0.0.0.0</programlisting></para>
+            <para>Currently, there are no way to specify e.g., the table for the route configured by
+            this setting. To configure the default route with such an additional property, please use
+            the following instead:
+            <programlisting>[Route]
+Gateway=0.0.0.0
+Table=1234</programlisting></para>
           </listitem>
         </varlistentry>
         <varlistentry>