Solved

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

Posted on 2009-05-14
1
1,561 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 500 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
BIND is the most widely used Name Server. A Name Server is the one that translates a site name to it's IP address. There is a new bug in BIND (https://kb.isc.org/article/AA-01272), affecting all versions of BIND 9 from BIND 9.1.0 (inclusive) thro…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

739 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