<html><head><title>Re: DHCP failover doesn't receive DHCP requests in secondary server</title>
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">Top posting:<br>
<br>
I think the term "fail over" causes some confusion.<br>
DHCPd in "fail-over" isn't what I'd typically think of, when I think "fail over."<br>
<br>
When I think fail-over, I think of a server that essentially does no active "work" while the primary is up and functioning - other than *getting ready* to handle the load of the primary when it goes down.<br>
<br>
Yet DHCPd fail-over is really *load-balancing* [at least in "normal" setups] with a bunch of communication between the two to handle the failure/unavailability of *either* server.<br>
<br>
Thus, in regular practice, both servers are seeing requests and answering them, and [again in "normal" setups] will have approximately half of the leases distributed to each server.<br>
<br>
HTH<br>
-Greg<br>
<br>
<span style=" color: #800000;"><b>RC> Dear, thanks for your response...So I will review the DHCP agent as you said.<br>
<br>
RC> But now I have a question:<br>
<br>
RC> If both DHCP servers always receive DHCPREQUEST packets, does it mean<br>
RC> that in normal condition (primary and secondary server are running UP)<br>
RC> both DHCP servers responds these requests ??? Or only the primary<br>
RC> server responds the requests in despite of the secondary server is UP<br>
RC> too ???<br>
<br>
RC> Thanks a lot again, regards !!!<br>
<br>
RC> 2018-08-15 12:38 GMT-03:00 perl-list <</b></span></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:perl-list@network1.net">perl-list@network1.net</a><span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>>:<br>
>> The problem isn't with the secondary server.  The DHCP packets must always go to both servers.  If the packets are relayed from a relay agent, then the relay agent must be configured to send to both of the DHCP servers (On a Cisco router, that would involve having ip helper-address listed twice, for example).<br>
<br>
>> If no relay, then the DHCP servers must both be on the same LAN with the clients.<br>
<br>
>> When both of the primary and secondary servers are running, you should see logs of the DHCP packets in both servers logs.<br>
<br>
>> ----- Original Message -----<br>
>>> From: "Roberto Carna" <</b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:robertocarna36@gmail.com">robertocarna36@gmail.com</a><span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>><br>
>>> To: "Users of ISC DHCP" <</b></span><a style=" font-family:'courier new'; font-size: 9pt;" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><span style=" font-family:'courier new'; font-size: 9pt; color: #800000;"><b>><br>
>>> Sent: Wednesday, August 15, 2018 11:06:08 AM<br>
>>> Subject: DHCP failover doesn't receive DHCP requests in secondary server<br>
<br>
>>> Dear people,<br>
<br>
>>> I´ve implemented a failover scheme with ISC-DHCP-SERVER in two<br>
>>> different servers, with the same version of the package and OS.<br>
<br>
>>> Everything seems to be OK, but when a execute "service isc-dhcp-server<br>
>>> stop" in the primary server, in the secondary server I can see:<br>
<br>
>>> Aug 15 11:52:01 dhcp2 dhcpd[5839]: peer dhcp-failover: disconnected<br>
>>> Aug 15 11:52:01 dhcp2 dhcpd[5839]: failover peer dhcp-failover: I move<br>
>>> from normal to communications-interrupted<br>
<br>
>>> what is correct, but after that the secondary server doesnt' receive<br>
>>> any DHCPREQUEST packet from clients.<br>
<br>
>>> So, my faoilover scheme doesn't work, because if primary server goes<br>
>>> down, the secondary server doesn't receive any IP request from<br>
>>> clients. When I start the isc-dhcp-server on primary server, at this<br>
>>> moment I can see the DHCPREQUEST from clients to primary server.<br>
<br>
>>> What can be the problem with the secondary server please ???<br>
<br>
>>> Thanks a lot!!!<br>
</body></html>