2022-07-12 23:36:05 +02:00
|
|
|
{ config, pkgs, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
networking.vlans."net-programmtre" = {
|
|
|
|
id = 211;
|
|
|
|
interface = "ens18";
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.interfaces.net-programmtre.ipv6.addresses = [
|
|
|
|
{ address = "fe80::1"; prefixLength = 64; }
|
|
|
|
{ address = "fd00:10:42:211::1"; prefixLength = 64; }
|
|
|
|
];
|
|
|
|
networking.interfaces.net-programmtre.ipv4.addresses = [
|
|
|
|
{ address = "10.42.211.1"; prefixLength = 24; }
|
|
|
|
];
|
|
|
|
|
|
|
|
services.radvd.config = ''
|
|
|
|
interface net-programmtre {
|
|
|
|
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-programmtre" ];
|
|
|
|
};
|
|
|
|
subnet4 = [
|
|
|
|
{
|
|
|
|
id = 211;
|
|
|
|
subnet = "10.42.211.1/24";
|
|
|
|
pools = [
|
|
|
|
{
|
|
|
|
pool = "10.42.211.100 - 10.42.211.240";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
option-data = [
|
|
|
|
{
|
|
|
|
name = "routers";
|
|
|
|
data = "10.42.211.1";
|
|
|
|
}
|
|
|
|
];
|
2022-07-30 16:16:45 +02:00
|
|
|
reservations = [
|
|
|
|
{
|
2022-08-01 11:54:24 +02:00
|
|
|
# signage-11
|
2022-07-30 16:16:45 +02:00
|
|
|
hw-address = "e4:5f:01:91:f7:fe";
|
|
|
|
ip-address = "10.42.211.11";
|
|
|
|
}
|
|
|
|
{
|
2022-08-01 11:54:24 +02:00
|
|
|
# signage-12
|
2022-07-30 16:16:45 +02:00
|
|
|
hw-address = "e4:5f:01:92:08:13";
|
|
|
|
ip-address = "10.42.211.12";
|
|
|
|
}
|
|
|
|
{
|
2022-08-01 11:54:24 +02:00
|
|
|
# signage-13
|
2022-07-30 16:16:45 +02:00
|
|
|
hw-address = "e4:5f:01:91:f5:59";
|
|
|
|
ip-address = "10.42.211.13";
|
|
|
|
}
|
|
|
|
{
|
2022-08-01 11:54:24 +02:00
|
|
|
# signage-21
|
2022-07-30 16:16:45 +02:00
|
|
|
hw-address = "e4:5f:01:93:70:86";
|
|
|
|
ip-address = "10.42.211.21";
|
|
|
|
}
|
|
|
|
{
|
2022-08-01 11:54:24 +02:00
|
|
|
# signage-22
|
|
|
|
hw-address = "e4:5f:01:93:5b:53";
|
2022-07-30 16:16:45 +02:00
|
|
|
ip-address = "10.42.211.22";
|
|
|
|
}
|
|
|
|
{
|
2022-08-01 11:54:24 +02:00
|
|
|
# signage-23
|
|
|
|
hw-address = "e4:5f:01:93:5c:39";
|
2022-07-30 16:16:45 +02:00
|
|
|
ip-address = "10.42.211.23";
|
|
|
|
}
|
|
|
|
{
|
2022-08-01 11:54:24 +02:00
|
|
|
# signage-24
|
|
|
|
hw-address = "e4:5f:01:93:58:ad";
|
2022-07-30 16:16:45 +02:00
|
|
|
ip-address = "10.42.211.24";
|
|
|
|
}
|
|
|
|
{
|
2022-08-01 11:54:24 +02:00
|
|
|
# signage-25
|
|
|
|
hw-address = "e4:5f:01:93:5b:e9";
|
2022-07-30 16:16:45 +02:00
|
|
|
ip-address = "10.42.211.25";
|
|
|
|
}
|
|
|
|
{
|
2022-08-01 11:54:24 +02:00
|
|
|
# signage-31
|
|
|
|
hw-address = "b8:27:eb:cd:f7:ef";
|
2022-07-30 16:16:45 +02:00
|
|
|
ip-address = "10.42.211.31";
|
|
|
|
}
|
|
|
|
{
|
2022-08-01 11:54:24 +02:00
|
|
|
# signage-32
|
|
|
|
hw-address = "b8:27:eb:1b:5c:f1";
|
2022-07-30 16:16:45 +02:00
|
|
|
ip-address = "10.42.211.32";
|
|
|
|
}
|
|
|
|
];
|
2022-07-12 23:36:05 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2022-07-13 22:17:53 +02:00
|
|
|
|
|
|
|
clerie.forward-filter.interfaces.net-programmtre.rules = [
|
|
|
|
{ incomingInterface = "net-ikt"; }
|
|
|
|
];
|
2022-07-15 01:16:51 +02:00
|
|
|
|
|
|
|
clerie.uplink-selector.interfaces.net-programmtre.uplink = "uplink-b";
|
2022-07-12 23:36:05 +02:00
|
|
|
}
|