static ip
This commit is contained in:
parent
4fb0f0d6c5
commit
9ef6c886b9
|
@ -7,4 +7,16 @@
|
||||||
allowedTCPPorts = [ ];
|
allowedTCPPorts = [ ];
|
||||||
allowedUDPPorts = [ ];
|
allowedUDPPorts = [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Static ip
|
||||||
|
networking.interfaces.enp2s0 = {
|
||||||
|
ipv4.addresses = [{
|
||||||
|
address = "10.0.201.83";
|
||||||
|
prefixLength = 24;
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
networking.defaultGateway = {
|
||||||
|
address = "10.0.201.1";
|
||||||
|
interface = "enp2s0";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue