1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

man: mention that DefaultRouteOnDevice= create the IPv4 default route

And add an example setting for creating an IPv6 default route.

Closes #25440.

(cherry picked from commit 15f330cf87)
This commit is contained in:
Yu Watanabe 2022-12-08 13:17:15 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent 6c869ad3bd
commit 1c8abb343a

View File

@ -421,7 +421,7 @@
<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>