bind network interfaces
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
boot.kernelModules = [ "bonding" ];
|
||||||
|
|
||||||
|
networking.bonds.bond0 = {
|
||||||
|
interfaces = [ "enp1s0" "enp2s0" ];
|
||||||
|
driverOptions = {
|
||||||
|
mode = "802.3ad";
|
||||||
|
miimon = "100";
|
||||||
|
lacp_rate = "fast";
|
||||||
|
xmit_hash_policy = "layer3+4";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.interfaces.enp1s0.useDHCP = false;
|
||||||
|
networking.interfaces.enp2s0.useDHCP = false;
|
||||||
|
networking.interfaces.bond0.useDHCP = true;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -4,7 +4,6 @@
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan...
|
[ # Include the results of the hardware scan...
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./network.nix
|
|
||||||
|
|
||||||
# ...and additional configurations...
|
# ...and additional configurations...
|
||||||
./var_reg.nix
|
./var_reg.nix
|
||||||
|
|||||||
Reference in New Issue
Block a user