blade: tweak networking
This commit is contained in:
parent
86f042a55b
commit
a7094217ba
2 changed files with 10 additions and 18 deletions
|
@ -16,10 +16,9 @@ in {
|
|||
networking = {
|
||||
hostName = "blade-janeway";
|
||||
hostId = "3a62390f";
|
||||
bonds.bond0.interfaces = [
|
||||
"enp4s0f0" "enp4s0f1"
|
||||
"enp5s0f0" "enp5s0f1"
|
||||
];
|
||||
bridges.br-mgmt.interfaces = [ "enp4s0f0" ];
|
||||
bridges.br-storage.interfaces = [ "enp4s0f2" ];
|
||||
bridges.br-ext.interfaces = [ "enp5s0f0" ];
|
||||
interfaces.br-ext.ipv4.addresses = [{
|
||||
address = "192.168.1.180";
|
||||
prefixLength = 24;
|
||||
|
|
|
@ -11,7 +11,7 @@ in {
|
|||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "pata_atiixp" "uhci_hcd" "be2iscsi" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
|
||||
boot.kernelModules = [ "kvm-amd" "acpi_power_meter" ];
|
||||
boot.kernelModules = [ "kvm-amd" "acpi_power_meter" "acpi_ipmi" "ipmi_si" ];
|
||||
boot.kernelParams = [ "mitigations=off" ];
|
||||
|
||||
fileSystems = let
|
||||
|
@ -39,19 +39,12 @@ in {
|
|||
domain = "house.as205479.net";
|
||||
nameservers = ["8.8.8.8" "8.8.4.4"];
|
||||
useDHCP = false;
|
||||
bonds.bond0 = {
|
||||
driverOptions = {
|
||||
mode = "802.3ad";
|
||||
miimon = "100";
|
||||
lacp_rate = "fast";
|
||||
};
|
||||
interfaces = [
|
||||
"enp4s0f0" "enp4s0f1"
|
||||
];
|
||||
};
|
||||
bridges.br-ext = {
|
||||
interfaces = [ "bond0" ];
|
||||
rstp = false;
|
||||
bridges = let
|
||||
br = interfaces: { inherit interfaces; rstp = false; };
|
||||
in {
|
||||
br-mgmt = br [ "enp4s0f0" ];
|
||||
br-storage = br [ "enp4s0f1" ];
|
||||
br-ext = br [ "enp4s0f2" ];
|
||||
};
|
||||
|
||||
defaultGateway = "192.168.1.5";
|
||||
|
|
Loading…
Reference in a new issue