From 2e3bb99b84d1030e3d309a3d0a82deab0c1e6db6 Mon Sep 17 00:00:00 2001 From: catvayor Date: Fri, 5 Apr 2024 14:33:56 +0200 Subject: [PATCH] feat(vault01): Add admin vlan --- machines/vault01/networking.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/machines/vault01/networking.nix b/machines/vault01/networking.nix index b20afc7..89f34dd 100644 --- a/machines/vault01/networking.nix +++ b/machines/vault01/networking.nix @@ -1,5 +1,6 @@ let vlanName = "vlan-uplink-cri"; + vlanAdmin = "vlan-admin"; linkIp = "10.120.33.250"; linkPrefix = "30"; @@ -16,7 +17,10 @@ in "10-enp67s0f0np0" = { name = "enp67s0f0np0"; networkConfig = { - VLAN = [ vlanName ]; + VLAN = [ + vlanName + vlanAdmin + ]; LinkLocalAddressing = false; LLDP = false; @@ -37,9 +41,13 @@ in } ]; }; + "10-${vlanAdmin}" = { + name = vlanAdmin; + address = [ "10.0.0.1/16" ]; + }; }; netdevs = { - "10-vlan-uplink-cri" = { + "10-${vlanName}" = { netdevConfig = { Name = vlanName; Kind = "vlan"; @@ -48,6 +56,15 @@ in Id = 223; }; }; + "10-${vlanAdmin}" = { + netdevConfig = { + Name = vlanAdmin; + Kind = "vlan"; + }; + vlanConfig = { + Id = 3000; + }; + }; }; }; }