NTP - default /etc/ntp.conf
Louis Mamakos
louie at transsys.com
Mon Jul 6 23:37:02 UTC 2009
On Mon, Jul 06, 2009 at 02:30:19PM +0000, Christian Weisgerber wrote:
> David Malone <dwmalone at maths.tcd.ie> wrote:
>
> > (Also, we probably really want people to run in orphan mode rather
> > than local clock mode, but we can wait a little longer until orphan
> > mode is more commonly deployed, IMHO...)
>
> I didn't know about orphan mode, so I had to try it right away.
>
> $ cat /etc/ntp.conf
> server 127.127.8.0 mode 14
> fudge 127.127.8.0 time1 0.236
> tos orphan 5
> $ ntpq -p
> remote refid st t when poll reach delay offset jitter
> ==============================================================================
> *GENERIC(0) .DCFa. 0 l 27h 64 0 0.000 -1.255 0.793
>
> Shouldn't ntpd have figured out by now that the clock is gone (I
> unplugged it yesterday) and have switched into orphan mode?
>
> --
> Christian "naddy" Weisgerber naddy at mips.inka.de
It seems like orphan mode is something that you'd run on an ensemble
of local machines to ensure that they continue to be synchronized with
each other because that's deemed important for some application need.
I don't understand why you'd go to all this trouble on a single host
to simulate NTP clock synchronization when in fact the local clock
isn't synchronized to anything?
If you're concerned about keeping the local clock synchronized to UTC
in the event that your NTP process is partitioned from it's external
NTP peers, then you don't need to do anything. Once NTP has
determined what you're clock's intrinsic frequency error is, the local
clock model will contnue to apply this frequency correction even in
the absence of external peers providing offset/delay samples. (This
is the magic number squirreled away in /var/db/ntp.drift, or wherever
it gets put these days.)
louie
More information about the freebsd-net
mailing list