Advertisement
u0m3

dnsmasq.conf for dhcp-proxy for pxe booting

Oct 28th, 2011
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. # Set port to 0 so that dnsmasq knows its not being used as a DNS server.
  2. port=0
  3.  
  4. # Configure DHCP-Proxy range
  5. dhcp-range=192.168.0.255,proxy
  6.  
  7. # Log lots of extra information about DHCP transactions.
  8. log-dhcp
  9.  
  10. # For debugging purposes, log each DNS query as it passes through dnsmasq.
  11. log-queries
  12.  
  13. # TFTP support
  14. enable-tftp
  15. tftp-root=/tftpboot
  16.  
  17. # Booting part
  18. dhcp-match=gpxe,175 # gPXE sends a 175 option
  19. dhcp-boot=net:#gpxe,gpxe.kpxe # if the request does not match the gpxe rule (#gpxe) then tell the client (most likely standard PXE client) to boot gPXE
  20. dhcp-boot=\Boot\pxeboot.n12,freeone,192.168.0.254 # in this case the request was made by gPXE and we tell it to boot win7 pxe image via TFTP (freeone is the host name, and 192.168.0.254 is the IP; in theory these 2 fields should not be necessary if the TFPT server is on the same machine as dnsmasq but...)
  21.  
  22. # Force sending of DHCP BOOT Packets
  23. pxe-service=123456789, "Trigger", triggerfile, 0
  24. # Not sure why the line above is needed and how it should be used; please see: http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq.conf.example
  25. # L.E.: It triggers the sending of dhcp-boot data... actual data is not sent, hence dummy data
  26.  
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement