change networking

This commit is contained in:
2023-12-01 22:27:42 +01:00
parent 4158730c6a
commit 6af562cc73
3 changed files with 73 additions and 66 deletions

View File

@@ -17,10 +17,6 @@
matchConfig.PermanentMACAddress = "a8:b8:e0:00:43:c2";
linkConfig.Name = "lan";
};
"30-multimedia" = {
matchConfig.PermanentMACAddress = "a8:b8:e0:00:43:c3";
linkConfig.Name = "multimedia";
};
};
};
@@ -30,16 +26,20 @@
nameservers = [ "9.9.9.9" "149.112.112.112" ];
# Define VLANS
vlans = {
# multimedia = {
# id = 3;
# interface = "enp5s0";
# };
infrastructure = {
id = 101;
interface = "enp5s0";
};
multimedia = {
id = 99;
interface = "enp5s0";
};
smart = {
id = 4094;
id = 100;
interface = "enp5s0";
};
guest = {
id = 100;
id = 254;
interface = "enp5s0";
};
};
@@ -47,7 +47,7 @@
interfaces = {
# Don't request DHCP on the physical interfaces
lan.useDHCP = false;
server.useDHCP = false;
enp4s0.useDHCP = false;
enp5s0.useDHCP = false;
# Handle the VLANs
@@ -64,6 +64,12 @@
# prefixLength = 24;
# }];
# };
infrastructure = {
ipv4.addresses = [{
address = "10.42.101.1";
prefixLength = 24;
}];
};
multimedia = {
ipv4.addresses = [{
address = "10.42.99.1";