feat(dhcp): Add DHCP on vlans

Uses networkd, maybe it's better to do it with radius, but it's simpler
This commit is contained in:
catvayor 2024-04-26 09:33:11 +02:00
parent 150e741263
commit 35ab7bfee3

View file

@ -49,6 +49,13 @@ let
Id = vlan;
address = [ ];
extraNetwork = {
networkConfig.DHCPServer = "yes";
dhcpServerConfig = {
EmitRouter = true;
Router = "10.0.0.1";
EmitDNS = true;
DNS = "10.0.0.1";
};
addresses = [
{
addressConfig = {