|
4#
楼主 |
发表于 2022-4-17 20:01:18
|
只看该作者
本帖最后由 minchengan 于 2022-4-18 16:06 编辑
下面的配置解决了不能自动加载菜单脚本文件的问题:参考了这个帖子,vmware下测试成功:http://bbs.wuyou.net/forum.php?m ... 16744&extra=&page=1
# Custom user conf file for dnsmasq
# Please add needed params only!
### Web Proxy Automatic Discovery (WPAD)
dhcp-option=252,"\n"
### Set the limit on DHCP leases, the default is 150
#dhcp-lease-max=150
### Add local-only domains, queries are answered from hosts or DHCP only
#local=/router/localdomain/
### Examples:
### Enable built-in TFTP server
enable-tftp
### Set the root directory for files available via TFTP.
#tftp-root=/opt/srv/tftp
tftp-root=/media/AiDisk_a1/pxe
#tftp-root=/media/o_p_t_img/wwwroot/default/pxe
### Make the TFTP server more secure
#tftp-secure
### Set the boot filename for netboot/PXE
#dhcp-boot=pxelinux.0
#dhcp-boot=ipxe.efi
#dhcp-boot=ipxe.pxe
#dhcp-boot=grldr
#dhcp-boot=ipxegrldr
#dhcp-boot=lpxelinux.0
dhcp-match=set:iPXE,175
dhcp-vendorclass=set:flag,PXEClient:Arch:00000
dhcp-vendorclass=set:flag,PXEClient:Arch:00006
dhcp-vendorclass=set:flag,PXEClient:Arch:00007
dhcp-vendorclass=set:flag,PXEClient:Arch:00009
tag-if=set:load,tag:!iPXE,tag:flag
###手动选择====================
####pxe-prompt="Press F8 or Enter key for PXE menu.", 5
###BIOS MENU
#pxe-service=tag:load,X86PC, "BIOS ipxe undionly", undionly.kpxe
#pxe-service=tag:load,X86PC, "BIOS ipxe.pxe", ipxe.pxe
#pxe-service=tag:load,X86PC, "BIOS Microsoft PXE", pxeboot.n12
#pxe-service=tag:load,X86PC, "boot from local", 0
###UEFI MENU
#pxe-service=tag:load,IA32_EFI, "Microsoft UEFI (IA32_EFI)", bootia32.efi
#pxe-service=tag:load,X86-64_EFI, "Microsoft UEFI (X86-64_EFI)", bootx64.efi
#pxe-service=tag:load,BC_EFI, "Microsoft UEFI(BC-EFI)", bootx64.efi
#pxe-service=tag:load,6, "iPXE snponly UEFI32(6)", snponly32.efi
#pxe-service=tag:load,7, "iPXE snponly UEFI(7)", snponly.efi
#pxe-service=tag:load,9, "iPXE snponly UEFI(9)", snponly.efi
#pxe-service=tag:load,06, "iPXE UEFI32(06)", ipxe32.efi
#pxe-service=tag:load,07, "iPXE UEFI(07)", ipxe.efi
#pxe-service=tag:load,09, "iPXE UEFI(09)", ipxe.efi
###手动选择==========================
###自动检测=====================================
dhcp-match=set:Intel_x86PC,option:client-arch,0
###dhcp-boot=tag:Intel_x86PC,lpxelinux.0
dhcp-boot=tag:Intel_x86PC,ipxe.pxe
dhcp-match=set:EFI_BC,option:client-arch,7
dhcp-boot=tag:EFI_BC,ipxe.efi
dhcp-match=set:EFI_x86_64,option:client-arch,9
dhcp-boot=tag:EFI_x86_64,ipxe.efi
#dhcp-match=set:EFI_Arm64,option:client-arch,11
#dhcp-boot=tag:EFI_Arm64,netbootaa64.efi
#dhcp-match=set:Mips,option:client-arch,12
###自动检测=====================================
dhcp-boot=tag:iPXE,menu.ipxe
# 过滤 IPv6(AAAA)查询请求
#filter-aaaa
|
|