iPXE discussion forum
iPXE as PXE servers discover tool - Printable Version

+- iPXE discussion forum (https://forum.ipxe.org)
+-- Forum: iPXE user forums (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: iPXE as PXE servers discover tool (/showthread.php?tid=10488)



iPXE as PXE servers discover tool - pogarek - 2017-11-03 16:11

Hi all

I have discovered iPXE today, so I'm quite new here.. :-)

Very often I have a need to discover PXE servers within the LAN.
I mean I need to know :
* is pxe server coming via DHCP options 60, 66-67 and what these options are
* is pxe server coming via local network (pxe and client are on the same network)
* is pxe server coming via ipHelpers

So, in short, I need a way to simulate a PXE request and analyze the answer.
So far I have discovered, that booting a computer from ipxi.iso and performing:
dhcp
config => proxyDHCP
gives me that information (at least in case, that DHCP, PXE Server and client are within the same subnet).

However this doesn't work on UEFI computer.

May I ask how can I accomplish that? Probably a properly deployed/configured Virtualbox VM with iPXE on it will do the tricks, that I need.

So that I could a have simple , small , solution, that will do the diagnostic for UEFI and BIOS machines.

Thank you in advanced and best regards


RE: iPXE as PXE servers discover tool - NiKiZe - 2017-11-04 00:27

For efi just have your dhcp server give out a efi version of ipxe.
You can find prebuilt binaries at boot.ipxe.org
and documentation for chainloading and detecting EFI vs legacy PCBIOS can be found at http://ipxe.org/howto/chainloading#uefi


RE: iPXE as PXE servers discover tool - pogarek - 2017-11-04 00:35

The problem is that I don't have access to DHCP server. That is what I want to do : discover PXE/DHCP responses/offers for a port in switch to check if they are valid.
In the current environment there is a mess with PXE booting: wrong (probably) entries on iphelpers, incorrect 66-67 options etc.
I want to nail it down - find what gives me the reply, what is in the reply, then I'll find owner of DHCP/PXE offer, I'll correct/disable it and repeat the procedure. Smile