bundles/radvd: introduce, add to home.router
This commit is contained in:
parent
fa224a9939
commit
644eb37b82
6 changed files with 77 additions and 0 deletions
3
bundles/radvd/files/ip-down
Normal file
3
bundles/radvd/files/ip-down
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
systemctl stop radvd
|
3
bundles/radvd/files/ip-up
Normal file
3
bundles/radvd/files/ip-up
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
systemctl start radvd
|
16
bundles/radvd/files/radvd.conf
Normal file
16
bundles/radvd/files/radvd.conf
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue