1
0
Fork 0

greddost: static ip

This commit is contained in:
Daniel Lovbrotte Olsen 2021-12-20 03:06:55 +01:00 committed by System administrator
parent 7c8e9e0b93
commit 254e9934ad
1 changed files with 20 additions and 1 deletions

View File

@ -47,7 +47,26 @@
networking.hostName = "greddost"; # Define your hostname. networking.hostName = "greddost"; # Define your hostname.
networking.interfaces.ens18.useDHCP = true; networking.interfaces.ens18.useDHCP = false;
networking.defaultGateway = "129.241.210.129";
networking.interfaces.ens18.ipv4 = {
addresses = [
{
address = "129.241.210.174";
prefixLength = 25;
}
];
};
networking.interfaces.ens18.ipv6 = {
addresses = [
{
address = "2001:700:300:1900::174";
prefixLength = 64;
}
];
};
networking.nameservers = [ "129.241.0.200" "129.241.0.201" ];
# Open ports in the firewall. # Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 25565 ]; networking.firewall.allowedTCPPorts = [ 25565 ];