DHCP – Managing Two Servers Giving Static Addresses

dhcpdhcp-serverredundancy

I have a network having two servers that are occasionally booted. I wish to maintain DHCP services even during a boot of one server.

One of the servers currently has a DHCP server that gives static IP addresses. It gives addresses only to users with an allowed MAC address, and each user has a fixed IP. No dynamic IPs are there.

Is it possible in this setup to run two DHCP servers in the same network in different servers for redundancy? I'm not looking for a solution where the IP address sets of two servers are disjoint; I'm looking for a solution where the IP addresses both servers give are static and the same.

I am mostly interested about the general concept: can DHCP as a protocol support two DHCP servers giving same static IP addresses? Do clients get confused if they get a response from two servers with the same lease IP address? This is why I didn't specify what DHCP server I am using. I am specifically not requesting instructions for host / server configuration.

I originally asked this in Network Engineering, but they seem to have a habit of closing perfectly valid non host / server configuration related network engineering related questions using some unknown random algorithm, saying that the question is about host / server configuration (which it isn't; it's about the protocol) and the question is about a protocol above OSI layer 4 (which it is, but then again they have numerous DHCP questions there and not all get closed).

Best Answer

A couple of things:

To say that these reserved ip addresses are not dynamically assigned is inaccurate. They are dynamically assigned. The point is that they are reserved ip addresses so that the DHCP client is always dynamically assigned the same ip address. These are not statically assigned ip addresses. They are dynamically assigned, reserved ip addresses.

There's nothing stopping you from creating the same reservations on both DHCP servers. This doesn't require any special configuration of DHCP (at least in Windows DHCP server). A DHCP client that has a reservation will acquire it's ip address from one of the two DHCP servers. It doesn't matter which. During the client renewal phase (T1) the client will attempt to renew the ip address from the DHCP server that assigned the ip address to the client. If the client is unable to renew the ip address from the DHCP server that assigned the ip address to the client (because the DHCP server is down) then the client will release the ip address and attempt to acquire an ip address from any DHCP server. The second DHCP server will then service the client, and because it has the same reservation for the client, will assign the client the same ip address that the first DHCP server assigned. This process will operate the same way during the rebinding phase (T2).

Related Topic