yggdrasil container: enable DHCP/SLAAC
This commit is contained in:
parent
78bd91f0e6
commit
aefbb759e6
|
@ -8,10 +8,15 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.interfaces.eth0 = {
|
networking.interfaces.eth0 = {
|
||||||
|
useDHCP = true;
|
||||||
ipv6.addresses = [
|
ipv6.addresses = [
|
||||||
{ address = "310:5217:69c0:9afc::1"; prefixLength = 64; }
|
{ 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 = {
|
services.yggdrasil = {
|
||||||
openMulticastPort = true;
|
openMulticastPort = true;
|
||||||
|
|
Loading…
Reference in New Issue