Hi Miguel,

Thanks very much for getting back to me.

On 6 Dec 2011, at 12:26, Miguel Gonçalves wrote:

This is my ntp.conf file

tick# cat /etc/ntp.conf

server 127.127.20.0 prefer mode 2 minpoll 4 maxpoll 4
fudge 127.127.20.0 flag1 1 flag2 0 flag3 1 flag4 1 time2 0.195

peer tock.xyabcd.com minpoll 4 maxpoll 4
peer time.xyabcd.com minpoll 4 maxpoll 4

tos mindist 0.250

statistics loopstats
statsdir /var/log/ntp/
filegen loopstats file loop type day enable

restrict 127.0.0.1
restrict 192.168.111.0 mask 255.255.255.0
restrict default nomodify notrap nopeer


Okay, so I have mostly copied yours and this is what I am using now:

# Modified ntp.conf from Miguel Goncalves
server 127.127.20.0 prefer mode 2 minpoll 4 maxpoll 4
fudge 127.127.20.0 flag1 1 flag2 0 flag3 1 flag4 1 time2 0.195

peer ntp.my-inbox.co.uk

tos mindist 0.250

statistics loopstats
statsdir /var/log/ntp/
filegen loopstats file loop type delay enable

restrict 127.0.0.1
restrict 139.166.0.0 mask 255.255.0.0
restrict default nomodify notrap nopeer

So, questions:

1) The peer line just needs to be another NTP server somewhere, right?

2) What does the line starting "tos" do?

Either way, it does not seemed to work. Output from ntptime and ntpq below:

oot@darkstar:/etc# ntpq -p
remote refid st t when poll reach delay offset jitter = = = = = = ======================================================================== *GPS_NMEA(0) .GPS. 0 l 15 16 377 0.000 -67.594 13.658
root@darkstar:/etc# ntptime
ntp_gettime() returns code 0 (OK)
  time d288a989.f40bfde0  Tue, Dec  6 2011 14:47:37.953, (.953308550),
  maximum error 8175995 us, estimated error 13079 us, TAI offset 0
ntp_adjtime() returns code 0 (OK)
  modes 0x0 (),
  offset -64.840 us, frequency -0.564 ppm, interval 1 s,
  maximum error 8175995 us, estimated error 13079 us,
  status 0x2001 (PLL,NANO),
  time constant 4, precision 0.001 us, tolerance 500 ppm,
root@darkstar:/etc#

So, I'm now thinking that the mistake must be in the way I have run the configure script when building the software. I think I just used -- enable-NMEA. Should I have done something else?

Thanks!

Paul.



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
questions mailing list
[email protected]
http://lists.ntp.org/listinfo/questions

Reply via email to