1. Server,名称为COMPARDRAC1:
cd /etc/inet/
cp ntf.server ntf.conf
vi ntf.conf server 127.127.1.0
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
requestkey 0
controlkey 0 touch /var/ntp/ntp.drift
cd /usr/lib/inet
svcadm enable svc:/network/ntp 等待5分钟左右,确认指令:
ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
*LOCAL(0) .LCL. 0 l 31 64 1 0.00 0.000 15885.0 2. Client
cp /etc/inet/ntp.client /etc/inet/ntp.conf
vi /etc/inet/ntp.conf server COMPARDNTPS0 prefer touch /var/ntp/ntp.drift
svcadm enable svc:/network/ntp 等待5分钟左右,确认
ntpq -p remote refid st t when poll reach delay offset disp
====================================================
*COMPARDRAC0 .LCL. 1 u 591 1024 377 0.66 0.086 0.14
3. 停止、启动NTP服务
svcadm disable svc:/network/ntp
svcadm enable svc:/network/ntp
svcadm refresh svc:/network/ntp
svcadm restart svc:/network/ntp
4. 查看服务
ps -ef|grep ntp
ntpq -p
|