From 026653218fd775c8d5e723a3db01a1b872f8d2b8 Mon Sep 17 00:00:00 2001 From: catvayor Date: Sat, 6 Apr 2024 19:18:56 +0200 Subject: [PATCH 1/2] feat(mgmt): Use IPv6 instead of IPv4 --- machines/vault01/networking.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/vault01/networking.nix b/machines/vault01/networking.nix index 89f34dd..616ac10 100644 --- a/machines/vault01/networking.nix +++ b/machines/vault01/networking.nix @@ -43,7 +43,7 @@ in }; "10-${vlanAdmin}" = { name = vlanAdmin; - address = [ "10.0.0.1/16" ]; + address = [ "fd26:baf9:d250:8000::1/64" ]; }; }; netdevs = { -- 2.47.0 From beba4fb0f69c549b623f5dcd6b211484340ae424 Mon Sep 17 00:00:00 2001 From: catvayor Date: Sat, 6 Apr 2024 19:21:03 +0200 Subject: [PATCH 2/2] feat(mgmt): Add APs vlan access --- machines/vault01/networking.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/machines/vault01/networking.nix b/machines/vault01/networking.nix index 616ac10..595d6f3 100644 --- a/machines/vault01/networking.nix +++ b/machines/vault01/networking.nix @@ -1,6 +1,7 @@ let vlanName = "vlan-uplink-cri"; vlanAdmin = "vlan-admin"; + vlanAP = "vlan-admin-ap"; linkIp = "10.120.33.250"; linkPrefix = "30"; @@ -20,6 +21,7 @@ in VLAN = [ vlanName vlanAdmin + vlanAP ]; LinkLocalAddressing = false; @@ -45,6 +47,10 @@ in name = vlanAdmin; address = [ "fd26:baf9:d250:8000::1/64" ]; }; + "10-${vlanAP}" = { + name = vlanAP; + address = [ "fd26:baf9:d250:8010::1/60" ]; + }; }; netdevs = { "10-${vlanName}" = { @@ -65,6 +71,15 @@ in Id = 3000; }; }; + "10-${vlanAP}" = { + netdevConfig = { + Name = vlanAP; + Kind = "vlan"; + }; + vlanConfig = { + Id = 3001; + }; + }; }; }; } -- 2.47.0