- 论坛徽章:
- 0
|
/etc/ntp.conf
restrict default nomodify notrap noquery
restrict 127.0.0.1
restrict IP1 mask 255.255.255.255 nomodify notrap noquery
restrict IP2 mask 255.255.255.255 nomodify notrap noquery
restrict IP3 mask 255.255.255.255 nomodify notrap noquery
server IP1
server IP2
server IP3
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
keys /etc/ntp/keys
/var/log/messages
Nov 25 13:21:56 server-name ntpd[1754]: synchronized to IP1, stratum 3
Nov 25 13:21:56 server-name ntpd[1754]: synchronized to IP3, stratum 3
Nov 25 13:21:56 server-name ntpd[1754]: synchronized to LOCAL(0), stratum 10 |
|