dhcp: no DHCP client at all pls
This commit is contained in:
parent
e4b0ba7c25
commit
d3b5bda4e6
|
@ -10,11 +10,13 @@
|
||||||
networking.hostName = "dhcp";
|
networking.hostName = "dhcp";
|
||||||
networking.defaultGateway = "172.22.99.1";
|
networking.defaultGateway = "172.22.99.1";
|
||||||
networking.nameservers = [ "172.20.73.8" "172.20.72.6" "172.20.72.10" "9.9.9.9" ];
|
networking.nameservers = [ "172.20.73.8" "172.20.72.6" "172.20.72.10" "9.9.9.9" ];
|
||||||
|
networking.useDHCP = false;
|
||||||
networking.interfaces.eth0 = {
|
networking.interfaces.eth0 = {
|
||||||
ipv4.addresses = [ {
|
ipv4.addresses = [ {
|
||||||
address = "172.22.99.254";
|
address = "172.22.99.254";
|
||||||
prefixLength = 24;
|
prefixLength = 24;
|
||||||
} ];
|
} ];
|
||||||
|
useDHCP = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
|
@ -25,7 +27,6 @@
|
||||||
|
|
||||||
# dhcp
|
# dhcp
|
||||||
networking.firewall.allowedUDPPorts = [ 67 68 ];
|
networking.firewall.allowedUDPPorts = [ 67 68 ];
|
||||||
networking.useDHCP = false;
|
|
||||||
|
|
||||||
services.dhcpd4 = {
|
services.dhcpd4 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user