Browse Source

manager: network mngt vlan and bond

main
Dustin Frisch 1 year ago
parent
commit
bac22cfb2b
No known key found for this signature in database GPG Key ID: B4C3BF012D9B26BE
  1. 27
      machines/manager/network.nix

27
machines/manager/network.nix

@ -1,13 +1,36 @@
{ {
networking.interfaces."enp11s0f0" = {
networking.interfaces."enp11s0f0" = { };
networking.interfaces."enp11s0f1" = { };
networking.bonds."data" = {
interfaces = [ "enp11s0f0" "enp11s0f1" ];
driverOptions = {
miimon = "100";
mode = "802.3ad";
};
};
networking.vlans."mngt" = {
id = 1032;
interface = "data";
};
networking.interfaces."data" = {
ipv4.addresses = [{ ipv4.addresses = [{
address = "10.32.47.10"; address = "10.32.47.10";
prefixLength = 24; prefixLength = 24;
}]; }];
}; };
networking.interfaces."mngt" = {
ipv4.addresses = [{
address = "10.32.46.253";
prefixLength = 24;
}];
};
networking.defaultGateway = { networking.defaultGateway = {
address = "10.32.47.1"; address = "10.32.47.1";
interface = "enp11s0f0";
interface = "data";
}; };
} }
Loading…
Cancel
Save