Can someone provide cons and pros for having DHCP in a data center?
I know this is usually a taboo, but maybe there were developments which alleviate the said issues?
Thanks.
|
Can someone provide cons and pros for having DHCP in a data center? I know this is usually a taboo, but maybe there were developments which alleviate the said issues? Thanks. |
||||
|
|
|
I vote no. Allow me to enumerate my reasons. 1: Reliability. 2: Security 3: Documentation 4: Management Simple is better. |
|||||||||||||
|
|
Generally speaking, DHCP with reservations is the "best of breed" for IP management in the datacenter, depending (of course) on the particular needs of your data center. Pros:
Cons:
Very rarely is it wise to run DHCP in a data center without reservations, though some blend is appropriate. In many settings, the "Cons" for DHCP with reservations end up being non-issues (if the router can take out DHCP, well, the servers aren't accessible anyway, etc). It's also commonly a decision regarding size. A datacenter with hundreds or thousands of servers with frequent deployments and reinstallation will certainly use some DHCP, even if it's only for testing/deployment. A datacenter with a few servers will likely be fine with everything statically assigned. |
|||||||||
|
|
The only exception to not running DHCP in the datacenter is this: DHCP on a DEDICATED build VLAN so you can PXE boot new servers after you rack them to image them. There is no other good reason to have DHCP running in a datacenter as already pointed out so well by everyone else. |
|||
|
|
|
I personally believe DHCP is fine in a data center, if using shared address space. DHCP doesn't really mean it has to be dynamic addresses; they can be fixed. So long as you provide redundant DHCP servers (DHCP failover) so DHCP is always available, things should be fine. People used to think leaving switch ports to auto-select speeds and duplex was a bad idea, and now I don't know of anyone who spends the time configuring a switch such. |
|||
|
|
|
Erm...it's good for client PCs in the office next to a data centre... ...printers too if you must... ...but no, still a bad idea for servers, production ones at least - maybe in a dev/test environment I guess, or for VPSs if you had no other choice. |
|||
|
|
|
Why are people so worried about DHCP in the data centre?
Disclaimer - I've implemented DHCP in the data centre and had no issues when I was an infrastructure manager, but now as a consultant for many customers I wouldn't do it. It all depends .... The following is copied from MS. Think this through and think about why you worry so much about DHCP in the data centre: If clients receive address allocations from a DHCP server, it is important to be able to predict how they will be affected by any DHCP server downtime. In general, the longer the lease period, the lesser the effects will be if the DHCP downtime remains short. For example, if client lease periods are set to the default of 8 days, clients do not attempt to renew the lease until 50 percent of this period (4 days) has lapsed. If the original DHCP server is unavailable at this time, the client continues with this leased address until 87.5 percent of the lease period (7 days) and then attempts to renew with any DHCP server. With clients attempting to renew after 4 days, even if the DHCP server were to remain unavailable for 2 days, clients would not reach the 87.5 percent rebinding state. Therefore, you do not normally need to worry about any outage that is within 25 percent of the lease duration. Similarly, the shorter the lease times, the shorter the time available to recover the DHCP server. |
|||
|
|