##### Configuration file for dnsmasq ##### # # Sample configuration for BIOS net-booting (PXE booting). # It is a replacement of the original netboot-server used in earlier version # of Fatdog. # # This sample setting will work for VirtualBox using "Host-only" network. # Watch for *** CHANGE THIS *** comment and change them accordingly. # # *** CHANGE THIS *** # Network interface to listen to. # Or just comment out the line to listen to all interfaces. interface=vboxnet0 # Only bind to the specified IP and interface above. # This allows multiple dnsmasq to run at the same time. bind-interfaces # Disable DNS - we don't need it. port=0 # Map PXEClient vendor-class to PXE tag - we will use the PXE tag later. dhcp-vendorclass=set:PXE,PXEClient # Set notPXE tag if it PXE tag isn't set. tag-if=set:notPXE,tag:!PXE # Don't service DHCP request if not from PXE client. dhcp-ignore=tag:notPXE # *** CHANGE THIS *** # Range of IP address to be allocated for DHCP requests. # Ensure it is in the same subnet as the IP of the specified interface above. # (VirtualBox "Host-only" network IP is 192.168.56.xxx by default). dhcp-range=tag:PXE,192.168.56.200,192.168.56.210 # No need to test whether DHCP address to be allocated is already used. no-ping # Filename of bootloader. dhcp-boot=pxelinux.0 # Commands to send back to pxelinux: 208 is magic, 209 is config filename, # 210 is path-prefix, 211 is reboot-time (in seconds) in case of failure. dhcp-option-force=tag:PXE,208,F1:00:74:7E dhcp-option-force=tag:PXE,209,"default" dhcp-option-force=tag:PXE,210,"pxelinux.cfg/" dhcp-option-force=tag:PXE,211,30 # Enable TFTP server - PXE boot uses TFTP. enable-tftp # *** CHANGE THIS *** # Root directory of files that will be served by the TFTP server. # It doesn't exist by default, so create symlink to the real path. # # In the actual directory.put pxelinux.0, create pxelinux.cfg directory, and # create pxelinux.cfg/default config file (filenames specified earlier). # tftp-root=/var/lib/tftp