Try to make ipv6 always work

This commit is contained in:
asonix 2024-07-04 15:20:34 -05:00
parent d24e493287
commit 025f3c7e6d

View file

@ -85,8 +85,16 @@ in
"2001:db8:20::1/64" "2001:db8:20::1/64"
]; ];
networkConfig = { networkConfig = {
IPv6SendRA = true;
ConfigureWithoutCarrier = true; ConfigureWithoutCarrier = true;
}; };
ipv6Prefixes = [{
Prefix = "2001:db8:20::/64";
}];
ipv6SendRAConfig = {
EmitDNS = true;
DNS = "2001:db8:20::1";
};
linkConfig.RequiredForOnline = "no"; linkConfig.RequiredForOnline = "no";
}; };
"50-${devices}" = { "50-${devices}" = {
@ -98,7 +106,16 @@ in
"192.168.30.1/24" "192.168.30.1/24"
"2001:db8:30::1/64" "2001:db8:30::1/64"
]; ];
networkConfig = { }; networkConfig = {
IPv6SendRA = true;
};
ipv6Prefixes = [{
Prefix = "2001:db8:30::/64";
}];
ipv6SendRAConfig = {
EmitDNS = true;
DNS = "2001:db8:30::1";
};
linkConfig.RequiredForOnline = "routable"; linkConfig.RequiredForOnline = "routable";
}; };
"50-${wifi}" = { "50-${wifi}" = {
@ -110,7 +127,16 @@ in
"192.168.40.1/24" "192.168.40.1/24"
"2001:db8:40::1/64" "2001:db8:40::1/64"
]; ];
networkConfig = { }; networkConfig = {
IPv6SendRA = true;
};
ipv6Prefixes = [{
Prefix = "2001:db8:40::/64";
}];
ipv6SendRAConfig = {
EmitDNS = true;
DNS = "2001:db8:40::1";
};
linkConfig.RequiredForOnline = "routable"; linkConfig.RequiredForOnline = "routable";
}; };
}; };
@ -319,13 +345,13 @@ in
dhcp-range = [ dhcp-range = [
# format TAG,START,END,?MASK,?options,LEASE # format TAG,START,END,?MASK,?options,LEASE
"${bridge},192.168.20.50,192.168.20.90,24h" "${bridge},192.168.20.50,192.168.20.90,24h"
"${bridge},2001:db8:20::ffff,2001:db8:20::ffff:ffff:ffff:ffff,24h" "${bridge},::ffff,constructor:${bridge},ra-names,64,24h"
"${devices},192.168.30.10,192.168.30.240,24h" "${devices},192.168.30.10,192.168.30.240,24h"
"${devices},2001:db8:30::10,2001:db8:30::ffff:ffff:ffff:ffff,24h" "${devices},::10,constructor:${devices},ra-names,64,24h"
"${wifi},192.168.40.10,192.168.40.240,24h" "${wifi},192.168.40.10,192.168.40.240,24h"
"${wifi},2001:db8:40::10,2001:db8:40::ffff:ffff:ffff:ffff,24h" "${wifi},::10,constructor:${wifi},ra-names,64,24h"
]; ];
interface = [ bridge devices wifi ]; interface = [ bridge devices wifi ];
dhcp-option = [ dhcp-option = [