[ntp:questions] peer command and clusters

Rob nomail at example.com
Sat Mar 26 10:36:49 UTC 2011


Florin Andrei <florin at andrei.myip.org> wrote:
> Two groups of machines in two datacenters, VPN line in between. Two NTP 
> servers in each datacenter, sync'ing to public servers. Local networks 
> are gig ethernet.
>
> Sometimes there seem to be issues with the public servers, so I figured 
> I may as well use the "peer" command to at least keep the local servers 
> as close to each other as possible, since I've a few clusters where it's 
> more important that all members agree on the same time base, even when 
> that base might not be very accurate.
>
> So I came up with this configuration for the local NTP servers. Please 
> criticize it.
>
> ###########################################################
> server 0.us.pool.ntp.org
> server 1.us.pool.ntp.org
> server 2.us.pool.ntp.org
> server 3.us.pool.ntp.org
>
> restrict 0.us.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
> restrict 1.us.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
> restrict 2.us.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
> restrict 3.us.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery

This does not work!
The names like 0.us.pool.ntp.org return multiple IP adresses and
the "server" and "restrict" lines will not match.




More information about the questions mailing list