教育/培训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 个回答zhenzongjian的回答

zhenzongjianzhenzongjian软件开发工程师na
蹊跷的ntp时间同步
互联网服务 · 2011-09-21
浏览3288

回答者

zhenzongjian
软件开发工程师na
擅长领域: 服务器AIXUnix

zhenzongjian 最近回答过的问题

回答状态

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