时间同步设置(假设ntp服务器为10.103.1.46):
1、ntp服务器端设置(Solaris)
2、ntp客户端设置(Solaris)
3、 ntp客户端设置(Windows)
4、ntp缺省端口
1、ntp服务器端设置(Solaris):
修改配置文件:
#cd /etc/inet
#cp ntp.server ntp.conf
#vi ntp.conf
peer 10.103.1.46
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
requestkey 0
controlkey 0
启动服务:
#/etc/init.d/xntpd stop
#/etc/init.d/xntpd start
#ntpq –p
2、ntp客户端设置(Solaris):
修改配置文件:
#cd /etc/inet
#cp ntp.client ntp.conf
#vi ntp.conf
peer 10.103.1.46
server 10.103.1.46
fudge 127.127.1.0 stratum 10
multicastclient 224.0.1.1
启动服务:
#/etc/init.d/xntpd stop
#/etc/init.d/xntpd start
#ntpq -p
3、 ntp客户端设置(Windows):
net time //10.103.1.46 /set /y
4、ntp缺省端口
123
李守亮
2003-11-12
本文介绍了时间同步设置,假设ntp服务器为10.103.1.46。详细说明了ntp服务器端和客户端在Solaris系统的设置步骤,包括修改配置文件和启动服务,还给出了Windows系统ntp客户端的设置命令,同时提及ntp缺省端口为123。
1万+

被折叠的 条评论
为什么被折叠?



