Configure NTP Client:
To keep switch and router time same with network. Need to
configure the router and switches as NTP Clients. If not use this command service timestamps
log datetime localtime then switch generated log time show its internal clock
time.
SW#conf t
SW(config)# ntp server 1.1.1.1 //NTP
Server IP Address
SW(config)# clock timezone UTC +6 //Set Timezone.
SW(config)# service timestamps log datetime localtime //Use NTP time during log
generate.
SW(config)# do wr //save
SW(config)# end //exit
Switch#show ntp status //Check
NTP Clients details
Clock is
synchronized, stratum 4, reference is 1.1.1.1
nominal freq is 119.2092 Hz, actual freq is 119.2073 Hz,
precision is 2**18
reference time is DB63F174.195C7E08 (15:23:00.099 UTC Sun
Aug 21 2016)
clock offset is 11.9068 msec, root delay is 63.71 msec
root dispersion is 99.37 msec, peer dispersion is 9.66 msec
Switch#show clock detail
15:28:59.782 UTC Sun Aug 21 2016
Time source
is NTP
Switch#
ail
No comments:
Post a Comment