華為交換機配置和NTP服務器同步時間


<YZ-SW1>clock timezone cst add 8------------------------設置時區 東8區
<YZ-SW1>dis clock ----------------------- 查詢當前時間
2020-10-29 15:14:00
Thursday
Time Zone(DefaultZoneName) : UTC
<YZ-SW1>
[YZ-SW1]ntp-service unicast-server X.X.X.X--------------配置ntp同步
Warning: The NTP IPv4 server function is disabled. Run the undo server disable command to enable the IPv4 server fu
nction.Warning: The NTP IPv6 server function is disabled. Run the undo IPv6 server disable command to enable the IPv6 serv
er function.
[YZ-SW1]
<YZ-SW1>display ntp-service status ---------------------------查詢
clock status: unsynchronized
clock stratum: 16
reference clock ID: none
nominal frequency: 100.0000 Hz
actual frequency: 100.0000 Hz
clock precision: 2^16
clock offset: 0.0000 ms
root delay: 0.00 ms
root dispersion: 0.00 ms
peer dispersion: 0.00 ms
reference time: 00:00:00.000 UTC Jan 1 1900(00000000.00000000)
[YZ-SW1]
[YZ-SW1]
[YZ-SW1]display ntp-service sessions-------------------------------------------------查詢NTP服務器會話
clock source: X.X.X.X(寫你的NTP服務IP)
clock stratum: 16
clock status: configured, insane, valid, unsynced
reference clock ID: 0.0.0.0
reach: 0
current poll: 64
now: 32
offset: 0.0000 ms
delay: 0.00 ms
disper: 0.00 ms


免責聲明!

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



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