mirror of
https://abf.rosa.ru/djam/dhcp.git
synced 2025-02-23 13:32:48 +00:00
Fix error in default dhcpd configuration: 'host' section should not be nested into 'subnet'.
This commit is contained in:
parent
43927d6922
commit
3d18ac1323
2 changed files with 9 additions and 7 deletions
|
@ -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
|
||||||
|
|
14
dhcpd.conf
14
dhcpd.conf
|
@ -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
|
|
||||||
host ns {
|
|
||||||
next-server fixed.domain.org;
|
|
||||||
hardware ethernet 12:34:56:78:AB:CD;
|
|
||||||
fixed-address 192.168.0.10;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# we want the nameserver to appear at a fixed address
|
||||||
|
host ns {
|
||||||
|
next-server fixed.domain.org;
|
||||||
|
hardware ethernet 12:34:56:78:AB:CD;
|
||||||
|
fixed-address 192.168.0.10;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue