Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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).
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...
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.