{ config, pkgs, ...}: { networking.vlans."net-open-office" = { id = 212; interface = "ens18"; }; networking.interfaces.net-open-office.ipv6.addresses = [ { address = "fe80::1"; prefixLength = 64; } { address = "fd00:10:42:212::1"; prefixLength = 64; } ]; networking.interfaces.net-open-office.ipv4.addresses = [ { address = "10.42.212.1"; prefixLength = 24; } ]; services.radvd.config = '' interface net-open-office { AdvSendAdvert on; MaxRtrAdvInterval 30; prefix ::/64 { AdvValidLifetime 60; AdvPreferredLifetime 30; }; RDNSS 2a01:4f8:1c0c:8221::8 {}; DNSSL bula22.de {}; }; ''; services.kea.dhcp4 = { settings = { interfaces-config = { interfaces = [ "net-open-office" ]; }; subnet4 = [ { id = 212; subnet = "10.42.212.1/24"; pools = [ { pool = "10.42.212.100 - 10.42.212.240"; } ]; option-data = [ { name = "routers"; data = "10.42.212.1"; } ]; reservations = [ { # drucker.bula22.de hw-address = "00:21:b7:87:50:2c"; ip-address = "10.42.212.2"; } ]; } ]; }; }; clerie.forward-filter.interfaces.net-open-office.rules = [ { incomingInterface = "net-ikt"; } { destinationAddress = "10.42.212.2/32"; } ]; clerie.uplink-selector.interfaces.net-open-office.uplink = "uplink-b"; }