Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help with ISC Kea dhcp and iPXE
2016-03-14, 06:09
Post: #1
help with ISC Kea dhcp and iPXE
Does anyone have a working Kea dhcp server for chain-loading iPXE?
Find all posts by this user
Quote this message in a reply
2016-03-16, 03:57
Post: #2
RE: help with ISC Kea dhcp and iPXE
Here is the config that I am trying to get to work...
http://pastebin.com/MaBcSU1z
Find all posts by this user
Quote this message in a reply
2017-01-25, 18:40
Post: #3
RE: help with ISC Kea dhcp and iPXE
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@...05268.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 "
Find all posts by this user
Quote this message in a reply
2017-01-25, 18:44
Post: #4
RE: help with ISC Kea dhcp and iPXE
(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@...05268.html

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

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
2017-01-25, 21:14
Post: #5
RE: help with ISC Kea dhcp and iPXE
Thank you
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)