Solved

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

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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
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…
Suggested Courses

617 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