forked from DGNum/infrastructure
feat(vault01): Add CRI link
This commit is contained in:
parent
a3b0dfa0b6
commit
3cce216ada
2 changed files with 40 additions and 0 deletions
|
@ -8,6 +8,7 @@ lib.extra.mkConfig {
|
|||
|
||||
enabledServices = [
|
||||
# List of services to enable
|
||||
"networking"
|
||||
];
|
||||
|
||||
extraConfig = {
|
||||
|
|
39
machines/vault01/networking.nix
Normal file
39
machines/vault01/networking.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue