From d85accad1322e19f85bda707c27c94d5ce24cddb Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 4 Jun 2015 22:01:53 +0200 Subject: divide network into smaller chunks and provide pools --- config/dhcpd.conf | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'config') diff --git a/config/dhcpd.conf b/config/dhcpd.conf index 6444f16..bfddf4d 100644 --- a/config/dhcpd.conf +++ b/config/dhcpd.conf @@ -11,12 +11,6 @@ max-lease-time 43200; option domain-name "__DOMAINNAME__"; -# make sure we do not serve our own address -host localhost { - hardware ethernet de:ad:00:be:ef:00; - fixed-address __ADDRESS__; -} - class "PXEClient" { match if substring(option vendor-class-identifier, 0, 9) = "PXEClient"; @@ -31,6 +25,8 @@ subnet __NETADDRESS__ netmask __NETMASK__ { option time-servers __ADDRESS__; pool { + allow members of "PXEClient"; + next-server __ADDRESS__; # Disable ProxyDHCP, we're in control of the primary DHCP server. @@ -69,7 +65,13 @@ subnet __NETADDRESS__ netmask __NETMASK__ { filename "/ipxe/ipxe.pxe"; } - range dynamic-bootp __MINHOST__ __MAXHOST__; + range dynamic-bootp __MINBOOTP__ __MAXBOOTP__; + } + + pool { + deny members of "PXEClient"; + + range __MINDHCP__ __MAXDHCP__; } } -- cgit v1.2.3-70-g09d2