
130
Task Command
Display PTP statistics.
display ptp statistics
[
interface
interface-type
interface-number
]
Display PTP clock time properties.
display ptp time-property
Clear PTP statistics.
reset
ptp
statistics
[
interface
interface-type
interface-number
]
PTP configuration example (IEEE 1588 version 2,
IEEE 802.3/Ethernet encapsulation)
Network requirements
As shown in
, a PTP domain contains Device A, Device B, and Device C.
•
Configure all devices to use PTP standard IEEE 1588 version 2.
•
Configure PTP messages to be encapsulated in IEEE 802.3/Ethernet packets.
•
Configure the clock node type of Device A and Device C as OC, and that of Device B as E2ETC.
All clock nodes elect a GM through BMC based on their respective default GM attributes.
Figure 45
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
# Specify the system time source as PTP.
[DeviceA] clock protocol ptp
# Enable PTP on GigabitEthernet 2/0/1.
[DeviceA] interface gigabitethernet 2/0/1
[DeviceA-GigabitEthernet2/0/1] ptp enable
[DeviceA-GigabitEthernet2/0/1] quit
2.
Configure Device B:
# Specify the PTP standard as IEEE 1588 version 2.
<DeviceB> system-view
GE2/0/1
Device A
Device B
Device C
GE2/0/2
GE2/0/1
GE2/0/1
OC
OC
E2ETC
PTP domain