Dhcp and PXE
#1
Posted 29 May 2010 - 06:24 PM
various diagnostic tools, OS etc.)
I operate in different environments, most of them
already have a dhcp server configured, so enabling Tftp32
dhcp is not possible.
It's possible to configure Tftp32 dhcp
server to respond only to dhcp request that are pxe dhcp
requests ?
This way, Tftp32 dhcp server will not interfere with
the existing dhcp and allow boot from pxe.
Bye
#2
Posted 29 May 2010 - 07:59 PM
A pxe server is actually a dhcp server + a tftp server.
What about setting up your dhcp server to use tftp32 as tftp server?
This a common setup as dhcp and tftp dont have to be on the same server.
Regards,
Erwan.
#3
Posted 29 May 2010 - 09:56 PM
A PXE client sends PXEClient in option 60, which you might be able to make use of.
I do not believe that TFTPD32 can function as a PXE service only. 3Com Boot Services offer a PXE service. dnsmasq can function as one, I believe.
#4
Posted 30 May 2010 - 11:32 AM
I'll slightly disagree
PXE is not a service but merely an environement.
You will not find a process or a socket running for PXE.
DHCP is udp/67, TFTPD is udp/69 : these two together will implement the pxe environement.
As quoted there http://en.wikipedia....ion_Environment : "The PXE protocol is approximately a combination of DHCP and TFTP, albeit with subtle modifications to both. DHCP is used to locate the appropriate boot server or servers, with TFTP used to download the initial bootstrap program and additional files."
So basically, by simply specifying option 67 (pxe boot file name), your dhcp server turns into a so called PXE server, provided that a TFTP server runs on the same host.
If not, then you need to specify option 66 poiting to the ip of your TFTP server (tftpd32 for example).
Trust me, I have done that many times
And you are right, a pxe client is basically a dhcp client sending option 60.
Regards,
Erwan.
#5
Posted 30 May 2010 - 12:43 PM
Maybe it's possible to recognize the pxe dhcp inquiry when there is the request for the "Boot File" or inspecting the PXE-specific options (extended DHCPDISCOVER) of the broadcasted DHCPDISCOVER packet.
#6
Posted 31 May 2010 - 04:59 AM
That's fine.Hi Shao,
I'll slightly disagree
Having read the Intel PXE 2.1 specification and as a developer for gPXE and with the countless hours I've poured into supporting PXE users on its and Syslinux' mailing-lists and IRC channels, I recognize the original poster's request quite easily. They are interested in a ProxyDHCP service, since they sayPXE is not a service but merely an environement.
You will not find a process or a socket running for PXE.
This is roughly (most commonly) what people mean by a "PXE service," when it is separate from the DHCP service. A ProxyDHCP service on the same box as DHCP can listen on UDP 4011. On a separate box, it's most commonly listening on the DHCP port, as you mention. The poster has since confirmed their scenario. My recommendations of 3Com Boot Services and dnsmasq still apply, as I believe that both offer a ProxyDHCP service. Your statementenabling Tftp32 dhcp is not possible.
is incorrect. There is not a one-to-one relationship here. "All servers providing DHCP + TFTP are PXE servers and all PXE servers provide DHCP + TFTP" is a false statement. Therein lies the needed correction. DHCP + TFTP do not make a PXE service. A PXE service follows the PXE specification, must include a DHCP service, might include a ProxyDHCP service, might include a TFTP service, etc.A pxe server is actually a dhcp server + a tftp server.
And what about MTFTP, whose port can be dynamically determined during the PXE-boot transactions as outlined in the specification?DHCP is udp/67, TFTPD is udp/69 : these two together will implement the pxe environement.
"approximately". Yes, a DHCP service and a TFTP service are enough to provide a PXE-booting client with a successful boot. That's not applicable to this request.As quoted there http://en.wikipedia....ion_Environment : "The PXE protocol is approximately a combination of DHCP and TFTP, albeit with subtle modifications to both. DHCP is used to locate the appropriate boot server or servers, with TFTP used to download the initial bootstrap program and additional files."
That makes two of us. With good fortune, some of this information might make three of us.So basically, by simply specifying option 67 (pxe boot file name), your dhcp server turns into a so called PXE server, provided that a TFTP server runs on the same host.
If not, then you need to specify option 66 poiting to the ip of your TFTP server (tftpd32 for example).
Trust me, I have done that many times
Good day to you, as well. I apologize for the confusion by taking into account the context and the common usage of the term.And you are right, a pxe client is basically a dhcp client sending option 60.
Regards,
Erwan.
#7
Posted 31 May 2010 - 11:47 AM
I feel stupid now : I had overlooked the fact that you were behind gpxe...
Now me disagreeing look indeed completely arrogant.
Stupid me again : Sorry for trying to look smart
Thanks for patience,
Erwan.
#8
Posted 31 May 2010 - 02:48 PM
Well, there's a community behind gPXE, anyway, of which I am a part. If you've much PXE experience, please do join the mailing-lists. Your experiences will most likely benefit users with scenarios you've come across....you were behind gpxe...
It's all cool, daddy-o. There's nothing offensive about offering one's experiences and understandings in order to help another person, in my opinion.Thanks for patience,
Now it would be cool if TFTPD32 had a ProxyDHCP service mode (I won't say "PXE" anymore )... I wonder if Philippe Jounin might be interested in supporting that going forward...
#9
Posted 10 June 2010 - 06:54 AM
no time for setting up the web site yet but you guys can give a try to Serva32/64 (free), it includes among other protocols Proxy DHCP (PXE Service).
feedback and bugs reports are welcome
http://www.megaupload.com/?d=3MKB7KZC
Pat
#11
Posted 17 August 2012 - 04:25 PM
Wanted to ask for some help regarding options in DHCP server of Windows server 2008.
Have two servers and on one of them is SBS2011 with valid DNS and DHCP and wanted to make second Server 2008 as TFTP server with TFTPD64 service.
Read it a lot from internet and somewhere is said that for Cisco VOIP is option 150 and somwhere is writen that it is options 66 and 67.
What options are needed for setup tftp server on another server? What ports it is using for firewall? 69?
Thanx in advice.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users