iPXE discussion forum
Probably a really stupid question? - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Probably a really stupid question? (/showthread.php?tid=610)



Probably a really stupid question? - gtoooooh - 2011-09-25 20:40

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?


RE: Probably a really stupid question? - robinsmidsrod - 2012-09-28 09:15

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.