文本版|topic 高级搜索
   名人堂 帮助 论坛制度 意见反馈 | 首页 博客 周新贴 专题 求职 读书
RSS 底部
 
社区导航: 专家门诊   网络技术   操作系统   数据库   程序设计   系统应用   考试认证   CIO及信息化   站长交流   综合交流   下载基地  51CTO产品服务 设为首页 | 收藏本站
51CTO技术论坛» Solaris & BSD & Unix » sun NTP server setup       [ 打印]  [ 订阅]  [ 收藏]  [ 推荐给朋友]   [ 本帖文本页]

论坛跳转:
     
标题: [原创] sun NTP server setup  ( 查看:255  回复:1 )   
 
jdhou
新新人类  点击可查看详细



帖子 16
精华 0
无忧币 10
积分 80
阅读权限 20
注册日期 2007-9-17
最后登录 2008-8-18 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2008-5-10 15:44   标题:sun NTP server setup
上一帖 |
NTP server setup
--------------------------------------------------------------------
1. Copy over /etc/inet/ntp.server to /etc/inet/ntp.conf as:
# cp /etc/inet/ntp.server /etc/inet/ntp.conf
2. edit ntp.conf file
# vi /etc/inet/ntp.conf
server 127.127.1.0 prefer
fudge 127.127.1.0 stratum 0
broadcast 224.0.1.1 ttl 4
enable auth monitor
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
requestkey 0
controlkey 0
3. save this file and exit.
4. Start xntpd daemon
# /etc/init.d/xntpd stop
# /etc/init.d/xntpd start
5. Verify the server setup
# ntpq -p
remote refid st t when poll reach delay offset disp
============================================
*LOCAL(0) .LCL. 0 l 17 64 377 0.00 0.000 10.03
224.0.1.1 0.0.0.0 16 - - 64 0 0.00 0.000 16000.0

最后进行编辑的是 YT on 2003-02-18 13:02, 总计第 1 次编辑

   
--------------------------------------------------------------------------------

--------------------------------------------------------------------
NTP Client Setup
--------------------------------------------------------------------
1. Copy over /etc/inet/ntp.client to /etc/inet/ntp.conf
# cp /etc/inet/ntp.client /etc/inet/ntp.conf
# vi /etc/inet/ntp.conf
peer 192.168.9.40
server 127.127.1.0
fudge 127.127.1.0 stratum 10
2. start xntpd daemon on client
# /etc/init.d/xntpd stop
# /etc/init.d/xntpd start
3. check to see if it is bound to a NTP server or not.
# ntpq -p
remote refid st t when poll reach delay offset disp
=================================================
host1.motl .LCL. 1 u 45 64 17 0.82 27135.0 1875.06
*LOCAL(0) LOCAL(0) 10 l 44 64 377 0.00 0.000 10.06



网络虽虚拟,技术无边界,来看看大家“真面目”!
2008-5-10 15:441楼
[ 顶部 ]
 
wangjiahao
新新人类  点击可查看详细



帖子 27
精华 0
无忧币 3
积分 11
阅读权限 20
注册日期 2008-5-11
最后登录 2008-8-28 离线

[查看资料]  [发短消息]  [Blog
       
发表于:2008-5-12 09:43   标题:谢谢

好东西谢谢



网络虽虚拟,技术无边界,来看看大家“真面目”!
2008-5-12 09:432楼
[ 顶部 ]
     
论坛跳转:  

| | |

| | |

标记已读 · 删除论坛Cookies · 文本版 · WAP
 
| 诚征版主 | 版主堂 | 意见建议 | 大史记 | 论坛地图
Copyright©2005-2008 51CTO.COM  Powered by Discuz!
本论坛言论纯属发布者个人意见,不代表51CTO网站立场!如有疑义,请与管理员联系。
京ICP备05051492号