我用了 apt-get install ntp 安裝了 NTP Server,
以下是它的設定檔 /etc/ntp.conf 內容:
- 代碼: 選擇全部
# /etc/ntp.conf, configuration for ntpd
driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/
restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap
而在 Client 使用 ntpdate -d 192.168.1.11 進行時間同步時出現了如下的錯誤訊息:
- 代碼: 選擇全部
# ntpdate -d 192.168.1.11
18 Aug 05:28:01 ntpdate[779]: ntpdate 4.1.0 Mon Mar 25 23:39:50 UTC 2002 (2)
transmit(192.168.1.11)
receive(192.168.1.11)
transmit(192.168.1.11)
receive(192.168.1.11)
transmit(192.168.1.11)
receive(192.168.1.11)
transmit(192.168.1.11)
receive(192.168.1.11)
transmit(192.168.1.11)
server 192.168.1.11, port 123
stratum 16, precision -17, leap 11, trust 000
refid [0.0.0.0], delay 0.02571, dispersion 0.00000
transmitted 4, in filter 4
reference time: 00000000.00000000 Thu, Feb 7 2036 14:28:16.000
originate timestamp: c2ea73b9.2dab8e8e Mon, Aug 18 2003 5:35:53.178
transmit timestamp: c2ea71e1.40ed0b30 Mon, Aug 18 2003 5:28:01.253
filter delay: 0.02599 0.02574 0.02574 0.02571
0.00000 0.00000 0.00000 0.00000
filter offset: 471.9247 471.9247 471.9247 471.9247
0.000000 0.000000 0.000000 0.000000
delay 0.02571, dispersion 0.00000
offset 471.924725
18 Aug 05:28:01 ntpdate[779]: no server suitable for synchronization found
注意最下面一行的錯誤:
- 代碼: 選擇全部
no server suitable for synchronization found
我在 Google 裡找了整整一個晚上找不出來問題到底出在哪裡,
請各位學長指點一下。謝謝!