
61
Task Command
Display the delay correction history.
display ptp corrections
Display information about foreign master nodes.
display ptp foreign-masters-record
[
interface
interface-type
interface-number
]
Display PTP information on an interface.
display
ptp
interface
[
interface-type
interface-number
|
brief
]
Display PTP statistics.
display
ptp
[
brief
|
interface interface-type
interface-number
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Display PTP clock time properties.
display ptp time-property
Clear PTP statistics.
reset
ptp
statistics
[
interface
interface-type
interface-number
]
PTP configuration examples
PTP configuration example (IEEE 1588 version 2)
Network requirements
As shown in
, a PTP domain comprises Device A, Device B, and Device C.
•
Configure all devices to use PTP standard IEEE 1588 version 2.
•
Configure the clock node type of Device A and Device C as OC, and that of Device B as P2PTC.
All clock nodes elect a GM through BMC based on their respective default GM attributes.
•
Configure the delay measurement mechanism for Device A and Device C as
p2p
.
Figure 21 Network diagram
Configuration procedure
1.
Configure Device A:
# Specify the PTP standard as IEEE 1588 version 2.
<DeviceA> system-view
[DeviceA] ptp profile 1588v2
# Specify the clock node type as OC.
[DeviceA] ptp mode oc
# On Ten-GigabitEthernet 1/0/1, specify the delay measurement mechanism as
p2p
, and
enable PTP.
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] ptp delay-mechanism p2p
[DeviceA-Ten-GigabitEthernet1/0/1] ptp enable
XGE1/0/1
Device A
Device B
Device C
XGE1/0/2
XGE1/0/1
XGE1/0/1
OC
OC
P2PTC
PTP domain