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; + }; + }; }; }; }