The clock source ptp priority command sets the priority of a ptp clock source.
The undo clock source ptp priority command restores the default priority of a ptp clock source.
The default priority of a ptp clock source is 0.
clock source ptp priority priority-value slot slot-id
undo clock source ptp priority slot slot-id
Parameter | Description | Value |
---|---|---|
priority-value | Specifies the priority of a clock source. | The value is an integer that ranges from 1 to 255. The default value is 0. A smaller value indicates a higher priority. |
slot slot-id | Specifies a slot ID. | The value range depends on the device configuration. |
When PTP is enabled and the PTP clock is a slave clock, the frequency of the PTP clock can be used as a line clock to participate in clock source selection.
In automatic clock source selection mode, a clock source can participate in clock source selection only when a priority is configured. In manual and forcible clock source selection modes, clock source switching can be performed regardless of the clock source priority. In this case, whether a priority is configured does not affect the switching result. To set the priority of a clock source, run the clock source priority command.