- 论坛徽章:
- 0
|
有一台solaris10服务器,建了ntp客户端
# cat ntp.conf
# ident "@(#)ntp.client 1.3 00/07/17 SMI"
#
# /etc/inet/ntp.client
#
# An example file that could be copied over to /etc/inet/ntp.conf; it
# provides a configuration for a host that passively waits for a server
# to provide NTP packets on the ntp multicast net.
#
server 120.89.7.7 key 1
keys /etc/inet/ntp.keys
# cat ntp.keys
1 M gzxx4837
启动ntp:
svcadm enable ntp
正常,但是dmesg里显示说找不到合适的服务器:
Nov 26 17:40:22 al-2 ntpdate[26001]: [ID 831711 daemon.error] no server suitable for synchronization found
Nov 26 17:40:22 al-2 xntpd[26003]: [ID 702911 daemon.notice] xntpd 3-5.93e+sun 03/08/29 16:23:05 (1.4)
Nov 26 17:40:22 al-2 xntpd[26003]: [ID 301315 daemon.notice] tickadj = 5, tick = 10000, tvu_maxslew = 495, est. hz = 100
Nov 26 17:40:22 al-2 xntpd[26003]: [ID 266339 daemon.notice] using kernel phase-lock loop 0041, drift correction 0.00000
可是此时抓包看到的却是有发有收,且能收到ntp服务器的时间信息,如下:
IP:
UDP: ----- UDP Header -----
UDP:
UDP: Source port = 123
UDP: Destination port = 123 (NTP)
UDP: Length = 76
UDP: Checksum = F199
UDP:
NTP: ----- Network Time Protocol -----
NTP:
NTP: Leap = 0x0 (OK)
NTP: Version = 3
NTP: Mode = 4 (server)
NTP: Stratum = 1 (primary reference)
NTP: Poll = 6
NTP: Precision = 237 seconds
NTP: Synchronizing distance = 0x0000.271e (0.152802)
NTP: Synchronizing dispersion = 0x0000.10e9 (0.066055)
NTP: Reference clock = GPS
NTP: Reference time = 0xd45dbbcd.00000000 (2012-11-26 17:58:37.00000)
NTP: Originate time = 0xd45db926.0cd4e000 (2012-11-26 17:47:18.05012)
NTP: Receive time = 0xd45dbbce.5645a167 (2012-11-26 17:58:38.33700)
NTP: Transmit time = 0xd45dbbce.63958533 (2012-11-26 17:58:38.38900)
NTP: Key ID = 1
NTP: Authentication code = B413DD3E86D767999A0425595510C37D
0: 0014 4f60 c5cf 000f e250 aa10 0800 4500 ..O`.....P?..E.
16: 0060 ac62 4000 3b11 deae 7852 0707 dd05 .`.b@.;.?xR..?
32: 581d 007b 007b 004c f199 1c01 06ed 0000 X..{.{.L.....?.
48: 271e 0000 10e9 4750 5300 d45d bbcd 0000 '.....GPS..]....
64: 0000 d45d b926 0cd4 e000 d45d bbce 5645 ...].&.....]..VE
80: a167 d45d bbce 6395 8533 0000 0001 b413 .]..c..3......
96: dd3e 86d7 6799 9a04 2559 5510 c37d ?.譯.?%YU..}
但是系统时间却又不能进行正常更新,仍然是错误的时间
怎么回事呢? |
|