From bac22cfb2b5433c09cb94a4efccd6c57f7fb46e2 Mon Sep 17 00:00:00 2001 From: Dustin Frisch Date: Tue, 7 Nov 2023 12:53:29 +0100 Subject: [PATCH] manager: network mngt vlan and bond --- machines/manager/network.nix | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) 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"; }; }