您现在的位置是:首页 >学无止境 >将核心交换机配置为NTP服务器网站首页学无止境

将核心交换机配置为NTP服务器

文件皆一印 2024-06-17 11:26:50
简介将核心交换机配置为NTP服务器

AR配置外源NTP

1.配置ntp

<XQ-R1220>sys

[XQ-R1220]ntp-service unicast-server 120.25.115.20  #阿里云ntp

[XQ-R1220]ntp-service unicast-server 203.107.6.88   #阿里云ntp

2.查看ntp状态

<XQ-R1220>display ntp status

 clock status: synchronized

 clock stratum: 3

 reference clock ID: 203.107.6.88

 nominal frequency: 100.0000 Hz

 actual frequency: 100.0000 Hz

 clock precision: 2^12

 clock offset: 1.0987 ms

 root delay: 54.33 ms

 root dispersion: 40.58 ms

 peer dispersion: 0.81 ms

 reference time: 07:51:25.923 UTC Sep 27 2022(E6DD29FD.EC5B39E2)

核心交换机配置ntp服务

<XQ-S5731>sys

[XQ-S5731]undo ntp server disable     #启用ntp server

[XQ-S5731]ntp refclock-master 3      #设置本地设备时钟作为NTP主时钟,层数为3。

[XQ-S5731]display ntp status

 clock status: synchronized

 clock stratum: 3

 reference clock ID: 120.25.115.20

 nominal frequency: 100.0000 Hz

 actual frequency: 100.0000 Hz

 clock precision: 2^17

 clock offset: 0.0000 ms

 root delay: 60.07 ms

 root dispersion: 12.04 ms

 peer dispersion: 1.01 ms

 reference time: 07:47:53.333 UTC Sep 27 2022(E6DD2929.557C4E2F)

 synchronization state: clock synchronized

其他设备配置ntp源为核心交换机

[Bangong_S5735-SW1]ntp-service unicast-server 192.168.100.254

[Bangong_S5735-SW2]ntp-service unicast-server 192.168.100.254

[Bangong_S5735-SW3]ntp-service unicast-server 192.168.100.254

[Bangong_S5735-SW1]display ntp-service sessions

 clock source: 192.168.100.254

 clock stratum: 3

 clock status: configured, master, sane, valid

 reference clock ID: 203.107.6.88

 reach: 377

 current poll: 64

 now: 37

 offset: 13.5170 ms

 delay: 25.24 ms

 disper: 3.40 ms

<Bangon_S5735-SW2>display ntp-service sessions

 clock source: 192.168.100.254

 clock stratum: 3

 clock status: configured, master, sane, valid

 reference clock ID: 203.107.6.88

 reach: 377

 current poll: 1024

 now: 592

 offset: 3.8390 ms

 delay: 50.23 ms

 disper: 15.66 ms

<Bangon_S5735-SW3>display ntp-service sessions

 clock source: 192.168.100.254

 clock stratum: 3

 clock status: configured, master, sane, valid

 reference clock ID: 203.107.6.88

 reach: 377

 current poll: 1024

 now: 136

 offset: 120.6635 ms

 delay: 47.83 ms

 disper: 14.04 ms

 

风语者!平时喜欢研究各种技术,目前在从事后端开发工作,热爱生活、热爱工作。