免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1725 | 回复: 0
打印 上一主题 下一主题

solaris8 中如何正确设置NTP [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-10-13 22:45 |只看该作者 |倒序浏览
host1、host2、host3在同一网段,同一个交换机下。

设置Solaris8的host1为NTP Server,其中NTPServerIP为外部NTPServer的IP。

server NTPServerIP prefer
fudge NTPServerIP stratum 0
broadcast 224.0.1.1 ttl 4

root #host1 ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
NTPServerIP   0.0.0.0         16 -    -   64    0     0.00    0.000 16000.0
224.0.1.1       0.0.0.0         16 -    -   64    0     0.00    0.000 16000.0

设置Solaris8的host2为NTP Client,与host1时间同步:
server host1IP
multicastclient 224.0.1.1

root@host2 # ntpq -p
     remote           refid      st t when poll reach   delay   offset    disp
==============================================================================
host1            0.0.0.0         16 u    9   64    0     0.00    0.000 16000.0

设置Solaris8的host3为NTP Client,与host1时间同步:
server host1IP
multicastclient 224.0.1.1

设置并不成功,有三个问题,请各位指教:

1、在host1,host2,host3上用 /etc/init.d/xntpd start 都不能正常启动。
   但用/usr/lib/inet/xntpd可正常启动,用ntpq -p结果如上。
   why

2、若host2、host3的ntp.conf中去掉server host1IP。
root@host2 # ntpq -p
No association ID's returned

root@host3 # ntpq -p
No association ID's returned

   why
  
3、host2、host3是Cluster的双机,host2、host3的时间是同步的,但他们与host1的时间并不同步。我已覆盖了双机原来的ntp.conf

   why
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP