LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-23-2011, 01:56 AM   #1
yaplej
Member
 
Registered: Apr 2009
Distribution: CentOS, Ubuntu, openSuSE
Posts: 165
Blog Entries: 1

Rep: Reputation: 22
PXE only with dhcpd


Hi there,

I am trying to setup a PXE server so it will only respond to PXE requests for the bootfile and tftp server. I really dont even care about the subnet it replies to because I have another dhcp server that provides the IP addresses. I tried the following but it does not work.

Will dhcpd do this? If not what other option is there that will only reply to the PXE request with the filename and server?

Code:
# global settings
## POF allow booting;
allow bootp;
default-lease-time 600;
max-lease-time 7200;

subnet 192.168.1.0 netmask 255.255.255.0 {
  next-server 192.168.1.126;
  filename "pxelinux.0";
  #option subnet-mask 255.255.255.0;
  #range 192.168.1.21 192.168.1.26;
  #option domain-name-servers  192.168.1.1;
  #option routers 192.168.1.1;
}
 
Old 01-23-2011, 09:03 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
If you have to dhcp servers servicing the same network segment you'll need to ensure that the non-PXE one does not service PXEClient requests. And possibly a few other things to have them play nice together...

You'll probably want to configure a class and then a pool to respond to PXEClient requests and deny/ignore all other requests.

Code:
...
allow booting;
allow bootp;
class "pxeclients" {
   match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
   next-server 192.168.1.126;
   filename "pxelinux.0";
}

...

pool {
   allow members of "pxeclients";
   range 192.168.1.100 192.168.1.125;
   }

...

Easier might be to use the already existing DHCP server and add the above in some variation that works within your environment.


 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCPD for PXE issues JLChafardet Linux - Networking 1 11-03-2010 12:52 PM
dhcpd - allocating diffrent IPs to PXE clients and dhclient zrubi Linux - Server 1 08-21-2009 07:26 PM
PXE booting an iso plus DHCPd won't work :S Person_1873 Linux - Newbie 8 02-15-2008 01:35 AM
dhcpd.conf for 2 NICS (PXE) terp4life2001 Linux - Networking 1 04-01-2006 05:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration