< Home

clock source ptp priority (system view)

Function

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.

Format

clock source ptp priority priority-value slot slot-id

undo clock source ptp priority slot slot-id

Parameters

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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Set the priority of the PTP clock source in slot 0 to 15.
<HUAWEI> system-view
[HUAWEI] clock source ptp priority 15 slot 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >