From 1c8abb343a44eef755b7aed1ef21aaf176a96d13 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 8 Dec 2022 13:17:15 +0900 Subject: [PATCH] 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 15f330cf8745e68abc429765dafdd8d04ebf7154) --- man/systemd.network.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/man/systemd.network.xml b/man/systemd.network.xml index ffed2ee066..2557417cc5 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