教育/培训LinuxAIXntp

linux系统做ntp服务器,aix 双击都做ntp客户机,同步时间问题

各位专家,小弟最近在做ntp时间同步的相关工作。目前遇到一个棘手的问题,无法解决,特来此处请专家会诊!!现象描述:采用一台pc server 用vmware虚拟成两台主机,用其中一台机器安装linux系统,用来做ntp服务器。与其同步的客户机有aix系统,windows 2003 及h3c 交换机等。目前唯独aix ...显示全部
各位专家,
小弟最近在做ntp时间同步的相关工作。目前遇到一个棘手的问题,无法解决,特来此处请专家会诊!!

现象描述:

采用一台pc server 用vmware虚拟成两台主机,用其中一台机器安装linux系统,用来做ntp服务器。

与其同步的客户机有aix系统,windows 2003 及h3c 交换机等。

目前唯独aix 的两台做双机热备的机器无法同ntp时间服务器同步时间。

ntp时间服务器配置为:其ip地址为:192.168.112.251

restrict 192.168.112.0 mask 255.255.255.0 nomodify notrap
restrict 172.16.0.0 mask 255.255.0.0 nomodify notrap
restrict 192.168.200.0 mask 255.255.255.0 nomodify notrap
restrict 192.168.100.0 mask 255.255.255.0 nomodify notrap
restrict 192.200.10.0 mask 255.255.255.0 nomodify ntrap
restrict 192.200.10.0 mask 255.255.255.0 nomodify ntrap
restrict 192.200.20.0 mask 255.255.255.0 nomodify ntrap
restrict 192.200.100.0 mask 255.255.255.0 nomodify ntrap
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
#server 0.rhel.pool.ntp.org
#server 1.rhel.pool.ntp.org
#server 2.rhel.pool.ntp.org

#broadcast 192.168.1.255 key 42         # broadcast server
#broadcastclient                        # broadcast client
#broadcast 224.0.1.1 key 42             # multicast server
#multicastclient 224.0.1.1              # multicast client
#manycastserver 239.255.254.254         # manycast server
#manycastclient 239.255.254.254 key 42  # manycast client

# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
server  127.127.1.0     # local clock
fudge   127.127.1.0 stratum 10


aix小机的ntp.conf 配置为:

#broadcastclient
server 192.168.112.251
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace


小机的xntpd 进程开启。但是执行lssrc -ls xntpd

始终显示:

Program name:    /usr/sbin/xntpd
Version:         3
Leap indicator:  11 (Leap indicator is insane.)
Sys peer:        no peer, system is insane


xnptdc -c peers 显示:

# xntpdc -c peers
     remote           local      st poll reach  delay   offset    disp
=======================================================================
=192.168.112.251 192.168.112.7   11   64    1 0.00049  0.037045 15.8750




npt服务器和aix小机都在同一个网段,没有做防火墙限制。

现在insane 始终改变不过来,不知道原因 。。。请教各位啦!!收起
参与16

查看其它 14 个回答sxallen的回答

sxallensxallen工程师长安大学
回复 6# feidaodao


    messages 里边的内容:

Sep 20 16:37:46 localhost ntpd[16850]: ntpd exiting on signal 15
Sep 20 16:37:47 localhost ntpd[22781]: ntpd [email]4.2.2p1@1.1570[/email]-o Wed Sep  3 14:28:15 UTC 2008 (1)
Sep 20 16:37:47 localhost ntpd[22782]: precision = 1.000 usec
Sep 20 16:37:47 localhost ntpd[22782]: Listening on interface wildcard, 0.0.0.0#123 Disabled
Sep 20 16:37:47 localhost ntpd[22782]: Listening on interface wildcard, ::#123 Disabled
Sep 20 16:37:47 localhost ntpd[22782]: Listening on interface lo, ::1#123 Enabled
Sep 20 16:37:47 localhost ntpd[22782]: Listening on interface eth0, fe80::20c:29ff:feda:aa34#123 Enabled
Sep 20 16:37:47 localhost ntpd[22782]: Listening on interface lo, 127.0.0.1#123 Enabled
Sep 20 16:37:47 localhost ntpd[22782]: Listening on interface eth0, 192.168.112.251#123 Enabled
Sep 20 16:37:47 localhost ntpd[22782]: kernel time sync status 0040
Sep 20 16:37:47 localhost ntpd[22782]: configure: keyword "ntrap" unknown, line ignored
Sep 20 16:37:47 localhost last message repeated 3 times
Sep 20 16:37:47 localhost ntpd[22782]: Cannot open log file /var/log/ntp/ntp.log
Sep 20 16:37:47 localhost ntpd[22782]: frequency initialized 0.000 PPM from /var/lib/ntp/drift
Sep 20 16:41:01 localhost ntpd[22782]: synchronized to LOCAL(0), stratum 10
Sep 20 16:41:01 localhost ntpd[22782]: kernel time sync enabled 0001
教育/培训 · 2011-09-20
浏览3451

回答者

sxallen
工程师长安大学

sxallen 最近回答过的问题

回答状态

  • 发布时间:2011-09-20
  • 关注会员:1 人
  • 回答浏览:3451
  • X社区推广