yggdrasil container: enable DHCP/SLAAC

This commit is contained in:
Astro 2019-11-29 22:11:39 +01:00
parent 78bd91f0e6
commit aefbb759e6
1 changed files with 5 additions and 0 deletions

View File

@ -8,10 +8,15 @@
];
networking.interfaces.eth0 = {
useDHCP = true;
ipv6.addresses = [
{ address = "310:5217:69c0:9afc::1"; prefixLength = 64; }
];
};
# Route IPv6
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1;
# Obtain global IPv6 despite being a router myself
boot.kernel.sysctl."net.ipv6.conf.eth0.accept_ra" = 2;
services.yggdrasil = {
openMulticastPort = true;