router: setup cameras vlan
All checks were successful
flake / flake (push) Successful in 1m14s

This commit is contained in:
Jake Hillion 2024-09-16 20:48:10 +01:00
parent 1189a41df9
commit 4726713f4f

View File

@ -32,6 +32,14 @@
nat.enable = lib.mkForce false;
useDHCP = false;
vlans = {
cameras = {
id = 3;
interface = "eth1";
};
};
interfaces = {
enp1s0 = {
name = "eth0";
@ -47,6 +55,14 @@
}
];
};
cameras /* cameras@eth1 */ = {
ipv6.addresses = [
{
address = "fd00:408b:d218:92ee:c0::1";
prefixLength = 64;
}
];
};
enp3s0 = {
name = "eth2";
ipv4.addresses = [
@ -246,6 +262,29 @@
];
};
};
dhcp6 = {
enable = true;
settings = {
interfaces-config = {
interfaces = [ "cameras" ];
};
subnet6 = [
{
interface = "cameras";
subnet = "fd00:408b:d218:92ee:c0::/64";
pools = [{
pool = "fd00:408b:d218:92ee:c0::2-fd00:408b:d218:92ee:c0::ffff";
}];
reservations = [
];
}
];
};
};
};
unbound = {