This is possible since RouterOS v7.4. In addition, matching a substring is possible since 7.16 (https://help.mikrotik.com/docs/spaces/R ... ricmatcher).
The example below covers a working solution for providing the different bootfiles for the netboot-assistant.
The example below covers a working solution for providing the different bootfiles for the netboot-assistant.
Code:
/ip pooladd name=dhcp_virtual-servers ranges=10.13.20.100-10.13.20.199/ip dhcp-serveradd address-pool=dhcp_virtual-servers bootp-support=none interface=bridge-virtualServers name=DHCP-VirtualServers/ip dhcp-server optionadd code=67 name=pxe-bios value="'d-i/n-a/pxelinux.0'"add code=67 name=pxe-uefi value="'d-i/n-a/bootnetx64.efi'"/ip dhcp-server option setsadd name=pxe-bios options=pxe-biosadd name=pxe-uefi options=pxe-uefi/ip dhcp-server matcheradd address-pool=dhcp_virtual-servers code=93 matching-type=substring name=pxe-uefi-matcher option-set=pxe-uefi server=DHCP-VirtualServers value=0x0007/ip dhcp-server networkadd address=10.13.20.0/24 dhcp-option-set=pxe-bios dns-server=10.13.20.1 gateway=10.13.20.1 next-server=10.13.20.10 ntp-server=10.13.20.1
Statistics: Posted by seb13 — Sun Jan 12, 2025 6:26 pm