Comment 16 for bug 1521618

Revision history for this message
Paolo de Rosa (paolo-de-rosa) wrote : Re: wrong subnet in DHCP answer when multiple networks are present

We hit this bug also with DT and we noticed that moving conditional options (those below) in the global section solve the problem, so we worked around changing dhcp.conf template.

if option arch = 00:0E {
         filename "pxelinux.0";
          option path-prefix "ppc64el/";
       } elsif option arch = 00:07 {
          filename "bootx64.efi";
       } elsif option arch = 00:0B {
          filename "grubaa64.efi";
       } elsif option arch = 00:0C {
          filename "bootppc64.bin";
       } else {
          filename "pxelinux.0";
}
class "PXE" {
       match if substring (option vendor-class-identifier, 0, 3) = "PXE";
        default-lease-time 30;
        max-lease-time 30;
}