[ntp:questions] peer command and clusters

Dave Hart davehart at gmail.com
Mon Mar 28 19:28:18 UTC 2011


On Mon, Mar 28, 2011 at 6:47 PM, Florin Andrei <florin at andrei.myip.org> wrote:
>
> Let's assume I upgrade to a newer version that accepts the
> "source" keyword. Then how about this config?
>
> Is there are risk of too many internal servers picking other
> internal servers to sync their time - and not enough servers
> using external sources? Should I skew the selection using
> "prefer" with the external servers?

Prefer only comes into play numbering seconds for the PPS refclock, I
believe.  I think the stratum self-organization will take care of your
internal vs. external concern.

> ############################################
> 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 source nomodify notrap noquery
>
> # comment out your own name
> #
> peer ntp1
> #peer ntp2

No need, ntpd will not configure an address that is local as a remote source.

> peer ntp3
> peer ntp4
> peer ntp5
> peer ntp6
>
> driftfile /var/lib/ntp/drift
>
> # allow NTP clients to query this server
> #
> restrict XXX.YYY.ZZZ.0 mask 255.255.255.0 nomodify notrap
>
> # allow local queries
> #
> restrict 127.0.0.0 mask 255.0.0.0

restrict ::1   # ntpq/ntpdc tend to use ::1 before 127.0.0.1

> # disallow everybody else
> #
> restrict default ignore
> ############################################

Seems reasonable to me.

Cheers,
Dave Hart



More information about the questions mailing list