Use DHCP for Ethernet in fox
Reviewed-by: Aleix Boné <abonerib@bsc.es>
This commit is contained in:
parent
83efd6c876
commit
e40fd24f26
@ -20,31 +20,20 @@
|
|||||||
hardware.cpu.intel.updateMicrocode = lib.mkForce false;
|
hardware.cpu.intel.updateMicrocode = lib.mkForce false;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
defaultGateway = "147.83.30.130";
|
|
||||||
nameservers = [ "8.8.8.8" ];
|
|
||||||
timeServers = [ "ntp1.upc.edu" "ntp2.upc.edu" ];
|
timeServers = [ "ntp1.upc.edu" "ntp2.upc.edu" ];
|
||||||
hostName = "fox";
|
hostName = "fox";
|
||||||
interfaces.enp1s0f0np0.ipv4.addresses = [
|
# UPC network (may change over time, use DHCP)
|
||||||
{
|
# Public IP configuration:
|
||||||
# UPC network
|
# - Hostname: fox.ac.upc.edu
|
||||||
# Public IP configuration:
|
# - IP: 147.83.30.141
|
||||||
# - Hostname: fox.ac.upc.edu
|
# - Gateway: 147.83.30.130
|
||||||
# - IP: 147.83.30.141
|
# - NetMask: 255.255.255.192
|
||||||
# - Gateway: 147.83.30.130
|
# Private IP configuration for BMC:
|
||||||
# - NetMask: 255.255.255.192
|
# - Hostname: fox-ipmi.ac.upc.edu
|
||||||
# Private IP configuration for BMC:
|
# - IP: 147.83.35.27
|
||||||
# - Hostname: fox-ipmi.ac.upc.edu
|
# - Gateway: 147.83.35.2
|
||||||
# - IP: 147.83.35.27
|
# - NetMask: 255.255.255.0
|
||||||
# - Gateway: 147.83.35.2
|
interfaces.enp1s0f0np0.useDHCP = true;
|
||||||
# - 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
|
# Configure Nvidia driver to use with CUDA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user