Print

7610x配置ntp时钟同步状态异常

1天前 发表

组网及说明

告警信息

问题描述

ntp时钟同步状态不生效,但是时间已同步成功

 <H3CS7610>dis ntp status

 Clock status: unsynchronized

Clock stratum: 16

 Reference clock ID: none

Clock jitter: 0.000000 s

Stability: 0.000 pps

 Clock precision: 2^-23

Root delay: 0.00000 ms

 Root dispersion: 0.00000 ms

 Reference time: 00000000.00000000  Mon, Jan  1 1900  8:05:52.000

System poll interval: 8 s

过程分析

1、 查看了ntp会话正常

<H3CS7610>dis ntp sessions

       source          reference       stra reach poll  now offset  delay disper

********************************************************************************

   [25]10.110.96.78    GPS                1   255   64    7 -55180 7.0343 0.9613

Notes: 1 source(master), 2 source(peer), 3 selected, 4 candidate, 5 configured.

Total sessions: 1

 

2、 ntp的配置正常,可以ping通服务器

<SCYAA_YY04301_1_SNS_SW06_H3CS7610>dis cu | in ntp

clock protocol ntp mdc 1

ntp-service enable

ntp-service source Vlan-interface3800

ntp-service server acl 2015

ntp-service unicast-server 10.110.96.78

<H3CS7610>dis acl 2015

Basic IPv4 ACL 2015, 2 rules,

SPE_NTP

ACL's step is 5, start ID is 0

rule 13000 permit source 10.110.96.78 0 (46162 times matched)

rule 65000 deny

3、 让现场查看debugg信息,时间正常同步

<SCYAA_YY04301_1_SNS_SW05_H3CS7610>*Oct 28 15:39:50:863 2022 SCYAA_YY04301_1_SNS_SW05_H3CS7610 NTP/7/PACKET_SEND: -MDC=1; Flushing packet, 1 items

*Oct 28 15:40:04:185 2022 H3CS7610 NTP/7/PACKET_SEND: -MDC=1;

 packet to 10.110.96.78, length: 48

 leap: 3, version: 4, mode: 3, vrfindex: 0

 stratum: 16, poll: 6, precision: 2^-23

 rdel: 0.000, rdsp: 0.961, refid: INIT

 reftime: 00000000.00000000  Mon, Jan  1 1900  8:05:52.000

 orgtime: e7060573.43da9435  Fri, Oct 28 2022 15:38:27.265

 rectime: e7060593.316b2ffd  Fri, Oct 28 2022 15:38:59.193

 xmttime: e70605d4.2f736179  Fri, Oct 28 2022 15:40:04.185

 

*Oct 28 15:40:04:193 2022 H3CS7610 NTP/7/PACKET_RECV: -MDC=1;

 packet from 10.110.96.78 to 10.110.178.146 on Vlan-interface3800

 leap: 0, version: 4, mode: 4, vrfindex: 0

 stratum:  1, poll: 6, precision: 2^-16

 rdel: 0.000, rdsp: 2.121, refid: GPS

 reftime: e70605b3.94f1d3ed  Fri, Oct 28 2022 15:39:31.581

 orgtime: e70605d4.2f736179  Fri, Oct 28 2022 15:40:04.185

 rectime: e70605b4.435f1bef  Fri, Oct 28 2022 15:39:32.263

 xmttime: e70605b4.436fc158  Fri, Oct 28 2022 15:39:32.263

 inptime: e70605d4.316d17dc  Fri, Oct 28 2022 15:40:04.193

解决方法

解决方案:

修改ntp-service 的权限等级。

将ntp-service server acl 2015  修改成  ntp-service peer acl 2015 之后问题解决

原因:

Server权限只允许自己向其他设备同步时间,不允许其他设备修改本机时间