From: Yu Watanabe Date: Thu, 8 Dec 2022 04:17:15 +0000 (+0900) Subject: man: mention that DefaultRouteOnDevice= create the IPv4 default route X-Git-Tag: v253-rc1~336 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15f330cf8745e68abc429765dafdd8d04ebf7154;p=thirdparty%2Fsystemd.git man: mention that DefaultRouteOnDevice= create the IPv4 default route And add an example setting for creating an IPv6 default route. Closes #25440. --- diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 7b30bd2e78c..d83141de110 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -421,7 +421,7 @@ DefaultRouteOnDevice= - Takes a boolean. If set to true, sets up the default route bound to the interface. + 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, ip route add default dev veth99 @@ -433,6 +433,11 @@ Gateway=0.0.0.0 following instead: [Route] Gateway=0.0.0.0 +Table=1234 + If you'd like to create an IPv6 default route bound to the interface, please use the + following: + [Route] +Gateway=:: Table=1234