bundles/radvd: introduce, add to home.router

This commit is contained in:
Franzi 2020-11-14 11:47:44 +01:00
parent fa224a9939
commit 644eb37b82
Signed by: kunsi
GPG key ID: 12E3D2136B818350
6 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#!/bin/bash
systemctl stop radvd

View file

@ -0,0 +1,3 @@
#!/bin/bash
systemctl start radvd

View file

@ -0,0 +1,16 @@
% for interface, config in sorted(interfaces.items()):
interface ${interface}
{
AdvSendAdvert on;
prefix ${config.get('prefix', '::/64')}
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
RDNSS ${' '.join(sorted(config['rdnss']))}
{
AdvRDNSSLifetime 900;
};
};
% endfor