infrastructure/machines/vault01/networking.nix

40 lines
767 B
Nix
Raw Normal View History

2024-03-27 10:26:31 +01:00
let
vlanName = "vlan-uplink-cri";
in
{
systemd.network = {
networks = {
"10-sfp-right" = {
name = "enp67s0f0np0";
networkConfig = {
VLAN = [ vlanName ];
LinkLocalAddressing = false;
LLDP = false;
EmitLLDP = false;
IPv6AcceptRA = false;
IPv6SendRA = false;
};
};
"20-vlan-uplink-cri" = {
name = vlanName;
address = [ "10.120.33.250/30" ];
networkConfig = {
Gateway = "10.120.33.249";
};
};
};
netdevs = {
"20-vlan-uplink-cri" = {
netdevConfig = {
Name = vlanName;
Kind = "vlan";
};
vlanConfig = {
Id = 223;
};
};
};
};
}