免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
论坛 操作系统 Solaris NTP
最近访问板块 发新帖
查看: 1717 | 回复: 9
打印 上一主题 下一主题

NTP [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-08-10 16:03 |只看该作者 |倒序浏览
今天做了一天的服务器和客户端并搜索了很多相关的贴子。然后跟着做老是不成功,郁闷死了。     
     那位大虾做成菌过NTP服务器和NTP客户端。能不能把你的ntp.conf文件完整的贴出来。谢谢!!~~~

论坛徽章:
0
2 [报告]
发表于 2003-08-10 16:08 |只看该作者

NTP

你的 config 之后。。
NTP 的 SERVICES 有 STOP-》START 吗?

论坛徽章:
0
3 [报告]
发表于 2003-08-10 16:11 |只看该作者

NTP

原帖由 "diag" 发表:
你的 config 之后。。
NTP 的 SERVICES 有 STOP-》START 吗?
    当然启动了,你能贴出你的ntp.conf这个文件吗谢谢!~

论坛徽章:
0
4 [报告]
发表于 2003-08-10 17:05 |只看该作者

NTP

hehe这个东东不是很复杂的阿
根据文档做就可以的
不过我当时参照389的书做了两台,
有一台就是不行很奇怪.
一直没有高清楚什么问题

论坛徽章:
0
5 [报告]
发表于 2003-08-11 08:48 |只看该作者

NTP

原帖由 "wohoo" 发表:
hehe这个东东不是很复杂的阿
根据文档做就可以的
不过我当时参照389的书做了两台,
有一台就是不行很奇怪.
一直没有高清楚什么问题
    我跟着这里好多相关的贴做,不知道是不是我背,还是那里错老是做不成功。那个好心人帮帮忙把你做成功的服务器和客户机的ntp.conf完整的贴出来让我跟着做做,万份感谢!~!!!!~

论坛徽章:
0
6 [报告]
发表于 2003-08-11 10:50 |只看该作者

NTP

帮你顶一下

论坛徽章:
0
7 [报告]
发表于 2003-08-11 13:32 |只看该作者

NTP

sun solaris x86
在/etc/inet/ntp.server为模版
配置文件为/etc/inet/ntp.conf
如下:
bash-2.05# vi ntp.conf
"ntp.conf" 65 lines, 2713 characters
# ident "@(#)ntp.server 1.6     00/07/17 SMI"
#
# /etc/inet/ntp.server
#
# An example file that could be copied over to /etc/inet/ntp.conf and
# edited; it provides a configuration template for a server that
# listens to an external hardware clock, synchronizes the local clock,
# and announces itself on the NTP multicast net.
#

# This is the external clock device.  The following devices are
# recognized by xntpd 3-5.93e:
#
# XType Device    RefID          Description
# -------------------------------------------------------
#  1    local     LCL            Undisciplined Local Clock
#  2    trak      GPS            TRAK 8820 GPS Receiver
#  3    pst       WWV            PSTI/Traconex WWV/WWVH Receiver
#  4    wwvb      WWVB           Spectracom WWVB Receiver
#  5    true      TRUE           TrueTime GPS/GOES Receivers
#  6    irig      IRIG           IRIG Audio Decoder
#  7    chu       CHU            Scratchbuilt CHU Receiver
#  8    parse     ----           Generic Reference Clock Driver
#  9    mx4200    GPS            Magnavox MX4200 GPS Receiver
# 10    as2201    GPS            Austron 2201A GPS Receiver
# 11    arbiter   GPS            Arbiter 1088A/B GPS Receiver
# 12    tpro      IRIG           KSI/Odetics TPRO/S IRIG Interface
# 13    leitch    ATOM           Leitch CSD 5300 Master Clock Controller
# 15    *         *              TrueTime GPS/TM-TMD Receiver
# 17    datum     DATM           Datum Precision Time System
# 18    acts      ACTS           NIST Automated Computer Time Service
# 19    heath     WWV            Heath WWV/WWVH Receiver
# 20    nmea      GPS            Generic NMEA GPS Receiver
# 22    atom      PPS            PPS Clock Discipline
# 23    ptb       TPTB           PTB Automated Computer Time Service
# 24    usno      USNO           USNO Modem Time Service
# 25    *         *              TrueTime generic receivers
# 26    hpgps     GPS            Hewlett Packard 58503A GPS Receiver
# 27    arc       MSFa           Arcron MSF Receiver
#
# * All TrueTime receivers are now supported by one driver, type 5.
#   Types 15 and 25 will be retained only for a limited time and may
#   be reassigned in future.
#
# Some of the devices benefit from "fudge" factors.  See the xntpd
# documentation.

# Either a peer or server.  Replace "XType" with a value from the
# table above.
server 127.127.1.0 prefer
fudge 127.127.1.0 stratum 0

broadcast 224.0.1.1 ttl 4

#enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
#filegen peerstats file peerstats type day enable
#filegen loopstats file loopstats type day enable
#filegen clockstats file clockstats type day enable

#keys /etc/inet/ntp.keys
#trustedkey 0
#lrequestkey 0
#controlkey 0
控制服务

/etc/init.d/xntpd stop | start

利用如下命令检测







ntpq>; help
Commands available:
addvars        associations   authenticate   cl             clearvars
clocklist      clockvar       cooked         cv             debug
delay          exit           help           host           hostnames
keyid          keytype        lassociations  lopeers        lpassociations
lpeers         mreadlist      mreadvar       mrl            mrv
ntpversion     opeers         passociations  passwd         peers
poll           pstatus        quit           raw            readlist
readvar        rl             rmvars         rv             showvars
timeout        version        writelist      writevar
ntpq>;  associations
ind assID status  conf reach auth condition  last_event cnt
===========================================================
  1  4732  9014   yes   yes  none    insane   reachable  1
  2  4733  8000   yes    no

论坛徽章:
0
8 [报告]
发表于 2003-08-11 13:44 |只看该作者

NTP

如果是客户端 copy过去就可以
conf文件 就配个serverip ok

论坛徽章:
0
9 [报告]
发表于 2003-08-11 15:03 |只看该作者

NTP

谢谢大家
    那我再问问:那怎么配置对等NTP服务器

论坛徽章:
0
10 [报告]
发表于 2003-08-12 08:58 |只看该作者

NTP

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP