Configure static IP

This commit is contained in:
bo0tzz
2024-01-06 23:05:00 +01:00
parent fa91f9903e
commit 54c81e8ef0
+11 -2
View File
@@ -23,8 +23,17 @@
neededForBoot = true;
};
networking.hostName = "mich"; # Define your hostname.
networking.hostId = "e3e9d999";
networking = {
hostName = "mich";
hostId = "e3e9d999";
interfaces.eth0.ipv4.addresses = [ {
address = "162.55.86.82";
prefixLength = 26;
} ];
defaultGateway = "162.55.86.65";
};
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];