Failover peers Issue

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Failover peers Issue

kraishak
Hi, I have created the dhcp failover in my local environment it worked fine. I need to add few more line to config, so I stopped dhcpd services on them and updated the configs, Now I started dhcpd on the appliances one after the other, but it ran into issue dhcpd is not granting leaes now, In the logs it is saying failover link start up time out. Does any one has any idea on how to get out from this case.

Any help would be appreciated 
Thanks

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Failover peers Issue

Bill Shirley-2

Post some actual log lines with the error.

Post the output of "head -15 /var/lib/dhcpd/dhcpd.leases" for each server.

What changes did you make?

Bill

On 10/25/2019 2:19 PM, Kraishak Mahtha wrote:
Hi, I have created the dhcp failover in my local environment it worked fine. I need to add few more line to config, so I stopped dhcpd services on them and updated the configs, Now I started dhcpd on the appliances one after the other, but it ran into issue dhcpd is not granting leaes now, In the logs it is saying failover link start up time out. Does any one has any idea on how to get out from this case.

Any help would be appreciated 
Thanks

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Failover peers Issue

Teja
Hi Bill 
I just added one more new subnet with scope in the dhcpd.conf file and then cross checked the file with syntax check command Ex: dhcpd -t -cf dhcpd.conf 
It doesn't not gave any syntax error then i restarted the dhcpd 

On Sat, 26 Oct 2019, 12:56 Bill Shirley, <[hidden email]> wrote:

Post some actual log lines with the error.

Post the output of "head -15 /var/lib/dhcpd/dhcpd.leases" for each server.

What changes did you make?

Bill

On 10/25/2019 2:19 PM, Kraishak Mahtha wrote:
Hi, I have created the dhcp failover in my local environment it worked fine. I need to add few more line to config, so I stopped dhcpd services on them and updated the configs, Now I started dhcpd on the appliances one after the other, but it ran into issue dhcpd is not granting leaes now, In the logs it is saying failover link start up time out. Does any one has any idea on how to get out from this case.

Any help would be appreciated 
Thanks

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Failover peers Issue

Simon Hobson
Surya Teja <[hidden email]> wrote:
>Hi Bill
>I just added one more new subnet with scope in the dhcpd.conf file and
>then
>cross checked the file with syntax check command Ex: dhcpd -t -cf
>dhcpd.conf
>It doesn't not gave any syntax error then i restarted the dhcpd

Thst is no guarantee. There are a few config errors that won't be picked up by the parser.
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: Failover peers Issue

kraishak
Hi
I have stopped both the dhcpd.services on the primary and failover and
started one after the other, now it is working fine but just want to sure
what would be the reason of not giving the lease at that time
These are logs at that time
Oct 25 12:47:51 server1 dhcpd[11541]: *failover: link startup timeout*
Oct 25 12:47:51 server1 dhcpd[11541]: DHCPDISCOVER from a3:4c:12:b6:d0:1e
via xxx.xx.xx.x: peer holds all free leases
Oct 25 12:47:51 server1 dhcpd[11541]: DHCPDISCOVER from 6d:8b:d4:aa:9b:9a
via xxx.xx.xx.x: peer holds all free leases
Oct 25 12:47:51 server1 dhcpd[11541]: DHCPDISCOVER from 8a8:f0:30:0e:a9:e2
via xxx.xx.xx.x: peer holds all free leases

---> Post the output of "head -15 /var/lib/dhcpd/dhcpd.leases" for each
server.--------------->
server 2---------------------
head -15 dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.4.1

# authoring-byte-order entry is generated, DO NOT DELETE
authoring-byte-order little-endian;


failover peer "failover-peer-1" state {
  my state communications-interrupted at 5 2019/10/25 12:43:56;
  partner state normal at 4 2019/09/19 13:12:50;
}
lease 192.168.0.6 {
  starts 1 2019/08/19 17:27:54;
  ends 1 2019/09/02 17:27:54;
  tstp 1 2019/09/02 17:27:54;
-----------------------------------------------------------------------
server-1
 head -15 dhcpd.leases
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.4.1

# authoring-byte-order entry is generated, DO NOT DELETE
authoring-byte-order little-endian;


failover peer "failover-peer-1" state {
  my state normal at 5 2019/10/25 14:17:57;
  partner state normal at 5 2019/10/25 14:17:57;
  mclt 1800;
}
lease 192.168.0.6 {
  starts 1 2019/08/19 17:27:54;
  ends 1 2019/09/02 17:27:54;
-------------------------------------------------------------------------

The above contents are from the previous lease files which i have, Currently
both are in normal, normal state for both



--
Sent from: http://isc-dhcp-users.2343191.n4.nabble.com/
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users