Post date: May 29, 2011 8:40:14 AM
在網路世界裡面 使用相同的時間 非常重要,設備相關產生的LOG都必須要使用相同的計算基礎。請注意 必須要該交換器 可以連到 NTP Server 配置才有效
如果 該網段無法透通 internet 請安裝NTP Server 在環境內.... 這樣才能同步設備上的時間...
這邊與各位分享
A系列交換器 A7500以上交換器 內建硬體時鐘,所以當設備重開機的時候。時間 還會存在上面。不需要校正
可是其他的設備 就必須要啟動NTP 同步機制。
顯示 系統時間
<A7506 IRF>dis clock
16:29:17 UTC Sun 05/29/2011
<A7506 IRF>dis ntp ?
sessions NTP connection
status NTP status and configuration information
trace Trace the time synchronization information
請先設定時區(Taiwan 為 GMT+8)所以下列時間 設定加8小時
[A5500-EI-IRF]clock timezone GMT+8 add 08:00:00
[A5500-EI-IRF]
#Apr 26 20:33:13:523 2000 A5500-EI-IRF SYSMIB/4/CLKCHANGE:
1.3.6.1.4.1.25506.2.3.2.1<hh3cSysClockChangedNotification> System clock changed
定義使用下列NTP 主機 當作時間標準 (請先確定 交換器可以與該主機相連,PING的到該主機)
[A5500-EI-IRF]ntp unicast-server 59.124.196.84
檢查相關設定 是否正確設定上去
<A5500-EI-IRF>dis ntp ?
sessions NTP connection
status NTP status and configuration information
trace Trace the time synchronization information
<A5500-EI-IRF>dis ntp se
source reference stra reach poll now offset delay disper
********************************************************************************
[5]59.124.196.84 0.0.0.0 16 0 64 - 0.0 0.0 0.0
[5]59.124.196.85 0.0.0.0 16 0 64 - 0.0 0.0 0.0
note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured
Total associations : 2
原本HP Procurve / Aruba OS 交換器設定如下
X-Switch(config)# timesync sntp
X-Switch(config)# sntp unicast
X-Switch(config)# sntp server priority 1 118.163.81.61
X-Switch(config)# time timezone <gmt offset>
X-Switch(config)# time daylight-time-rule [none | alaska |
continental-us-and-canada | middle-europe-and-portugal |
southern hemisphere | western-europe | user-defined]
=======================================================================================
timesync ntp
no sntp
ntp server 118.163.81.61
time timezone 480
Aruba-2930F-8G-PoEP-2SFPP(config)# show ntp status
NTP Status Information
NTP Status : Disabled NTP Mode : Broadcast
Synchronization Status : None Configured Peer Dispersion : 0.00000 sec
Stratum Number : 16 Leap Direction : 0
Reference Assoc ID : 0 Clock Offset : 0.00000 sec
Reference ID : 0.0.0.0 Root Delay : 0.00000 sec
Precision : 2**-18 Root Dispersion : 0.00991 sec
NTP Up Time : 0d 0h 11m Time Resolution : 819 nsec
Drift : 0.00000 sec/sec
System Time : Wed Feb 7 15:13:47 2018
Reference Time : Mon Jan 1 08:00:00 1990
Aruba-2930F-8G-PoEP-2SFPP(config)# show ntp servers
NTP Server Information
Server address
------------------
118.163.81.61
=======================================================================================
Aruba-2930F-8G-PoEP-2SFPP(config)# clock
15:14:35 GMT +08:00 Wed Feb 7 2018