39 lines
767 B
Nix
39 lines
767 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|