Project

General

Profile

Actions

Bug #17800

closed

ISC Dhcpd Config Parse Error

Added by Karl Vollmer about 8 years ago. Updated almost 8 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
DHCP
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

After updating from Smart Proxy 9.x -> 12.4 the subnet in my dhcpd.conf was no longer being detected. I checked in on IRC, and witlessb, confirmed it was an issue with the dhcpd parser due to the use of the 'pool' option within the subnet declaration. My 'non-working' dhcpd subnet config is as follows. Removing the conditional (logically useless I know) didn't fix it..., but it's valid dhcpd jargon so I figured I'd leave it in. This worked in the 9.x release of the foreman proxy. I was able to remove the pool declaration from this config, but my other Foreman'd systems have multiple pools with different settings, so I will need this working before I can update them.

# Subnet
subnet 10.30.0.0 netmask 255.255.0.0 { 
        default-lease-time 3600;
        max-lease-time 3600; 
        option routers 10.30.0.1; 
        option subnet-mask 255.255.0.0; 
        option domain-name "ZZZ."; 
        option domain-name-servers 10.30.0.1; 
        option broadcast-address 10.30.255.255; 
        if ((substring (option vendor-class-identifier, 0, 9)
                        = "PXEClient") or
                (substring (option vendor-class-identifier, 0, 9)
                        = "Etherboot")) {
                # i386 and x86_64
                filename "pxelinux.0";
        } else {
                filename "pxelinux.0";
        }
        pool { 
                range 10.30.0.10 10.30.0.254;
                option routers 10.30.0.1;
                option domain-name-servers 10.30.0.1;
                option subnet-mask 255.255.0.0;
                option ntp-servers 10.30.0.1;
                ddns-domain-name = "ZZZ.";
        } 
}


Related issues 3 (0 open3 closed)

Related to Smart Proxy - Feature #19104: Ignore tagged includes for ISC DHCPRejectedLukas Zapletal03/31/2017Actions
Related to Smart Proxy - Refactor #19441: Rewrite isc dhcpd config parser to support various nested blocks Closed05/03/2017Actions
Is duplicate of Smart Proxy - Bug #16079: ISC DHCP subnets fail to parse with host or class stanzas insideClosedLukas Zapletal08/11/2016Actions
Actions

Also available in: Atom PDF