?
Solved

How to configure a linux router to forward DHCP and TFTP for PXE boot

Posted on 2009-05-14
1
Medium Priority
?
1,626 Views
Last Modified: 2013-12-06
I am setting up pxe boot in a lab environment.  
One one side I have a commercial PXE server, on the other side in separate subnets I have the client machines.  The PXE server side is behind NAT/PAT.

In between I have a Linux 2.4 based router with iptables, conntrack etc. based off debian (Sarge if I recall correctly)  I have not figured out where to run DHCP from (I can do it at this router, or on the PXE server)

I can probably figure out the TFTP udp settings, but I'm not clear on what is the iptables equivalent of cisco's "IP helper".

My understanding of the problem for PXE, is simply DHCP and TFTP traffic need to make it to the PXE server/DHCP server.  
I can provide exact versions of kernel modules etc if needed.  
0
Comment
Question by:akameswaran
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 29

Accepted Solution

by:
Michael Worsham earned 1500 total points
ID: 24387670
What you are asking for is called DHCP Relay...

Pre-Boot Execution Environment (PXE) clients require an Internet Protocol (IP) address from a Dynamic Host Configuration Protocol (DHCP) server to begin the installation process from a Remote Installation Services (RIS) server. If the PXE client is located across a router from the DHCP server and/or the RIS server, the client may not receive an IP address from the DHCP server or configuration information from the RIS server.

DHCP clients located across a router from a DHCP server require that the router be configured to forward DHCP traffic to a DHCP server on a remote subnet. This traffic is broadcast traffic and routers do not normally forward broadcast traffic unless configured to do so.

Man Page: http://www.digipedia.pl/man/dhcrelay.8.html

---

Also if you have two DHCP systems, I recommend this EE PAQ'd solution as well...

Can DHCP for PXE co-exist on the same network with another DHCP server?
http://www.experts-exchange.com/Networking/Protocols/DHCP/Q_24402692.html
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question