Hello all,

having 2 GPS sources and 4 peers to each other (see below the setup),
When turning on 5th and 6th peers, they disturb my setup.
Is it possible to restrict to those 4 peers only and send time to stratums 
lower than 2 as well? (example shown below
with partial solution and error on stratum3 client).

Can somebody suggest me a workaround and confirm the existing setup?
Thanks,

Peter



gps1 local.xx (.xx) xx.xx.xx.xx stratum1
gps2 remote.yy (.yy) yy.yy.yy.yy  stratum1
--------------------------------
local.a1 xx.xx.xx.a1 stratum2
local.a2 xx.xx.xx.a2 stratum2
remote.b1 yy.yy.yy.b1  stratum2
remote.b2 yy.yy.yy.b2  stratum2
-------------------------------
local-annoying.c1 xx.xx.xx.c1 stratum2
local-annoying.c2 xx.xx.xx.c2 stratum2
--------------------------------------
local.test xx.xx.xx.t1 stratum3



[email protected]:~# ntpq -pn
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*local.xx   .GPS.            1 u    1   16  377    0.344   -0.037   0.046
+remote.yy    .GPS.            1 u    -   16  377   34.258   -0.074   0.273
-local.a1   xx.xx.xx.a1      2 u   12   16  377    0.286    0.043   0.015
+remote.b1  yy.yy.yy.b1        2 u    3   16  377   33.555   -0.016   0.055
-remote.b2  yy.yy.yy.b2        2 u    7   16  377   33.700    0.049   0.281
+local-annoying.c1  yy.yy.yy.c1     2 u   12   16  377    0.216    0.043   
0.044 <--why? how to get rid of it?
+local-annoying.c2  yy.yy.yy.c2     2 u   12   16  377    0.326    0.043   0.03 
 <--why? how to get rid of it?


(a-case)

[email protected]:/etc# cat ntp.conf
#----------------------------
restrict default noquery nomodify notrap
restrict 127.0.0.1
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp
server xx.xx.xx.xx minpoll 4 maxpoll 4 prefer
restrict xx.xx.xx.xx
server yy.yy.yy.yy minpoll 4 maxpoll 4
restrict yy.yy.yy.yy
peer xx.xx.xx.a1 key 2 minpoll 4 maxpoll 4
peer yy.yy.yy.b1 key 2 minpoll 4 maxpoll 4
peer yy.yy.yy.b2 key 2 minpoll 4 maxpoll 4
trustedkey 2
keys /etc/ntp.keys

statsdir /var/log/ntpstats/
#statistics loopstats peerstats clockstats
statistics loopstats peerstats clockstats sysstats cryptostats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
#----
filegen sysstats file sysstats type day enable
filegen cryptostats file cryptostats type day enable
[email protected]:/etc#
===================

setting for annoying  local-annoying.c1:

[email protected]:/etc# cat ntp.conf
restrict default noquery nomodify notrap
restrict 127.0.0.1
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp
server xx.xx.xx.xx key 88 minpoll 4 maxpoll 8 prefer
#-----------------------------------------------------------
restrict xx.xx.xx.xx
peer xx.xx.xx.a1 key 2 minpoll 4 maxpoll 8
peer xx.xx.xx.a2 key 2 minpoll 4 maxpoll 8
peer xx.xx.xx.c2 key 2 minpoll 4 maxpoll 8
trustedkey 2 666 88 77
requestkey 666
controlkey 666
keys /etc/ntp.keys

statsdir /var/log/ntpstats/
#statistics loopstats peerstats clockstats
statistics loopstats peerstats clockstats sysstats cryptostats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
#----
filegen sysstats file sysstats type day enable
filegen cryptostats file cryptostats type day enable
[email protected]:/etc#


Partial solution:
(b-case)

[email protected]:/etc# cat ntp.conf
restrict default ignore
restrict 127.0.0.1
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp
server xx.xx.xx.xx minpoll 4 maxpoll 4 prefer
restrict xx.xx.xx.xx
server yy.yy.yy.yy minpoll 4 maxpoll 4
restrict yy.yy.yy.yy
peer xx.xx.xx.a1 key 2 minpoll 4 maxpoll 4
peer yy.yy.yy.b1 key 2 minpoll 4 maxpoll 4
peer yy.yy.yy.b2 key 2 minpoll 4 maxpoll 4
restrict xx.xx.xx.a1
restrict yy.yy.yy.b1
restrict yy.yy.yy.b2
trustedkey 2
keys /etc/ntp.keys

statsdir /var/log/ntpstats/
#statistics loopstats peerstats clockstats
statistics loopstats peerstats clockstats sysstats cryptostats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
#----
filegen sysstats file sysstats type day enable
filegen cryptostats file cryptostats type day enable
[email protected]:/etc# /etc/init.d/ntp restart


Error on test server: (stratum3)
local.test xx.xx.xx.t1 

ntpq> pee
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 xx.xx.xx.a2 .INIT.              16 u    -   16    0    0.000    0.000   0.000 
<---------does not get time from xx.xx.xx.a2!!!!
*xx.xx.xx.a1 xx.xx.xx.xx          2 u 1030 1024  377    0.322   -0.165   1.022 
(config of xx.xx.xx.a1 as for local A2: (a-case) 
ntpq>                                                                           
using .a2 peer+ 2 remote peers

local.test # cat ntp.conf|grep -v '^$'|grep -v ^\#
driftfile /var/lib/ntp/ntp.drift
logfile /var/log/ntp
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats sysstats cryptostats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
filegen sysstats file sysstats type day enable
filegen cryptostats file cryptostats type day enable
server xx.xx.xx.a2 minpoll 4 maxpoll 4 prefer
server xx.xx.xx.a1
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
local.test#

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

Reply via email to