Systemd/networkd: Difference between revisions
mNo edit summary |
Fix static route example |
||
| Line 184: | Line 184: | ||
routes = [ | routes = [ | ||
# create default routes for both IPv6 and IPv4 | # create default routes for both IPv6 and IPv4 | ||
{ | { Gateway = "fe80::1"; } | ||
{ | { Gateway = "192.0.2.1"; } | ||
# or when the gateway is not on the same network | # or when the gateway is not on the same network | ||
{ | { | ||
Gateway = "172.31.1.1"; | |||
GatewayOnLink = true; | |||
} | } | ||
]; | ]; | ||