ops/nixos: create br-ext and put everything on it

This commit is contained in:
Luke Granger-Brown 2021-02-10 23:38:05 +00:00
parent 5aa39f0693
commit 270b461b97
7 changed files with 15 additions and 6 deletions

View file

@ -16,7 +16,7 @@ in {
networking = {
hostName = "blade-chakotay";
hostId = "40bc5a75";
interfaces.bond0.ipv4.addresses = [{
interfaces.br-ext.ipv4.addresses = [{
address = "192.168.1.182";
prefixLength = 24;
}];

View file

@ -20,7 +20,7 @@ in {
"enp4s0f0" "enp4s0f1"
"enp5s0f0" "enp5s0f1"
];
interfaces.bond0.ipv4.addresses = [{
interfaces.br-ext.ipv4.addresses = [{
address = "192.168.1.180";
prefixLength = 24;
}];

View file

@ -16,7 +16,7 @@ in {
networking = {
hostName = "blade-kim";
hostId = "1643efb6";
interfaces.bond0.ipv4.addresses = [{
interfaces.br-ext.ipv4.addresses = [{
address = "192.168.1.183";
prefixLength = 24;
}];

View file

@ -16,7 +16,7 @@ in {
networking = {
hostName = "blade-paris";
hostId = "41b2a198";
interfaces.bond0.ipv4.addresses = [{
interfaces.br-ext.ipv4.addresses = [{
address = "192.168.1.184";
prefixLength = 24;
}];

View file

@ -16,7 +16,7 @@ in {
networking = {
hostName = "blade-torres";
hostId = "86db1d9c";
interfaces.bond0.ipv4.addresses = [{
interfaces.br-ext.ipv4.addresses = [{
address = "192.168.1.185";
prefixLength = 24;
}];

View file

@ -16,7 +16,7 @@ in {
networking = {
hostName = "blade-tuvok";
hostId = "525229f7";
interfaces.bond0.ipv4.addresses = [{
interfaces.br-ext.ipv4.addresses = [{
address = "192.168.1.181";
prefixLength = 24;
}];

View file

@ -45,6 +45,10 @@ in {
"enp4s0f0" "enp4s0f1"
];
};
networking.bridges.br-ext = {
interfaces = [ "bond0" ];
rstp = false;
};
defaultGateway = "192.168.1.5";
@ -72,5 +76,10 @@ in {
rgw.enable = true;
};
virtualisation.libvirtd = {
enable = true;
qemuRunAsRoot = false;
};
system.stateVersion = "21.05";
}