localhost(config)#ptp mode boundary localhost(config)#ptp domain 127 (or other value, which must match the domain on the GM) localhost(config)#ptp source ip <ip address> (create a Loopback address and define this as the source IP - thereby a unique IP address of the system matches the PTP Source IP) localhost(config)#ptp ttl 32 (or other value, default is 1)
On interface level, L2 or L3, or port-channel,
localhost(config-if-Et1)#ptp enable localhost(config-if-Et1)#ptp announce interval 0 localhost(config-if-Et1)#ptp sync interval -3 localhost(config-if-Et1)#ptp delay-req interval -3
localhost(config-if-Et1)#ptp enable localhost(config-if-Et1)#ptp announce interval 0 localhost(config-if-Et1)#ptp sync interval -3 localhost(config-if-Et1)#ptp delay-req interval -3 localhost(config-if-Et1)#ptp role master
displays which interfaces are in the following modes: Master, Slave, Passive, Disabled ; Grandmaster ID, # steps away from GM, etc
switch#show ptp PTP Mode: gptp - Generalized PTP Clock Clock Identity: 2001:0DB8:73:ff:ff:26:fd:90 Grandmaster Clock Identity: 2001:0DB8:96:ff:fe:6c:ed:02 Number of slave ports: 1 Number of master ports: 6 Slave port: Ethernet33 Mean Path Delay (nanoseconds): 718 Steps Removed: 1 Neighbor Rate Ratio: 1.00000007883 Rate Ratio: 1.00000007883 Interface State AS Time Since Last Neighbor Mean Path Residence Capable Changed Rate Ratio Delay (ns) Time (ms) --------- -------- ------- ------------------ ----------- ----------- --------- Et1 Disabled No Never 1.0 0 0 Et2 Disabled No Never 1.0 0 0 Et3 Disabled No Never 1.0 0 0 Et4 Disabled No Never 1.0 0 0 Et5 Disabled No Never 1.0 0 0 Et6 Disabled No Never 1.0 0 0 Et7 Master Yes 0:21:08 1.00000009 420 0 <-------OUTPUT OMITTED FROM EXAMPLE-------->
displays ID and parameters of PTP parent
show ptp masters show ptp parent
To displa the local PTP clock and offset.
similar to ‘show ptp’
show ptp local-clock show ptp clock
To display PTP information for specified interfaces, use the show ptp interface command.
switch# show ptp interface Interface Ethernet1 PTP: Disabled Port state: Disabled Sync interval: 1.0 seconds Announce interval: 2.0 seconds Announce interval timeout multiplier: 3 Delay mechanism: end to end Delay request message interval: 32.0 seconds Transport mode: ipv4 Interface Ethernet5 PTP: Disabled Port state: Disabled Sync interval: 8.0 seconds Announce interval: 2.0 seconds Announce interval timeout multiplier: 5 Delay mechanism: peer to peer Peer delay request message interval: 8.0 seconds Peer Mean Path Delay: 0 Transport mode: ipv4 <-------OUTPUT OMITTED FROM EXAMPLE--------> switch#
displays counters of required PTP messages, such as sync messages sent/received, delay-req sent/received
show ptp interface ethernet 3
displays up to 100 entries of offset from master, mean path delay, and skew
Switch# show ptp monitor PTP Mode: Boundary Clock Ptp monitoring: enabled Number of entries: 5 Offset from master threshold: 1500 Mean path delay threshold: not configured Skew threshold: 0.5 Interface Time Offset from Mean Path Skew Master (ns) Delay (ns) ---------- ----------------------------- ------------ ------------- ----------- Et8 21:23:12.901 UTC Feb 22 2018 71 5849 1.003159918 Et1 21:23:12.901 UTC Feb 22 2018 113 3672 1.004990621 Et2 21:23:12.901 UTC Feb 22 2018 706 7799 1.002744199 Et1 21:23:12.901 UTC Feb 22 2018 803 5861 1.003432049 Et1 21:23:12.901 UTC Feb 22 2018 610 3415 0.998974658