教育/培训LinuxAIXntp

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

各位专家,
小弟最近在做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

15同行回答

feidaodaofeidaodao系统运维工程师GA
如果server和client时间相关太大(大多少忘了),就需要首先与server端手工同步时间,请先采用#5楼方法同步时间。另外,你等待了多久时间,client向server同步时间,启动进程后需要待300s的时间才会有结果在linux和aix上,输入ntpq -p,把结果贴出来(启动进程300s后在运行此命令查看)在linux...显示全部
如果server和client时间相关太大(大多少忘了),就需要首先与server端手工同步时间,请先采用#5楼方法同步时间。

另外,你等待了多久时间,client向server同步时间,启动进程后需要待300s的时间才会有结果

在linux和aix上,输入ntpq -p,把结果贴出来(启动进程300s后在运行此命令查看)

在linux上,你可以看看message里输入日志内容,看看有什么提示。收起
金融其它 · 2011-09-15
浏览1636
mp3wwwmp3www软件开发工程师东大
在aix上,ntpdate -q 192.168.112.240看看有什么输出。显示全部
在aix上,ntpdate -q 192.168.112.240看看有什么输出。收起
互联网服务 · 2011-09-14
浏览1561
sxallensxallen工程师长安大学
怀疑npt服务器有问题,今天换了台ntp服务器,地址为:192.168.112.240 同样,也是在一台pc server上做的虚拟机,安装linux系统。将aix客户机的ntp配置改为到这台机子,重启xntpd进程,等待一段时间后,仍然不成功。使用nmap 工具查看npt服务器端口如下:[root@syntong ~]# nmap 192.168.11...显示全部
怀疑npt服务器有问题,今天换了台ntp服务器,地址为:192.168.112.240
同样,也是在一台pc server上做的虚拟机,安装linux系统。将aix客户机的ntp配置改为到这台机子,重启xntpd进程,等待一段时间后,仍然不成功。

使用nmap 工具查看npt服务器端口如下:

[root@syntong ~]# nmap 192.168.112.240 -sU

Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2011-09-13 14:31 CST
Interesting ports on 192.168.112.240:
(The 1473 ports scanned but not shown below are in state: closed)
PORT     STATE         SERVICE
111/udp  open|filtered rpcbind
123/udp  open|filtered ntp
631/udp  open|filtered unknown
724/udp  open|filtered unknown
1024/udp open|filtered unknown收起
教育/培训 · 2011-09-13
浏览1462
czb1984czb1984项目经理浙江省公众信息产业有限公司
请确认下NTP服务通信用到的udp 123端口 有没有被网络上防火墙或阻止显示全部
请确认下NTP服务通信用到的udp 123端口 有没有被网络上防火墙或阻止收起
系统集成 · 2011-09-13
浏览1474
sxallensxallen工程师长安大学
高手在哪里?显示全部
高手在哪里?收起
教育/培训 · 2011-09-13
浏览1453

提问者

sxallen
工程师长安大学

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2011-09-10
  • 关注会员:1 人
  • 问题浏览:18501
  • 最近回答:2011-11-28
  • X社区推广