forked from DGNum/infrastructure
feat(vault01): Add admin vlan
This commit is contained in:
parent
a64f5dac9e
commit
2e3bb99b84
1 changed files with 19 additions and 2 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue