jdhou
新新人类
帖子
16
精华
0
无忧币 10
积分 80
阅读权限 20
|
发表于: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
|
 网络虽虚拟,技术无边界,来看看大家“真面目”! |
|