diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-08 13:17:15 +0900 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-12-08 10:26:26 +0100 |
commit | 15f330cf8745e68abc429765dafdd8d04ebf7154 (patch) | |
tree | 85806d714eeddee7b9e749c74e062e39005291aa /man/systemd.network.xml | |
parent | 2e8378303050522f7c65fde1cd61369067337c39 (diff) | |
download | systemd-15f330cf8745e68abc429765dafdd8d04ebf7154.tar.gz |
man: mention that DefaultRouteOnDevice= create the IPv4 default route
And add an example setting for creating an IPv6 default route.
Closes #25440.
Diffstat (limited to 'man/systemd.network.xml')
-rw-r--r-- | man/systemd.network.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 7b30bd2e78..d83141de11 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -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> @@ -434,6 +434,11 @@ Gateway=0.0.0.0</programlisting></para> <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> |