LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-20-2012, 01:36 PM   #1
johnabraham
LQ Newbie
 
Registered: Dec 2012
Posts: 19

Rep: Reputation: Disabled
multiple DHCP server on a network?


Hi

I have a Linksys router configured with DHCP supplying IPs to whole network. I have one Server with CentOS6.3 configured as Host machine. i want to configure a PXE server on Host machine so that i can install all the guest OSes using PXE.

how can we configure two DHCP on a network?
can anyone tell me step by step with explaination?

thanks
 
Old 12-20-2012, 03:38 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
I've never heard of multiple DHCP servers on a network, can't imagine how it would work based upon the way DHCP broadcast requests get sent out.

Read over http://www.tech-juice.org/2011/06/21...pv4-explained/ to get an explanation.


However, this does not mean you can't setup PXE booting. I have set up PXE boots before and always had a separate DHCP service on another server.

https://help.ubuntu.com/community/PXEInstallServer < Ubuntu, I recommend it over CentOS for PXE booting, and I'm a huge RedHat guy.
http://wiki.centos.org/HowTos/PXE/PXE_Setup < CentOS
 
1 members found this post helpful.
Old 12-24-2012, 12:32 AM   #3
solarisguy
Member
 
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64

Rep: Reputation: 21
Quote:
Originally Posted by johnabraham View Post
Hi

I have a Linksys router configured with DHCP supplying IPs to whole network. I have one Server with CentOS6.3 configured as Host machine. i want to configure a PXE server on Host machine so that i can install all the guest OSes using PXE.

how can we configure two DHCP on a network?
can anyone tell me step by step with explaination?

thanks
It's a recipe for disaster, putting two DHCP servers on the same Layer 2 segment.

What I would do is create a second network (VLAN, separate NIC and switch, etc) for the PXE boot environment. Otherwise, you're just setting yourself up to have weird issues.

Alternatively, you could have the Linux server serve all DHCP requests, disable the DHCP server on the Linksys router, and put the router's IP as the default gateway for the network. It's perfectly acceptable to divorce DHCP from router functions. We do it in every one of our networks, and we have a few hundred of them (serving 11M users).
 
1 members found this post helpful.
Old 12-25-2012, 12:12 AM   #4
landysaccount
Member
 
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188

Rep: Reputation: 18
The only way I see this working is if you know the mac addresses for all the hosts in the network and using the servers to answer to specific hosts only... But, I don't understand why two dhcp servers...
 
Old 12-25-2012, 11:26 AM   #5
solarisguy
Member
 
Registered: Aug 2010
Location: Seattle
Distribution: CentOS, RHEL, Oracle Enterprise Linux, Solaris, BSD
Posts: 64

Rep: Reputation: 21
Quote:
Originally Posted by landysaccount View Post
The only way I see this working is if you know the mac addresses for all the hosts in the network and using the servers to answer to specific hosts only... But, I don't understand why two dhcp servers...
Yes, this will work, assuming that one host has network blocks advertised and is configured to be authoritative for the broadcast domain; however, this is complicated and needlessly complex when the same goal can be attained by using dhcpd on Linux and disabling the router's DHCP server.
 
Old 12-25-2012, 04:35 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
You can get this to work but consider gpxe instead. One could set lease limits to one less than amount of clients and then use any new dhcp just while booting. Other odd ways are to set mac to forever or set other port blocking.
 
  


Reply



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
Setting up a DHCP server with multiple network interfaces - Debian Srz0rz Linux - Networking 6 11-19-2016 02:28 PM
[SOLVED] rc.inet1 patch for DHCP on multiple network interfaces irfan.acar Slackware 3 06-20-2012 06:31 AM
DHCP Server with Multiple networks shahz Linux - Networking 22 03-18-2010 02:17 AM
dhcp server with multiple networks adamantium Linux - Networking 0 03-02-2004 09:16 AM
Multiple network devices, 1 to ISP, other as DHCP to clients bigian79 Linux - Networking 2 02-01-2004 01:35 PM

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

All times are GMT -5. The time now is 07:08 PM.

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