華為交換機設定ntp時間同步
阿新 • • 發佈:2021-08-11
操作交換機型號:HuaweiS5720
檢視時間發現時間不對
[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