Systemd/networkd: Difference between revisions

Klinger (talk | contribs)
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
       { routeConfig.Gateway = "fe80::1"; }
       { Gateway = "fe80::1"; }
       { routeConfig.Gateway = "192.0.2.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
       {
       {
         routeConfig = {
         Gateway = "172.31.1.1";
          Gateway = "172.31.1.1";
        GatewayOnLink = true;
          GatewayOnLink = true;
        };
       }
       }
     ];
     ];