2022-07-12 23:36:05 +02:00
|
|
|
{ config, pkgs, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
networking.vlans."net-verwaltung" = {
|
|
|
|
id = 206;
|
|
|
|
interface = "ens18";
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.interfaces.net-verwaltung.ipv6.addresses = [
|
|
|
|
{ address = "fe80::1"; prefixLength = 64; }
|
|
|
|
{ address = "fd00:10:42:206::1"; prefixLength = 64; }
|
|
|
|
];
|
|
|
|
networking.interfaces.net-verwaltung.ipv4.addresses = [
|
|
|
|
{ address = "10.42.206.1"; prefixLength = 24; }
|
|
|
|
];
|
|
|
|
|
|
|
|
services.radvd.config = ''
|
|
|
|
interface net-verwaltung {
|
|
|
|
AdvSendAdvert on;
|
2022-07-25 16:49:49 +02:00
|
|
|
MaxRtrAdvInterval 30;
|
2022-07-25 15:42:07 +02:00
|
|
|
prefix ::/64 {
|
|
|
|
AdvValidLifetime 60;
|
|
|
|
AdvPreferredLifetime 30;
|
|
|
|
};
|
2022-07-12 23:36:05 +02:00
|
|
|
RDNSS 2a01:4f8:1c0c:8221::8 {};
|
|
|
|
DNSSL bula22.de {};
|
|
|
|
};
|
|
|
|
'';
|
|
|
|
|
|
|
|
services.kea.dhcp4 = {
|
|
|
|
settings = {
|
|
|
|
interfaces-config = {
|
|
|
|
interfaces = [ "net-verwaltung" ];
|
|
|
|
};
|
|
|
|
subnet4 = [
|
|
|
|
{
|
|
|
|
id = 206;
|
|
|
|
subnet = "10.42.206.1/24";
|
|
|
|
pools = [
|
|
|
|
{
|
|
|
|
pool = "10.42.206.100 - 10.42.206.240";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
option-data = [
|
|
|
|
{
|
|
|
|
name = "routers";
|
|
|
|
data = "10.42.206.1";
|
|
|
|
}
|
|
|
|
];
|
2022-07-26 15:12:44 +02:00
|
|
|
reservations = [
|
|
|
|
{ # mkay.bula22.de
|
|
|
|
hw-address = "ac:87:a3:0c:70:04";
|
|
|
|
ip-address = "10.42.206.2";
|
|
|
|
}
|
|
|
|
];
|
2022-07-12 23:36:05 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2022-07-13 22:17:53 +02:00
|
|
|
|
|
|
|
clerie.forward-filter.interfaces.net-verwaltung.rules = [
|
|
|
|
{ incomingInterface = "net-ikt"; }
|
|
|
|
];
|
2022-07-15 01:16:51 +02:00
|
|
|
|
|
|
|
clerie.uplink-selector.interfaces.net-verwaltung.uplink = "uplink-a";
|
2022-07-12 23:36:05 +02:00
|
|
|
}
|