华为交换机设置ntp时间同步

操作交换机型号:Huawei S5720

查看时间发现时间不对

[HUAWEI]display clock
2021-04-01 21:41:35
Thursday
Time Zone(DefaultZoneName) : UTC
[HUAWEI]

1、设置时区

[HUAWEI]clock timezone cst add 8

2、设置时间服务器地址(用的阿里的时间服务器地址)

[HUAWEI]ntp-service unicast-server 203.107.6.88
Warning: The NTP IPv4 server function is disabled. Run the undo server disable command to enable the IPv4 server function.
Warning: The NTP IPv6 server function is disabled. Run the undo IPv6 server disable command to enable the IPv6 server function.

3、查看时间ntp状态

[HUAWEI]display clock
2021-08-11 15:44:35+08:00
Wednesday
Time Zone(cst) : UTC+08:00   #utc+8就是CST时间
[HUAWEI]display ntp-service 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^18
 clock offset: -6.6210 ms
 root delay: 34.59 ms
 root dispersion: 2.35 ms
 peer dispersion: 1.16 ms
 reference time: 07:46:41.568 UTC Aug 11 2021(E4BDFEE1.9184C271)
 synchronization state: clock set but frequency not determined

4、查看ntp服务会话

[HUAWEI]display ntp-service sessions
 clock source: 203.107.6.88
 clock stratum: 2
 clock status: configured, master, sane, valid
 reference clock ID: 100.107.25.114
 reach: 7
 current poll: 64
 now: 42
 offset: -9.7662 ms
 delay: 21.46 ms
 disper: 0.74 ms
原文地址:https://www.cnblogs.com/zhangzhide/p/15128661.html