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 radvdConfig = let
radvdPrefixes = if domCfg.radvdPrefixes == [] then domCfg.ipv6Prefixes else domCfg.radvdPrefixes; radvdPrefixes = if domCfg.radvdPrefixes == [] then domCfg.ipv6Prefixes else domCfg.radvdPrefixes;
mkPrefix = prefix: '' mkPrefix = prefix: ''
prefix ${prefix} { }; prefix ${prefix} {
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
''; '';
in if (!domCfg.enableRadvd) then [] else [ '' in if (!domCfg.enableRadvd) then [] else [ ''
interface ${mkIfName "bridge"} { interface ${mkIfName "bridge"} {
IgnoreIfMissing on; IgnoreIfMissing on;
AdvSendAdvert on; AdvSendAdvert on;
MinRtrAdvInterval 3;
MaxRtrAdvInterval 10;
AdvLinkMTU ${toString domCfg.mtu}; AdvLinkMTU ${toString domCfg.mtu};
RDNSS ${cidrToAddress (head domCfg.ipv6Addresses)} { }; RDNSS ${cidrToAddress (head domCfg.ipv6Addresses)} { };
DNSSL ${domCfg.searchDomain} { }; DNSSL ${domCfg.searchDomain} { };

Loading…
Cancel
Save