时间同步设置

时间同步设置(假设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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值