Code: Select all
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
driftfile /var/lib/ntp/ntp.drift
# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
# You do need to talk to an NTP server or two (or three).
server ntp.timeserver.com
# pool.ntp.org maps to about 1000 low-stratum NTP servers. Your server will
# pick a different set every time it starts up. Please consider joining the
# pool: <http://www.pool.ntp.org/join.html>
#server 0.debian.pool.ntp.org iburst
#server 1.debian.pool.ntp.org iburst
#server 2.debian.pool.ntp.org iburst
#server 3.debian.pool.ntp.org iburst
server 0.south-america.pool.ntp.org
server 1.south-america.pool.ntp.org
server 2.south-america.pool.ntp.org
server 3.south-america.pool.ntp.org
server 4.br.pool.ntp.org
# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
#
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.
# By default, exchange time with everybody, but don't allow configuration.
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1
# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict 192.168.123.0 mask 255.255.255.0 notrust
# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255
# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines. Please do this only if you trust everybody on the network!
#disable auth
#broadcastclientCode: Select all
$ntpq -pn
remote refid st t when poll reach delay offset jitter
==============================================================================
176.74.176.167 .INIT. 16 u - 1024 0 0.000 0.000 0.000
-200.69.222.89 170.210.222.2 4 u 113 128 377 238.287 1.285 0.467
*200.186.125.195 .ONBR. 1 u 35 128 377 206.004 0.710 0.425
+200.37.61.61 149.20.64.28 2 u 107 128 377 181.360 -1.930 0.662
+200.192.232.8 200.160.7.186 2 u 103 128 377 245.560 4.458 0.513
Code: Select all
Dec 14 18:08:53 raspberrypi2 ntpd[4912]: ntpd 4.2.6p5@1.2349-o Fri May 18 20:30:57 UTC 2012 (1)
Dec 14 18:08:53 raspberrypi2 ntpd[4913]: proto: precision = 1.000 usec
Dec 14 18:08:53 raspberrypi2 ntpd[4913]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Dec 14 18:08:53 raspberrypi2 ntpd[4913]: Listen normally on 1 lo 127.0.0.1 UDP 123
Dec 14 18:08:53 raspberrypi2 ntpd[4913]: Listen normally on 2 eth0 192.168.1.27 UDP 123
Dec 14 18:08:53 raspberrypi2 ntpd[4913]: peers refreshed
Dec 14 18:08:53 raspberrypi2 ntpd[4913]: Listening on routing socket on fd #19 for interface updates
Dec 14 18:08:53 raspberrypi2 ntpd[4913]: restrict: error in address '::' on line 39. Ignoring...
Dec 14 18:08:53 raspberrypi2 ntpd[4913]: restrict: error in address '::1' on line 43. Ignoring...
Dec 14 18:08:53 raspberrypi2 ntpd[4913]: Deferring DNS for 4.br.pool.ntp.org 1
Dec 14 18:08:53 raspberrypi2 ntpd[4933]: signal_no_reset: signal 17 had flags 4000000
Dec 14 18:08:55 raspberrypi2 ntpd_intres[4933]: host name not found: 4.br.pool.ntp.org
Dec 14 18:09:57 raspberrypi2 ntpd_intres[4933]: host name not found: 4.br.pool.ntp.org
Dec 14 18:11:59 raspberrypi2 ntpd_intres[4933]: host name not found: 4.br.pool.ntp.org
Dec 14 18:16:01 raspberrypi2 ntpd_intres[4933]: host name not found: 4.br.pool.ntp.org
Dec 14 18:24:04 raspberrypi2 ntpd_intres[4933]: host name not found: 4.br.pool.ntp.org
Dec 14 18:40:07 raspberrypi2 ntpd_intres[4933]: host name not found: 4.br.pool.ntp.org
Code: Select all
ping 8.8.8.8
ping www.google.com
Code: Select all
remote refid st t when poll reach delay offset jitter
======================================================
200.160.0.8 .INIT. 16 u - 64 0 0.000 0.000 0.000
200.186.125.195 .INIT. 16 u - 64 0 0.000 0.000 0.000
200.192.112.8 .INIT. 16 u - 64 0 0.000 0.000 0.000
200.1.22.6 .INIT. 16 u - 64 0 0.000 0.000 0.000
Code: Select all
Oct 29 20:50:38 raspberrypi ntpd[2189]: ntpd exiting on signal 15
Oct 29 20:50:40 raspberrypi ntpd[2640]: ntpd 4.2.6p5@1.2349-o Fri May 18 20:30:5 7 UTC 2012 (1)
Oct 29 20:50:40 raspberrypi ntpd[2641]: proto: precision = 1.000 usec
Oct 29 20:50:40 raspberrypi ntpd[2641]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Oct 29 20:50:40 raspberrypi ntpd[2641]: Listen normally on 1 lo 127.0.0.1 UDP 12 3
Oct 29 20:50:40 raspberrypi ntpd[2641]: Listen normally on 2 wlan0 192.168.0.122 UDP 123
Oct 29 20:50:40 raspberrypi ntpd[2641]: peers refreshed
Oct 29 20:50:40 raspberrypi ntpd[2641]: Listening on routing socket on fd #19 fo r interface updates
Oct 29 20:50:40 raspberrypi ntpd[2641]: restrict: error in address '::' on line 41. Ignoring...
Oct 29 20:50:40 raspberrypi ntpd[2641]: restrict: error in address '::1' on line 45. Ignoring...
Oct 29 20:59:13 raspberrypi ntpd[2641]: ntpd exiting on signal 15
Oct 29 20:59:15 raspberrypi ntpd[2723]: ntpd 4.2.6p5@1.2349-o Fri May 18 20:30:57 UTC 2012 (1)
Oct 29 20:59:15 raspberrypi ntpd[2724]: proto: precision = 1.000 usec
Oct 29 20:59:15 raspberrypi ntpd[2724]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Oct 29 20:59:15 raspberrypi ntpd[2724]: Listen normally on 1 lo 127.0.0.1 UDP 123
Oct 29 20:59:15 raspberrypi ntpd[2724]: Listen normally on 2 wlan0 192.168.0.122 UDP 123
Oct 29 20:59:15 raspberrypi ntpd[2724]: peers refreshed
Oct 29 20:59:15 raspberrypi ntpd[2724]: Listening on routing socket on fd #19 for interface updates
Oct 29 20:59:15 raspberrypi ntpd[2724]: restrict: error in address '::' on line 41. Ignoring...
Oct 29 20:59:15 raspberrypi ntpd[2724]: restrict: error in address '::1' on line 45. Ignoring...
Oct 29 20:59:53 raspberrypi wpa_supplicant[1504]: wlan0: WPA: Group rekeying completed with 14:d6:4d:38:3a:54 [GTK=TKIP]