Project

General

Profile

Actions

Bug #16079

closed

ISC DHCP subnets fail to parse with host or class stanzas inside

Added by alvin starr almost 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
DHCP
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I have a subnet definition
subnet 10.253.2.0 netmask 255.255.255.0 {
stuff
}

If I add a host definition to the subnet like

subnet 10.253.2.0 netmask 255.255.255.0 {
stuff
host puter {
       server-name "puter";
       hardware ethernet 00:18:dd:01:9e:2e;
       fixed-address 10.253.2.127;
       }

}

the subnet does not get recoginzed.
If I add in the subnet stanza something like

     class "pxeclients" {
          match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
          if option pxe-system-type = 00:02 {
                  filename "ia64/elilo.efi";
          } else if option pxe-system-type = 00:06 {
                  filename "grub/grub-x86.efi";
          } else if option pxe-system-type = 00:07 {
                  filename "grub/grub-x86_64.efi";
          } else {
                  filename "pxelinux.0";
          }
     }

the same thing happens.
If I extract the static hosts into dhcpd.hosts and include it then things are ok.


Related issues 4 (0 open4 closed)

Related to Smart Proxy - Feature #12211: Improve DHCP subnets parsing to get more informations from DHCP serverClosedBaptiste Agasse10/19/2015Actions
Related to Smart Proxy - Bug #14808: Foreman-Proxy DHCP class doesn't properly read subnets containing if statementsDuplicateWojciech Kowalski04/26/2016Actions
Has duplicate Smart Proxy - Bug #17800: ISC Dhcpd Config Parse ErrorDuplicate12/20/2016Actions
Has duplicate Smart Proxy - Bug #18674: on [commit,release,expiry] sections in dhcpd.conf cause subnet to not load in smart proxyDuplicate02/24/2017Actions
Actions

Also available in: Atom PDF