Infini-DL360: setup network bridge

This commit is contained in:
Infinidoge 2024-12-05 03:42:40 -05:00
parent e6aaf12795
commit 786f697600
Signed by: Infinidoge
SSH key fingerprint: SHA256:EMoPe5e2dO0gEvtBb2xkZTz5dkyL0rBmuiGTKG5s96E

View file

@ -56,6 +56,21 @@
allowedUDPPorts = [ 80 443 ];
allowedTCPPorts = [ 80 443 25565 ];
};
bridges = {
br0 = {
interfaces = [ "eno1" "eno2" "eno3" "eno4" ];
};
};
interfaces.br0.ipv4.addresses = [{ address = "192.168.137.11"; prefixLength = 24; }];
dhcpcd.denyInterfaces = [ "eno*" ];
defaultGateway = { address = "192.168.137.1"; interface = "br0"; };
};
boot.kernel.sysctl = {
"net.ipv4.conf.all.forwarding" = true;
"net.ipv6.conf.all.forwarding" = true;
};
hardware.infiniband = {