set rtr adv interval

main
n0emis 3 years ago
parent f0dc913a27
commit bdf5dfb77c
Signed by: n0emis
GPG Key ID: 00FAF748B777CF10

@ -148,12 +148,18 @@ let
radvdConfig = let
radvdPrefixes = if domCfg.radvdPrefixes == [] then domCfg.ipv6Prefixes else domCfg.radvdPrefixes;
mkPrefix = prefix: ''
prefix ${prefix} { };
prefix ${prefix} {
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
'';
in if (!domCfg.enableRadvd) then [] else [ ''
interface ${mkIfName "bridge"} {
IgnoreIfMissing on;
AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
AdvLinkMTU ${toString domCfg.mtu};
RDNSS ${cidrToAddress (head domCfg.ipv6Addresses)} { };
DNSSL ${domCfg.searchDomain} { };

Loading…
Cancel
Save