Solved

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

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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

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

Suggested Solutions

Users are often faced with high disk consumption without really knowing where the largest amount of data resides. Disk Usage Analyzer (aka Baobab) is is a graphical, menu-driven application to analyse disk usage in any Gnome environment and can e…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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