From 77472e9883fe2b3861b214ae4d6e8c5a8f98abce Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 26 May 2025 14:17:06 +0200 Subject: [PATCH] Update configuration for UPC network The fox machine will be placed in the UPC network, so we update the configuration with the new IP and gateway. We won't be able to reach hut directly so we also remove the host entry and proxy. --- m/common/xeon/net.nix | 4 ---- m/fox/configuration.nix | 28 +++++++++++++++++++++++----- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/m/common/xeon/net.nix b/m/common/xeon/net.nix index 09e83edf..dfd85f88 100644 --- a/m/common/xeon/net.nix +++ b/m/common/xeon/net.nix @@ -85,10 +85,6 @@ 10.0.40.8 eudy xeon08 xeon08-eth0 10.0.42.8 eudy-ib xeon08-ib0 10.0.40.108 eudy-ipmi xeon08-ipmi0 xeon08-ipmi - - # fox - 10.0.40.26 fox - 10.0.40.126 fox-ipmi ''; }; } diff --git a/m/fox/configuration.nix b/m/fox/configuration.nix index 24a3d2c9..29d8fe95 100644 --- a/m/fox/configuration.nix +++ b/m/fox/configuration.nix @@ -4,7 +4,6 @@ imports = [ ../common/base.nix ../common/xeon/console.nix - ../common/xeon/net.nix ../module/emulation.nix ]; @@ -21,11 +20,30 @@ hardware.cpu.intel.updateMicrocode = lib.mkForce false; networking = { + defaultGateway = "147.83.30.130"; + nameservers = [ "8.8.8.8" ]; hostName = "fox"; - interfaces.enp1s0f0np0.ipv4.addresses = [ { - address = "10.0.40.26"; - prefixLength = 24; - } ]; + interfaces.enp1s0f0np0.ipv4.addresses = [ + { + # UPC network + # Public IP configuration: + # - Hostname: fox.ac.upc.edu + # - IP: 147.83.30.141 + # - Gateway: 147.83.30.130 + # - NetMask: 255.255.255.192 + # Private IP configuration for BMC: + # - Hostname: fox-ipmi.ac.upc.edu + # - IP: 147.83.35.27 + # - Gateway: 147.83.35.2 + # - NetMask: 255.255.255.0 + address = "147.83.30.141"; + prefixLength = 26; # 255.255.255.192 + } + ]; + extraHosts = '' + 147.83.30.141 fox.ac.upc.edu + 147.83.35.27 fox-ipmi.ac.upc.edu + ''; }; # Configure Nvidia driver to use with CUDA