華為交換機設置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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM