< Home

ptp clock-source local local-priority

Function

The ptp clock-source local local-priority command sets the local priority for a local PTP clock source or an external clock source.

The undo ptp clock-source local local-priority command restores the default local priority of a local or external clock source.

By default, the local priority of a local PTP clock source or an external clock source is 128.

Format

ptp clock-source local local-priority local-priority-value slot slot-id

undo ptp clock-source local local-priority slot slot-id

Parameters

Parameter Description Value
local-priority local-priority-value Specifies a local priority. The value is an integer that ranges from 1 to 255.
slot slot-id Specifies the slot ID. The value range depends on the device configuration.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenarios

According to the BMC algorithm in G.8275.1, when the local or external clock source competes with a line clock source and other attributes are the same, the two clock sources are compared against the local priority. The clock source with a lower local priority is preferentially selected.

Example

# Set the local priority of a local PTP clock source to 120.

<HUAWEI> system-view
[HUAWEI] ptp clock-source local local-priority 120 slot 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >