Compare commits
2 commits
a3b0dfa0b6
...
51db3d1dbb
Author | SHA1 | Date | |
---|---|---|---|
|
51db3d1dbb | ||
|
3cce216ada |
3 changed files with 48 additions and 10 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -90,17 +90,15 @@
|
|||
vault01 = {
|
||||
interfaces = {
|
||||
enp130s0f0 = {
|
||||
#ipv4 = [
|
||||
# {
|
||||
# address = "129.199.210.85";
|
||||
# prefixLength = 24;
|
||||
# }
|
||||
#];
|
||||
ipv4 = [
|
||||
{
|
||||
address = "192.168.42.7";
|
||||
prefixLength = 24;
|
||||
}
|
||||
];
|
||||
|
||||
#gateways = [ "129.199.210.254" ];
|
||||
gateways = [ ];
|
||||
|
||||
DHCP = "ipv4";
|
||||
gateways = [ "192.168.42.1" ];
|
||||
enableDefaultDNS = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue