static ip

This commit is contained in:
Snorre Ettrup Altschul 2025-03-03 12:15:01 +01:00
parent 4fb0f0d6c5
commit 9ef6c886b9

View file

@ -7,4 +7,16 @@
allowedTCPPorts = [ ];
allowedUDPPorts = [ ];
};
# Static ip
networking.interfaces.enp2s0 = {
ipv4.addresses = [{
address = "10.0.201.83";
prefixLength = 24;
}];
};
networking.defaultGateway = {
address = "10.0.201.1";
interface = "enp2s0";
};
}