cleanup systemd-networkd configs

This commit is contained in:
Adithya 2024-12-07 19:18:06 +05:30
parent 1072924034
commit e96b80ccef
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
6 changed files with 174 additions and 15 deletions

View file

@ -6,11 +6,37 @@
enable = true; enable = true;
wait-online.enable = false; wait-online.enable = false;
networks = { networks = {
"41-ether" = { "20-virbr" = {
matchConfig = {
Name = "virbr*";
Type = "bridge";
};
linkConfig = {
Unmanaged = true;
};
};
"21-docker" = {
matchConfig = {
Name = "docker*";
Type = "bridge";
};
linkConfig = {
Unmanaged = true;
};
};
"22-veth" = {
matchConfig = {
Name = "veth*";
Type = "ether";
};
linkConfig = {
Unmanaged = true;
};
};
"40-ether" = {
enable = true; enable = true;
matchConfig = { matchConfig = {
Type = "ether"; Type = "ether";
Name = "e*";
}; };
networkConfig = { networkConfig = {
DHCP = "yes"; DHCP = "yes";
@ -18,9 +44,13 @@
}; };
dhcpV4Config = { dhcpV4Config = {
UseDomains = true; UseDomains = true;
RouteMetric = 100;
};
ipv6AcceptRAConfig = {
RouteMetric = 100;
}; };
linkConfig = { linkConfig = {
RequiredForOnline = "yes"; RequiredForOnline = "routable";
}; };
}; };
}; };

View file

@ -6,11 +6,37 @@
enable = true; enable = true;
wait-online.enable = false; wait-online.enable = false;
networks = { networks = {
"41-ether" = { "20-virbr" = {
matchConfig = {
Name = "virbr*";
Type = "bridge";
};
linkConfig = {
Unmanaged = true;
};
};
"21-docker" = {
matchConfig = {
Name = "docker*";
Type = "bridge";
};
linkConfig = {
Unmanaged = true;
};
};
"22-veth" = {
matchConfig = {
Name = "veth*";
Type = "ether";
};
linkConfig = {
Unmanaged = true;
};
};
"40-ether" = {
enable = true; enable = true;
matchConfig = { matchConfig = {
Type = "ether"; Type = "ether";
Name = "e*";
}; };
networkConfig = { networkConfig = {
DHCP = "yes"; DHCP = "yes";
@ -18,9 +44,13 @@
}; };
dhcpV4Config = { dhcpV4Config = {
UseDomains = true; UseDomains = true;
RouteMetric = 100;
};
ipv6AcceptRAConfig = {
RouteMetric = 100;
}; };
linkConfig = { linkConfig = {
RequiredForOnline = "yes"; RequiredForOnline = "routable";
}; };
}; };
}; };

View file

@ -6,11 +6,37 @@
enable = true; enable = true;
wait-online.enable = false; wait-online.enable = false;
networks = { networks = {
"41-ether" = { "20-virbr" = {
matchConfig = {
Name = "virbr*";
Type = "bridge";
};
linkConfig = {
Unmanaged = true;
};
};
"21-docker" = {
matchConfig = {
Name = "docker*";
Type = "bridge";
};
linkConfig = {
Unmanaged = true;
};
};
"22-veth" = {
matchConfig = {
Name = "veth*";
Type = "ether";
};
linkConfig = {
Unmanaged = true;
};
};
"40-ether" = {
enable = true; enable = true;
matchConfig = { matchConfig = {
Type = "ether"; Type = "ether";
Name = "e*";
}; };
networkConfig = { networkConfig = {
DHCP = "yes"; DHCP = "yes";
@ -18,9 +44,13 @@
}; };
dhcpV4Config = { dhcpV4Config = {
UseDomains = true; UseDomains = true;
RouteMetric = 100;
};
ipv6AcceptRAConfig = {
RouteMetric = 100;
}; };
linkConfig = { linkConfig = {
RequiredForOnline = "yes"; RequiredForOnline = "routable";
}; };
}; };
}; };

View file

@ -6,11 +6,37 @@
enable = true; enable = true;
wait-online.enable = false; wait-online.enable = false;
networks = { networks = {
"41-ether" = { "20-virbr" = {
matchConfig = {
Name = "virbr*";
Type = "bridge";
};
linkConfig = {
Unmanaged = true;
};
};
"21-docker" = {
matchConfig = {
Name = "docker*";
Type = "bridge";
};
linkConfig = {
Unmanaged = true;
};
};
"22-veth" = {
matchConfig = {
Name = "veth*";
Type = "ether";
};
linkConfig = {
Unmanaged = true;
};
};
"40-ether" = {
enable = true; enable = true;
matchConfig = { matchConfig = {
Type = "ether"; Type = "ether";
Name = "e*";
}; };
networkConfig = { networkConfig = {
DHCP = "yes"; DHCP = "yes";
@ -18,9 +44,13 @@
}; };
dhcpV4Config = { dhcpV4Config = {
UseDomains = true; UseDomains = true;
RouteMetric = 100;
};
ipv6AcceptRAConfig = {
RouteMetric = 100;
}; };
linkConfig = { linkConfig = {
RequiredForOnline = "yes"; RequiredForOnline = "routable";
}; };
}; };
}; };

View file

@ -42,6 +42,15 @@
Unmanaged = true; Unmanaged = true;
}; };
}; };
"23-veth" = {
matchConfig = {
Name = "vnet*";
Type = "ether";
};
linkConfig = {
Unmanaged = true;
};
};
"40-ether" = { "40-ether" = {
enable = true; enable = true;
matchConfig = { matchConfig = {

View file

@ -6,11 +6,37 @@
enable = true; enable = true;
wait-online.enable = false; wait-online.enable = false;
networks = { networks = {
"41-ether" = { "20-virbr" = {
matchConfig = {
Name = "virbr*";
Type = "bridge";
};
linkConfig = {
Unmanaged = true;
};
};
"21-docker" = {
matchConfig = {
Name = "docker*";
Type = "bridge";
};
linkConfig = {
Unmanaged = true;
};
};
"22-veth" = {
matchConfig = {
Name = "veth*";
Type = "ether";
};
linkConfig = {
Unmanaged = true;
};
};
"40-ether" = {
enable = true; enable = true;
matchConfig = { matchConfig = {
Type = "ether"; Type = "ether";
Name = "e*";
}; };
networkConfig = { networkConfig = {
DHCP = "yes"; DHCP = "yes";
@ -18,9 +44,13 @@
}; };
dhcpV4Config = { dhcpV4Config = {
UseDomains = true; UseDomains = true;
RouteMetric = 100;
};
ipv6AcceptRAConfig = {
RouteMetric = 100;
}; };
linkConfig = { linkConfig = {
RequiredForOnline = "yes"; RequiredForOnline = "routable";
}; };
}; };
}; };