NixOS configuration for HPC cluster https://docs.hpc.informatik.hs-fulda.de/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
900 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. {
  2. networking.interfaces."enp11s0f0" = { };
  3. networking.interfaces."enp11s0f1" = { };
  4. networking.bonds."data" = {
  5. interfaces = [ "enp11s0f0" "enp11s0f1" ];
  6. driverOptions = {
  7. miimon = "100";
  8. mode = "802.3ad";
  9. };
  10. };
  11. networking.vlans."mngt" = {
  12. id = 1032;
  13. interface = "data";
  14. };
  15. networking.interfaces."data" = {
  16. ipv4.addresses = [{
  17. address = "10.32.47.10";
  18. prefixLength = 24;
  19. }];
  20. };
  21. # This is not our real management interface but the hosts interface to the
  22. # manangement network
  23. networking.interfaces."mngt" = {
  24. ipv4.addresses = [{
  25. address = "10.32.46.253";
  26. prefixLength = 24;
  27. }];
  28. };
  29. networking.defaultGateway = {
  30. address = "10.32.47.1";
  31. interface = "data";
  32. };
  33. hpc.dhcp.reservations = {
  34. "mngt" = {
  35. hwAddress = "e4:1f:13:28:c7:b9";
  36. ipAddress = "10.32.46.10";
  37. };
  38. };
  39. }