ptp acl-permit-clockid

Function

The ptp acl-permit-clockid command specifies the clock ID of a PTP device that a local PTP device uses to calculate the local best master clock (BMC).

The undo ptp acl-permit-clockid command disables a local PTP device from using a specified PTP device to calculate the BMC.

By default, a device that can access clock sources uses no PTP device to calculate the BMC.

Format

ptp acl-permit-clockid clockid-value

undo ptp acl-permit-clockid clockid-value

Parameters

Parameter Description Value
clockid-value

Specifies a clock source ID.

The value is a string of 16 to 16 case-insensitive characters, spaces not supported, character in set {0-9,a-f,A-F}.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
clksync write

Usage Guidelines

Usage Scenario

The device can select a reference clock within a given range of user-defined clock sources. To specify the ID of a clock that a local device uses to select the BMC, run the ptp acl-permit-clockid command. This command allows the device to select the BMC among clocks with IDs listed in the configured clock ID list. The implementation prevents clock flapping over an entire network resulting from clock attacks or incorrect configurations.

Prerequisites

The control of access to clock sources has been enabled using the ptp acl enable command.

Follow-up Procedure

Run the display ptp all command on the local device to view clock IDs.

In VS mode, this command is supported only by the admin VS.

Example

# Allow the local device to use the clock with the ID 0000000000001234 to calculate the BMC.
<HUAWEI> system-view
[~HUAWEI] ptp acl-permit-clockid 0000000000001234
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >