logoalt Hacker News

ronsoryesterday at 11:11 PM8 repliesview on HN

> There is one DHCP server.

There'd better be or your network is probably hosed.


Replies

wmfyesterday at 11:13 PM

In theory it's fine to have multiple DHCP servers as long as they don't step on each other. But in reality a bunch of the things mentioned in this post are ways for the network to be hosed. Unfortunately, enough LANs are semi-hosed that it's worth working around known problems.

pezezinyesterday at 11:26 PM

At work I manage a network with two DHCP servers. One is a dnsmasq that assigns the IP address, hostname, and basic network parameters to all network devices, and the other is a LTSP server (https://ltsp.org/) that provides network boot images only for certain devices that require it. It might not look pretty, but it works really well.

0xcde4c3dbyesterday at 11:56 PM

What really matters is that there's a coherent policy for assigning addresses, which is absolutely compatible with having multiple DHCP servers on the same subnet (e.g. each server configured to hand out non-overlapping IP ranges).

show 1 reply
Sharlintoday at 12:02 AM

Well, consumer Windowses (XP Home? It’s been a while) used to hose networks because they were "helpfully" running their own DHCP server.

kryogen1cyesterday at 11:20 PM

Windows supports dhcp failover, where multiple dhcp servers can exist on the same subnet.

briandwyesterday at 11:21 PM

You don’t have to have one. My first LAN didn’t. I had no idea what I was doing and picked 17.0.0.0 addresses for local ones and I couldn’t connect to Apples website.

Hikikomoriyesterday at 11:17 PM

That works mostly, you'll have problems if you have duplicate IP addresses though.