[ntp:questions] change in behavior from RHEL 5 to Ubuntu 9.10
Aaron Bennett
systemspoet at gmail.com
Wed Jun 2 18:51:26 UTC 2010
Hi,
I'm puzzling through an odd discrepancy between ntpd on CentOS 5 to
Ubuntu 9.10 -- to wit, with this exact same config on both os's:
restrict default ignore
restrict 127.0.0.1
restrict 140.232.0.0 mask 255.255.0.0 nomodify
restrict 10.0.0.0 mask 255.0.0.0 nomodify
server 0.us.pool.ntp.org iburst
server 1.us.pool.ntp.org iburst
server 2.us.pool.ntp.org iburst
server us.pool.ntp.org iburst
server 0.north-america.pool.ntp.org iburst
server 1.north-america.pool.ntp.org iburst
server 2.north-america.pool.ntp.org iburst
server north-america.pool.ntp.org iburst
server pool.ntp.org iburst
restrict 0.us.pool.ntp.org nomodify nopeer notrap noquery
restrict 1.us.pool.ntp.org nomodify nopeer notrap noquery
restrict 2.us.pool.ntp.org nomodify nopeer notrap noquery
restrict us.pool.ntp.org nomodify nopeer notrap noquery
restrict 0.north-america.pool.ntp.org nomodify nopeer notrap noquery
restrict 1.north-america.pool.ntp.org nomodify nopeer notrap noquery
restrict 2.north-america.pool.ntp.org nomodify nopeer notrap noquery
restrict north-america.pool.ntp.org nomodify nopeer notrap noquery
restrict pool.ntp.org nomodify nopeer notrap noquery
driftfile /var/lib/ntp/drift
-----
It works -- and has worked, for years, on CentOS 5 (ntp 4.2.2). On
Ubuntu 9.10 (ntp 4.2.4), all but one of the peer's stay in ".INIT."
mode.
Here's what I see on CentOS:
# ntpq -pn
remote refid st t when poll reach delay
offset jitter
==============================================================================
-169.229.70.95 128.32.206.55 3 u 122 128 357 106.503
-4.578 1.546
-169.229.70.201 169.229.128.214 3 u 104 128 377 105.284
1.438 2.655
-206.217.214.4 140.142.16.34 2 u 101 128 377 55.606
14.680 1.750
*207.171.7.152 164.67.62.212 2 u 37 128 377 84.264
4.750 2.255
-173.203.202.87 128.138.188.172 2 u 251 128 376 43.650
8.790 1.185
+190.120.228.181 207.171.30.106 2 u 108 128 377 60.998
5.141 1.975
+129.174.93.11 198.82.1.203 3 u 47 128 377 13.673
7.280 2.511
-216.45.57.38 69.36.224.15 2 u 114 128 377 90.174
11.289 1.775
-169.229.70.183 169.229.128.214 3 u 45 128 377 105.451
3.820 2.095
Here's what I see on Ubuntu:
# ntpq -pn
remote refid st t when poll reach delay
offset jitter
==============================================================================
64.113.32.2 .INIT. 16 u - 64 0 0.000
0.000 0.000
*198.186.191.229 64.147.116.229 2 u 19 64 353 94.492
0.525 1.091
66.7.96.2 .INIT. 16 u - 64 0 0.000
0.000 0.000
69.65.40.29 .INIT. 16 u - 64 0 0.000
0.000 0.000
87.117.229.237 .INIT. 16 u - 64 0 0.000
0.000 0.000
72.14.183.39 .INIT. 16 u - 64 0 0.000
0.000 0.000
75.144.70.35 .INIT. 16 u - 64 0 0.000
0.000 0.000
38.229.71.1 .INIT. 16 u - 64 0 0.000
0.000 0.000
64.73.32.134 .INIT. 16 u - 64 0 0.000
0.000 0.000
>From what I just read at http://support.ntp.org/bin/view/Support/AccessRestrictions#Section_6.5.1.1.3.
, it looks like if you use 'restrict default ignore' then "You must
use an IP address on the restrict line" -- can that be right? If so,
how can you do that and still use the pool servers?
thanks,
Aaron Bennett
More information about the questions
mailing list