iPXE discussion forum
help with ISC Kea dhcp and iPXE - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: help with ISC Kea dhcp and iPXE (/showthread.php?tid=7986)



help with ISC Kea dhcp and iPXE - fdge - 2016-03-14 06:09

Does anyone have a working Kea dhcp server for chain-loading iPXE?


RE: help with ISC Kea dhcp and iPXE - fdge - 2016-03-16 03:57

Here is the config that I am trying to get to work...
http://pastebin.com/MaBcSU1z


RE: help with ISC Kea dhcp and iPXE - fdge - 2017-01-25 18:40

Here is part of the config that is working in my test setup
Code:
"client-classes":
    [
      {
        "name": "XClient_iPXE",
        "test": "substring(option[77].hex,0,4) == 'iPXE'",
        "boot-file-name": "http://<ServerIP>:<ServerPort>/<path>/<PHPfile>"
      },
      {
        "name": "UEFI-32-1",
        "test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00006'",
        "boot-file-name": "ipxe/i386/ipxe.efi"
      },
      {
        "name": "UEFI-32-2",
        "test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00002'",
        "boot-file-name": "ipxe/i386/ipxe.efi"
      },
      {
        "name": "UEFI-64-1",
        "test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00007'",
        "boot-file-name": "ipxe/x86_64/ipxe.efi"
      },
      {
        "name": "UEFI-64-2",
        "test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00008'",
        "boot-file-name": "ipxe/x86_64/ipxe.efi"
      },
      {
        "name": "UEFI-64-3",
        "test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00009'",
        "boot-file-name": "ipxe/x86_64/ipxe.efi"
      },
      {
        "name": "Legacy",
        "test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00000'",
        "boot-file-name": "ipxe/undionly.kpxe"
      }
    ]
and to allow BIOS PXE I needed to use the patch from
https://www.mail-archive.com/ipxe-devel@lists.ipxe.org/msg05268.html
Code:
diff --git a/src/net/ipv4.c b/src/net/ipv4.c
index b4148d8..b9ce5e7 100644
--- a/src/net/ipv4.c
+++ b/src/net/ipv4.c
@@ -552,6 +552,7 @@ static int ipv4_rx ( struct io_buffer *iobuf,

    /* Discard unicast packets not destined for us */
    if ( ( ! ( flags & LL_MULTICAST ) ) &&
+         ( iphdr->dest.s_addr != INADDR_BROADCAST ) &&
         ipv4_has_any_addr ( netdev ) &&
         ( ! ipv4_has_addr ( netdev, iphdr->dest ) ) ) {
        DBGC ( iphdr->src, "IPv4 discarding non-local unicast packet "



RE: help with ISC Kea dhcp and iPXE - NiKiZe - 2017-01-25 18:44

(2017-01-25 18:40)fdge Wrote:  and to allow BIOS PXE I needed to use the patch from
https://www.mail-archive.com/ipxe-devel@lists.ipxe.org/msg05268.html

This was merged into master at https://git.ipxe.org/ipxe.git/commit/43b2d8eafb2c1ac568d43be5491cc5b441c6c5e5 so no need for manual patching


RE: help with ISC Kea dhcp and iPXE - fdge - 2017-01-25 21:14

Thank you