chore: add default route with metric for gustave

This commit is contained in:
Julien Malka 2024-05-25 19:24:14 +02:00
parent ed2d612b5e
commit 0e89853f1b
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -16,13 +16,16 @@
systemd.network.enable = true;
systemd.network.networks."10-wan" = {
matchConfig.Name = "ens18";
routes = [
{
routeConfig.Metric = 500;
routeConfig.Destination = "0.0.0.0/0";
}
];
networkConfig = {
# start a DHCP Client for IPv4 Addressing/Routing
DHCP = "ipv4";
# accept Router Advertisements for Stateless IPv6 Autoconfiguraton (SLAAC)
Address = "2a01:e0a:de4:a0e1:eb2:aaaa::45";
Address = "2a01:e0a:de4:a0e1:eb2:aaaa::45/128";
};
# make routing on this interface a dependency for network-online.target
linkConfig.RequiredForOnline = "routable";
};