diff --git a/machines/manager/network.nix b/machines/manager/network.nix index 8fef7f7..6dbd151 100644 --- a/machines/manager/network.nix +++ b/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 = [{ address = "10.32.47.10"; prefixLength = 24; }]; }; + networking.interfaces."mngt" = { + ipv4.addresses = [{ + address = "10.32.46.253"; + prefixLength = 24; + }]; + }; + networking.defaultGateway = { address = "10.32.47.1"; - interface = "enp11s0f0"; + interface = "data"; }; }