Configuring PTP on an Interface
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run ptp delay-mechanism { delay | pdelay }
A delay measurement mechanism is configured.
By default, no delay measurement mechanism is configured for PTP ports.Different delay measurement mechanisms are not compatible. Therefore, PTP interfaces on a link must have the same delay measure mechanism configured. - Run ptp enable
PTP is enabled on the interface.
By default, PTP is disabled on an interface. - (Optional) Run ptp clock-step { one-step | two-step }
The mode in which PTP devices timestamp PTP messages to perform clock synchronization is configured.
By default, PTP messages are timestamped in one-step mode.
Configuring an Interface to Drop Announce Messages
After configuring PTP on an interface, you can run the ptp announce-drop enable command on the interface to configure the interface to drop Announce messages.
Announce messages are used for PTP clock synchronization. When a user-side interface and the current PTP interface meet clock synchronization requirements, you can configure the PTP interface to drop Announce messages to retain the current master-slave hierarchy. After the interface receives Announce messages, it drops the messages and does not participate in establishing the master-slave hierarchy. This saves system resources.