Update syntax for systemd.network routes

This commit is contained in:
Gene Liverman 2024-12-02 21:06:23 -05:00
parent 1eb75018d3
commit 78ca5583c2
2 changed files with 6 additions and 6 deletions

View file

@ -78,9 +78,9 @@
"2a01:4ff:ff00::add:2" "2a01:4ff:ff00::add:2"
]; ];
routes = [ routes = [
{ routeConfig = { Destination = "172.31.1.1"; }; } { Destination = "172.31.1.1"; }
{ routeConfig = { Gateway = "172.31.1.1"; GatewayOnLink = true; }; } { Gateway = "172.31.1.1"; GatewayOnLink = true; }
{ routeConfig.Gateway = "fe80::1"; } { Gateway = "fe80::1"; }
]; ];
# make the routes on this interface a dependency for network-online.target # make the routes on this interface a dependency for network-online.target
linkConfig.RequiredForOnline = "routable"; linkConfig.RequiredForOnline = "routable";

View file

@ -65,9 +65,9 @@
"2a01:4ff:ff00::add:2" "2a01:4ff:ff00::add:2"
]; ];
routes = [ routes = [
{ routeConfig = { Destination = "172.31.1.1"; }; } { Destination = "172.31.1.1"; }
{ routeConfig = { Gateway = "172.31.1.1"; GatewayOnLink = true; }; } { Gateway = "172.31.1.1"; GatewayOnLink = true; }
{ routeConfig.Gateway = "fe80::1"; } { Gateway = "fe80::1"; }
]; ];
# make the routes on this interface a dependency for network-online.target # make the routes on this interface a dependency for network-online.target
linkConfig.RequiredForOnline = "routable"; linkConfig.RequiredForOnline = "routable";