Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PXE DHCP server without interfering with the "real" server?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
vputz
Guru
Guru


Joined: 16 Mar 2005
Posts: 310
Location: Oxford, England

PostPosted: Tue Feb 14, 2006 2:12 am    Post subject: PXE DHCP server without interfering with the "real" Reply with quote

I'd like to experiment with DHCP and PXE boot (so I can use my wife's desktop and laptop as distcc zombies, muhahahaaaa!). I'd also like to avoid screwing with my home network as much as I can. I have a WRT54G running Linux (dd-wrt) but for whatever reason I can't seem to get its dnsmasq server to do PXE boot correctly, but I need it to do most of the DHCP (since it's serving as the wireless gateway and I screw with my server a lot more than I screw with the router--it'd be nice if the router were stable).

Is there a way to set up a DHCP server on the gentoo server that only handles pxe requests and leaves everything else to the router?

Thanks-->VPutz
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Tue Feb 14, 2006 9:16 am    Post subject: Reply with quote

in our network, we have a regular dns server, that provides the desktops with ip settings
this dhcp server is installed on our router

in this same network, we have a second dns server, that provides for PXE boot clients
it is a Debian system, with dhcp3-server (v3.0.3-5) installed

make sure both dhcp servers provide addresses that do not collide (we are using a separate range for each)

on the 'PXE server', the /etc/dhcp3/dhcpd.conf file has the following entry:
Code:
deny unknown-clients;

this, of course, means that the mac addresses for the PXE clients must be known and inserted into this conf file

we had no conflicts, or PXE boot problems so far
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
rabinath
n00b
n00b


Joined: 03 Jan 2006
Posts: 31
Location: Germany

PostPosted: Tue Feb 14, 2006 9:24 am    Post subject: Reply with quote

I have a similar setup with a wrt54g (openwrt) and made it work. My problem was an old PXE-Rom that didn't honor the address auf the tftp-server - wich is on another machine - but insisted on loading tftp from the same address as the dhcp-server. I updated the PXE of my 3com card (http://support.3com.com/infodeli/tools/nic/mba.htm) to make it work. You find other information about PXE updates at http://syslinux.zytor.com/hardware.php#network.
Back to top
View user's profile Send private message
vputz
Guru
Guru


Joined: 16 Mar 2005
Posts: 310
Location: Oxford, England

PostPosted: Tue Feb 14, 2006 2:29 pm    Post subject: Reply with quote

Davjel, this sounds great. One question--if I boot one of those systems without PXE (but same MAC address!) will it be able to get a regular DHCP assignment, or will it be confused since it didn't boot PXE? Which server will it go scurrying off to?

Thanks! Good info; I really appreciate it.
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Tue Feb 14, 2006 4:43 pm    Post subject: Reply with quote

vputz wrote:
if I boot one of those systems without PXE (but same MAC address!) will it be able to get a regular DHCP assignment, or will it be confused since it didn't boot PXE? Which server will it go scurrying off to?


got me there :)

i guess it will get an address from the dhcp server that answers first :(
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
davidblewett
Apprentice
Apprentice


Joined: 15 Feb 2004
Posts: 274
Location: Indiana

PostPosted: Tue Feb 14, 2006 7:57 pm    Post subject: Reply with quote

This might seem overkill, but using a 2nd NIC in the machine hosting the PXE server might resolve that. I.e., only plugin to that side when you want to do PXE, otherwise use 1st.

DHCP is not easily controlled like this. Your client will accept the response from the first server to respond. That's why LAN parties usually require DHCP to be turned off on all machines attending. It can cause havoc in a network.
_________________
No guilt in life, no fear in death
this is the power of Christ in me
From life’s first cry to final breath
Jesus commands my destiny
-- Newsboys, "In Christ Alone", "Adoration: The Worship Album"
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Tue Feb 14, 2006 8:51 pm    Post subject: Reply with quote

you could try to use dhcp-client-identifiers on either your routers dhcp or your servers dhcp - whatever fits best in your situation.

So you can diffentiate between 'normal boot' (e.g. with identifier 'i wanna work') and 'pxe boot' (without special identifier and thereby using the default, the NICs MAC).
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Wed Feb 15, 2006 7:30 am    Post subject: Reply with quote

when booting locally, you could use iptables to block the dhcp offer from your pxe server
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum