mirror of
https://github.com/mdlayher/homelab.git
synced 2024-12-14 11:47:32 +00:00
nixos/lib/vargen: update IPv6 prefix
Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
parent
7a86ba4539
commit
dab95ab094
2 changed files with 23 additions and 23 deletions
|
@ -185,7 +185,7 @@ type ipv6Addresses struct {
|
|||
}
|
||||
|
||||
func newSubnet(iface string, vlan int) subnet {
|
||||
gua := prefix(fmt.Sprintf("2600:6c4a:787f:4f%02x::/64", vlan))
|
||||
gua := prefix(fmt.Sprintf("2600:6c4a:787f:59%02x::/64", vlan))
|
||||
|
||||
// A hack to continue using 192.168.1.0/24 for the management network.
|
||||
v4Subnet := vlan
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"server_ipv4": "192.168.110.5",
|
||||
"server_ipv6": "2600:6c4a:787f:4f6e:92e2:baff:fe5b:9980",
|
||||
"desktop_ipv6": "2600:6c4a:787f:4f6e:92e2:baff:fe23:1a3a",
|
||||
"server_ipv6": "2600:6c4a:787f:596e:92e2:baff:fe5b:9980",
|
||||
"desktop_ipv6": "2600:6c4a:787f:596e:92e2:baff:fe23:1a3a",
|
||||
"hosts": {
|
||||
"servers": [
|
||||
{
|
||||
"name": "servnerr-3",
|
||||
"ipv4": "192.168.110.5",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f6e:92e2:baff:fe5b:9980",
|
||||
"gua": "2600:6c4a:787f:596e:92e2:baff:fe5b:9980",
|
||||
"ula": "fd9e:1a04:f01d:110:92e2:baff:fe5b:9980",
|
||||
"lla": "fe80::92e2:baff:fe5b:9980"
|
||||
},
|
||||
|
@ -18,7 +18,7 @@
|
|||
"name": "nerr-3",
|
||||
"ipv4": "192.168.110.6",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f6e:92e2:baff:fe23:1a3a",
|
||||
"gua": "2600:6c4a:787f:596e:92e2:baff:fe23:1a3a",
|
||||
"ula": "fd9e:1a04:f01d:110:92e2:baff:fe23:1a3a",
|
||||
"lla": "fe80::92e2:baff:fe23:1a3a"
|
||||
},
|
||||
|
@ -28,7 +28,7 @@
|
|||
"name": "theatnerr-1",
|
||||
"ipv4": "192.168.10.10",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f0a:96de:80ff:fe6c:eef",
|
||||
"gua": "2600:6c4a:787f:590a:96de:80ff:fe6c:eef",
|
||||
"ula": "fd9e:1a04:f01d:10:96de:80ff:fe6c:eef",
|
||||
"lla": "fe80::96de:80ff:fe6c:eef"
|
||||
},
|
||||
|
@ -38,7 +38,7 @@
|
|||
"name": "monitnerr-1",
|
||||
"ipv4": "192.168.10.11",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f0a:dea6:32ff:fe1e:6694",
|
||||
"gua": "2600:6c4a:787f:590a:dea6:32ff:fe1e:6694",
|
||||
"ula": "fd9e:1a04:f01d:10:dea6:32ff:fe1e:6694",
|
||||
"lla": "fe80::dea6:32ff:fe1e:6694"
|
||||
},
|
||||
|
@ -48,7 +48,7 @@
|
|||
"name": "monitnerr-2",
|
||||
"ipv4": "192.168.10.12",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f0a:dea6:32ff:fe7e:b6fe",
|
||||
"gua": "2600:6c4a:787f:590a:dea6:32ff:fe7e:b6fe",
|
||||
"ula": "fd9e:1a04:f01d:10:dea6:32ff:fe7e:b6fe",
|
||||
"lla": "fe80::dea6:32ff:fe7e:b6fe"
|
||||
},
|
||||
|
@ -60,7 +60,7 @@
|
|||
"name": "switch-livingroom01",
|
||||
"ipv4": "192.168.1.2",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f00:f29f:c2ff:fe0b:28ca",
|
||||
"gua": "2600:6c4a:787f:5900:f29f:c2ff:fe0b:28ca",
|
||||
"ula": "fd9e:1a04:f01d:0:f29f:c2ff:fe0b:28ca",
|
||||
"lla": "fe80::f29f:c2ff:fe0b:28ca"
|
||||
},
|
||||
|
@ -70,7 +70,7 @@
|
|||
"name": "switch-office01",
|
||||
"ipv4": "192.168.1.3",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f00:f29f:c2ff:fece:7ee1",
|
||||
"gua": "2600:6c4a:787f:5900:f29f:c2ff:fece:7ee1",
|
||||
"ula": "fd9e:1a04:f01d:0:f29f:c2ff:fece:7ee1",
|
||||
"lla": "fe80::f29f:c2ff:fece:7ee1"
|
||||
},
|
||||
|
@ -80,7 +80,7 @@
|
|||
"name": "switch-office02",
|
||||
"ipv4": "192.168.1.4",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f00:c6ad:34ff:feba:4082",
|
||||
"gua": "2600:6c4a:787f:5900:c6ad:34ff:feba:4082",
|
||||
"ula": "fd9e:1a04:f01d:0:c6ad:34ff:feba:4082",
|
||||
"lla": "fe80::c6ad:34ff:feba:4082"
|
||||
},
|
||||
|
@ -90,7 +90,7 @@
|
|||
"name": "ap-livingroom02",
|
||||
"ipv4": "192.168.1.5",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f00:7683:c2ff:fe7a:c615",
|
||||
"gua": "2600:6c4a:787f:5900:7683:c2ff:fe7a:c615",
|
||||
"ula": "fd9e:1a04:f01d:0:7683:c2ff:fe7a:c615",
|
||||
"lla": "fe80::7683:c2ff:fe7a:c615"
|
||||
},
|
||||
|
@ -100,7 +100,7 @@
|
|||
"name": "keylight",
|
||||
"ipv4": "192.168.66.10",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f42:3e6a:9dff:fe12:c4dc",
|
||||
"gua": "2600:6c4a:787f:5942:3e6a:9dff:fe12:c4dc",
|
||||
"ula": "fd9e:1a04:f01d:66:3e6a:9dff:fe12:c4dc",
|
||||
"lla": "fe80::3e6a:9dff:fe12:c4dc"
|
||||
},
|
||||
|
@ -114,7 +114,7 @@
|
|||
"internal_domain": true,
|
||||
"ipv4": "192.168.1.1",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f00::1",
|
||||
"gua": "2600:6c4a:787f:5900::1",
|
||||
"ula": "fd9e:1a04:f01d::1",
|
||||
"lla": "fe80::1"
|
||||
}
|
||||
|
@ -124,7 +124,7 @@
|
|||
"internal_domain": false,
|
||||
"ipv4": "192.168.9.1",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f09::1",
|
||||
"gua": "2600:6c4a:787f:5909::1",
|
||||
"ula": "fd9e:1a04:f01d:9::1",
|
||||
"lla": "fe80::1"
|
||||
}
|
||||
|
@ -134,7 +134,7 @@
|
|||
"internal_domain": false,
|
||||
"ipv4": "192.168.66.1",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f42::1",
|
||||
"gua": "2600:6c4a:787f:5942::1",
|
||||
"ula": "fd9e:1a04:f01d:66::1",
|
||||
"lla": "fe80::1"
|
||||
}
|
||||
|
@ -144,7 +144,7 @@
|
|||
"internal_domain": false,
|
||||
"ipv4": "192.168.2.1",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f02::1",
|
||||
"gua": "2600:6c4a:787f:5902::1",
|
||||
"ula": "fd9e:1a04:f01d:2::1",
|
||||
"lla": "fe80::1"
|
||||
}
|
||||
|
@ -154,7 +154,7 @@
|
|||
"internal_domain": true,
|
||||
"ipv4": "192.168.10.1",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f0a::1",
|
||||
"gua": "2600:6c4a:787f:590a::1",
|
||||
"ula": "fd9e:1a04:f01d:10::1",
|
||||
"lla": "fe80::1"
|
||||
}
|
||||
|
@ -164,7 +164,7 @@
|
|||
"internal_domain": true,
|
||||
"ipv4": "192.168.110.1",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f6e::1",
|
||||
"gua": "2600:6c4a:787f:596e::1",
|
||||
"ula": "fd9e:1a04:f01d:110::1",
|
||||
"lla": "fe80::1"
|
||||
}
|
||||
|
@ -184,7 +184,7 @@
|
|||
"internal_domain": false,
|
||||
"ipv4": "192.168.20.1",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f14::1",
|
||||
"gua": "2600:6c4a:787f:5914::1",
|
||||
"ula": "fd9e:1a04:f01d:20::1",
|
||||
"lla": "fe80::1"
|
||||
}
|
||||
|
@ -206,7 +206,7 @@
|
|||
"name": "wg0",
|
||||
"ipv4": "192.168.20.0/24",
|
||||
"ipv6": {
|
||||
"gua": "2600:6c4a:787f:4f14::/64",
|
||||
"gua": "2600:6c4a:787f:5914::/64",
|
||||
"ula": "fd9e:1a04:f01d:20::/64",
|
||||
"lla": "fe80::/64"
|
||||
}
|
||||
|
@ -217,7 +217,7 @@
|
|||
"public_key": "VWRsPtbdGtcNyaQ+cFAZfZnYL05uj+XINQS6yQY5gQ8=",
|
||||
"allowed_ips": [
|
||||
"192.168.20.10/32",
|
||||
"2600:6c4a:787f:4f14::a/128",
|
||||
"2600:6c4a:787f:5914::a/128",
|
||||
"fd9e:1a04:f01d:20::a/128",
|
||||
"fe80::a/128"
|
||||
]
|
||||
|
@ -227,7 +227,7 @@
|
|||
"public_key": "UvwWyMQ1ckLEG82Qdooyr0UzJhqOlzzcx90DXuwMTDA=",
|
||||
"allowed_ips": [
|
||||
"192.168.20.11/32",
|
||||
"2600:6c4a:787f:4f14::b/128",
|
||||
"2600:6c4a:787f:5914::b/128",
|
||||
"fd9e:1a04:f01d:20::b/128",
|
||||
"fe80::b/128"
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue