Table of Contents

Cisco Time Configuration, NTP and PTP Examples



Show

Operation Command
Host> show clock


Configuration

Operation Command
Host(config)# clock timezone JST +9
Host# clock set HOUR:MINUTE:SECOND DAY MONTH YEAR
Host# clock set 12:29:00 30 Apr 2006

Jan(1), Feb(2), Mar(3), Apr(4), May(5), jun(6),
Jul(7), Aug(8), Sep(9), Oct(10), Nov(11), Des(12)


NTP Server

Operation Command
Host> show ntp status
Host# ntp server 192.168.0.10


Cisco PTP

show clock
show ptp clock Check PTP Status.
Offset From Master is Important
show ptp brief check PTP Port Status
show ptp parent
show past corrections

Cisco PTP Configuration

feature ptp

clock protocol ptp            <- To use PTP to update the system calendar
no ptp grandmaster-capable    <- To get synched with the GM
ptp source x.x.x.x    <- ptp source IP. Switch IP or GrandMaster's IP.
                         The server must be able to connect to this IP 


interface Ethernet1/X
  ptp
  ptp vlan 10
  switch port access vlan 10