mirror of
https://git.valherun.com/valherun/pxe_boot_alma.git
synced 2026-10-16 00:42:03 -04:00
32 lines
900 B
Plaintext
32 lines
900 B
Plaintext
# Example dnsmasq config for AlmaLinux PXE on server1.
|
|
# Adjust interface names, addresses, and file paths before use.
|
|
|
|
interface=eth0
|
|
bind-interfaces
|
|
|
|
domain-needed
|
|
bogus-priv
|
|
log-dhcp
|
|
|
|
# DHCP range for PXE clients
|
|
dhcp-range=192.168.10.100,192.168.10.150,255.255.255.0,12h
|
|
dhcp-option=option:router,192.168.10.1
|
|
dhcp-option=option:dns-server,192.168.10.10
|
|
|
|
# Set a fixed lease for a known PXE target if desired.
|
|
# dhcp-host=52:54:00:12:34:56,server2,192.168.10.20
|
|
|
|
enable-tftp
|
|
tftp-root=/srv/tftp
|
|
|
|
# Detect firmware type. BIOS clients use PXELINUX; UEFI clients use GRUB EFI.
|
|
dhcp-match=set:bios,option:client-arch,0
|
|
dhcp-match=set:efi64,option:client-arch,7
|
|
dhcp-match=set:efi64,option:client-arch,9
|
|
|
|
dhcp-boot=tag:bios,pxelinux.0
|
|
dhcp-boot=tag:efi64,EFI/BOOT/BOOTX64.EFI
|
|
|
|
# If server1 is not the DHCP server, convert this to proxy-DHCP mode instead.
|
|
# dhcp-range=192.168.10.0,proxy,255.255.255.0
|