Ventoy Forums
external dhcp server - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: iVentoy General Use —— iVentoy 使用交流 (https://forums.ventoy.net/forumdisplay.php?fid=7)
+--- Forum: iVentoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=8)
+--- Thread: external dhcp server (/showthread.php?tid=2907)



external dhcp server - eby - 06-25-2024

I'm trying to configure external DHCP server with options for Legacy and UEFI systems and as per the documentation - https://www.iventoy.com/en/doc_ext_dhcp.html

dhcp server - isc-dhcp-server version 4.3.5.
iventoy - 1.0.20 - configured in ExternalNet Mode.

I have multiple subnets and only want PXE boot for specific subnet.

When the following config from documentation is used, dhcp server fail to start/restart - isc-dhcp-server.service: Failed with result 'exit-code'.

Code:
class "pxeclients" {
        match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
        next-server 10.0.0.1;

        if option architecture-type = 00:07 {
            filename "iventoy_loader_16000_uefi";
        } else {
            filename "iventoy_loader_16000_bios";
        }
    }

Setting bootfile to usefi or bios works, but cant set the option for both.

What are the equivalent config to achieve the above on isc-dhcp-server version 4.3.5.

Thanks,