iPXE discussion forum

Full Version: Probably a really stupid question?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm interested in using iPXE in a very specific way and read through much of the site and documentation but can't find the answer to my question.

I want to plug in a USB key, boot from it, and SPECIFY a DHCP server to attach to.

The reason for this is my network has subnets where PXE is configured on the network side. I have setup many DHCP Proxy servers and want to attach to them directly rather than the main DHCP server thus avoiding the network configured PXE settings.

Is that possible?
This is fairly easily resolved. You need to create a script that runs dhcp to get a network lease and then continues the boot process on its own instead of booting the DHCP-specified root-path/filename. An EMBEDDED script something like this should work:

Code:
#!ipxe
dhcp
chain http://some.server/my_actual_ipxe_boot_script.ipxe

I don't think it's possible to ask the iPXE DHCP client to communicate directly with a specific DHCP server, but if you want choices instead of just a hardcoded chain command, you can use login/prompt/menu commands to interact with the user.
Reference URL's