Cisco Catalystの時刻合わせのメモ
問合せ先はLinux Serverのntpd
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
sw01>en Password: sw01# sw01#config term Enter configuration commands, one per line. End with CNTL/Z. sw01(config)#clock timezone JST +9 sw01(config)#ntp peer 192.168.0.1 sw01(config)#ntp peer 192.168.0.2 sw01(config)#end sw01#show ntp associations address ref clock st when poll reach delay offset disp *~192.168.0.1 210.173.160.57 3 24 64 377 1.082 534.973 3.808 ~192.168.0.2 210.173.160.87 3 55 64 377 1.172 90.679 2.205 * sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured sw01#show ntp status Clock is synchronized, stratum 4, reference is 192.168.0.1 nominal freq is 119.2092 Hz, actual freq is 119.2090 Hz, precision is 2**17 reference time is D7A42E99.618E3B2B (18:27:53.381 JST Sun Aug 24 2014) clock offset is 102.8587 msec, root delay is 6.92 msec root dispersion is 653.16 msec, peer dispersion is 3.65 msec loopfilter state is 'CTRL' (Normal Controlled Loop), drift is 0.000001622 s/s system poll interval is 64, last update was 215 sec ago. sw01#show clock 18:27:55.042 JST Sun Aug 24 2014 sw01#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] 0 bytes copied in 1.279 secs (0 bytes/sec) |
NTPサーバがない場合は手動で時刻の設定
1 2 3 |
sw01#clock set 17:55:00 Aug 24 2014 sw01#show clock 17:55:06.492 JST Sun Aug 24 2014 |