|
求助openwrt的dnsmasq配置在/etc/config/dhcp中,我改写了一下不生效
把内容写到config dnsmasq段以下
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option enable_tftp '1'
option tftp_root '/root/ipxe'
# option dhcp_boot 'ipxe64.efi'
option quietdhcp '1'
option sequential_ip '1'
# enable-tftp
# tftp-lowercase
# dhcp-no-override
# tftp-root=/mnt/sda1/pxeboot
option dhcp_match 'set:iPXE,175'
option dhcp_vendorclass 'set:flag,PXEClient:Arch:00000'
option dhcp_vendorclass 'set:flag,PXEClient:Arch:00006'
option dhcp_vendorclass 'set:flag,PXEClient:Arch:00007'
option dhcp_vendorclass 'set:flag,PXEClient:Arch:00009'
option tag_if 'set:load,tag:!iPXE,tag:flag'
option pxe_prompt '"Press F8 or Enter key for PXE menu.", 5'
# BIOS MENU
option pxe_service 'tag:load,X86PC, "BIOS ipxe undionly", undionly.kpxe'
option pxe_service 'tag:load,X86PC, "BIOS ipxe.pxe", ipxe.pxe'
option pxe_service 'tag:load,X86PC, "BIOS Microsoft PXE", pxeboot.n12'
option pxe_service 'tag:load,X86PC, "boot from local", 0'
# UEFI MENU
option pxe_service 'tag:load,IA32_EFI, "Microsoft UEFI (IA32_EFI)", bootia32.efi'
option pxe_service 'tag:load,X86-64_EFI, "Microsoft UEFI (X86-64_EFI)", bootx64.efi'
option pxe_service 'tag:load,BC_EFI, "Microsoft UEFI(BC-EFI)", bootx64.efi'
option pxe_service 'tag:load,6, "iPXE snponly UEFI32(6)", snponly32.efi'
option pxe_service 'tag:load,7, "iPXE snponly UEFI(7)", snponly.efi'
option pxe_service 'tag:load,9, "iPXE snponly UEFI(9)", snponly.efi'
option pxe_service 'tag:load,06, "iPXE UEFI32(06)", ipxe32.efi'
option pxe_service 'tag:load,07, "iPXE UEFI(07)", ipxe.efi'
option pxe_service 'tag:load,09, "iPXE UEFI(09)", ipxe.efi'
option pxe_service 'tag:load,007, "GRUB2 UEFI(007)", grub2.efi'
option pxe_service 'tag:load,009, "GRUB2 UEFI(009)", grub2.efi'
option dhcp_boot 'tag:iPXE,ipxemenu.txt'
|
|