Fix error in default dhcpd configuration: 'host' section should not be nested into 'subnet'.

This commit is contained in:
Alexey Ivanov 2015-03-18 10:53:35 +00:00
parent 43927d6922
commit 3d18ac1323
2 changed files with 9 additions and 7 deletions

View file

@ -8,7 +8,7 @@
Name: dhcp Name: dhcp
Epoch: 3 Epoch: 3
Version: %{major_version}%{patch_version} Version: %{major_version}%{patch_version}
Release: 2 Release: 3
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client
License: Distributable License: Distributable
Group: System/Servers Group: System/Servers

View file

@ -14,10 +14,12 @@ subnet 192.168.0.0 netmask 255.255.255.0 {
default-lease-time 21600; default-lease-time 21600;
max-lease-time 43200; max-lease-time 43200;
}
# we want the nameserver to appear at a fixed address # we want the nameserver to appear at a fixed address
host ns { host ns {
next-server fixed.domain.org; next-server fixed.domain.org;
hardware ethernet 12:34:56:78:AB:CD; hardware ethernet 12:34:56:78:AB:CD;
fixed-address 192.168.0.10; fixed-address 192.168.0.10;
} }
}