mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-07-02 23:47:18 +02:00
chore: add default route with metric for gustave
This commit is contained in:
parent
acd0cbf1bf
commit
cf958acb03
1 changed files with 7 additions and 4 deletions
|
@ -16,13 +16,16 @@
|
||||||
systemd.network.enable = true;
|
systemd.network.enable = true;
|
||||||
systemd.network.networks."10-wan" = {
|
systemd.network.networks."10-wan" = {
|
||||||
matchConfig.Name = "ens18";
|
matchConfig.Name = "ens18";
|
||||||
|
routes = [
|
||||||
|
{
|
||||||
|
routeConfig.Metric = 500;
|
||||||
|
routeConfig.Destination = "0.0.0.0/0";
|
||||||
|
}
|
||||||
|
];
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
# start a DHCP Client for IPv4 Addressing/Routing
|
|
||||||
DHCP = "ipv4";
|
DHCP = "ipv4";
|
||||||
# accept Router Advertisements for Stateless IPv6 Autoconfiguraton (SLAAC)
|
Address = "2a01:e0a:de4:a0e1:eb2:aaaa::45/128";
|
||||||
Address = "2a01:e0a:de4:a0e1:eb2:aaaa::45";
|
|
||||||
};
|
};
|
||||||
# make routing on this interface a dependency for network-online.target
|
|
||||||
linkConfig.RequiredForOnline = "routable";
|
linkConfig.RequiredForOnline = "routable";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue