Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

PXE DHCP server without interfering with the "real" server?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
vputz
Guru
Guru
User avatar
Posts: 310
Joined: Wed Mar 16, 2005 7:21 pm
Location: Oxford, England

PXE DHCP server without interfering with the "real"

  • Quote

Post by vputz » Tue Feb 14, 2006 2:12 am

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
Top
JeliJami
Veteran
Veteran
User avatar
Posts: 1086
Joined: Tue Jan 17, 2006 11:22 am
Location: Belgium

  • Quote

Post by JeliJami » Tue Feb 14, 2006 9:16 am

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: Select all

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
Top
rabinath
n00b
n00b
User avatar
Posts: 31
Joined: Tue Jan 03, 2006 1:31 pm
Location: Germany

  • Quote

Post by rabinath » Tue Feb 14, 2006 9:24 am

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.
Top
vputz
Guru
Guru
User avatar
Posts: 310
Joined: Wed Mar 16, 2005 7:21 pm
Location: Oxford, England

  • Quote

Post by vputz » Tue Feb 14, 2006 2:29 pm

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.
Top
JeliJami
Veteran
Veteran
User avatar
Posts: 1086
Joined: Tue Jan 17, 2006 11:22 am
Location: Belgium

  • Quote

Post by JeliJami » Tue Feb 14, 2006 4:43 pm

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
Top
davidblewett
Apprentice
Apprentice
User avatar
Posts: 274
Joined: Sun Feb 15, 2004 2:23 am
Location: Indiana

  • Quote

Post by davidblewett » Tue Feb 14, 2006 7:57 pm

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"
Top
think4urs11
Bodhisattva
Bodhisattva
User avatar
Posts: 6659
Joined: Wed Jun 25, 2003 9:51 pm
Location: above the cloud

  • Quote

Post by think4urs11 » Tue Feb 14, 2006 8:51 pm

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
Top
JeliJami
Veteran
Veteran
User avatar
Posts: 1086
Joined: Tue Jan 17, 2006 11:22 am
Location: Belgium

  • Quote

Post by JeliJami » Wed Feb 15, 2006 7:30 am

when booting locally, you could use iptables to block the dhcp offer from your pxe server
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Top
Post Reply

8 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic