1825722 Members
2987 Online
109687 Solutions
New Discussion

NTP Secondary Server

 
SOLVED
Go to solution
Tom Horan
Frequent Advisor

NTP Secondary Server

I am setting up NTP on several server. I have two servers pointing to each other to get their time. I have 5 other clients pointing to the primary NTP server to get their time, I now want to have the five clients point to the secondary server as a failover if the primary server goes down.

Anybody out there have any suggestions on how to configure this.

Cheers

Paul
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor

Re: NTP Secondary Server

Hi Paul,

You can use the prefer statement. Make your primary server as the preferred one on some clients and the secondary as the prefer on the remaining. Include both of them in your ntp.conf file.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven Gillard_2
Honored Contributor
Solution

Re: NTP Secondary Server

how about this in /etc/ntp.conf:

server version 3 prefer
server version 3

Regards,
Steve
S.K. Chan
Honored Contributor

Re: NTP Secondary Server

On the clients if you have ..

broadcastclient yes
driftfile /etc/ntp.drift

in the ntp.conf file, you should be fine because you got 2 NTP server and if one is down, the client will pick up from the 2nd server because of the "broadcastclient" line.

Of course you got to have this line in server's ntp.conf file :-

broadcast
Deshpande Prashant
Honored Contributor

Re: NTP Secondary Server

HI
This is what I have in my ntp.conf file for specifying 2 servers.

#-----
server minpoll 6 prefer #Primary
server minpoll 6 #Secondary
#-----

Thanks.
Prashant Deshpande.
Take it as it comes.