< Home

ptp set-port-state enable

Function

The ptp set-port-state enable command enables the function to statically specify the interface status.

The undo ptp set-port-state enable command disables the function to statically specify the interface status.

By default, the function to statically specify the interface status is disabled.

Format

ptp set-port-state enable slot slot-id

undo ptp set-port-state enable slot slot-id

Parameters

Parameter Description Value
slot slot-id Specifies a slot ID. The value depends on the device configuration.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

In a 1588v2/G.8275.1 clock synchronization network, all clock nodes work in the master-slave relationship. By default, the master-slave relationship between clock nodes is calculated through the BMC algorithm. To fix the master-slave relationship between clock nodes within a network, run the ptp set-port-state enable command to enable the function to statically specify the 1588v2/G.8275.1 interface status and then run the ptp port-state command to specify the clock synchronization status of all interfaces (except for the TC interface). After the ptp set-port-state enable command is run in the system view, all 1588v2/G.8275.1 interfaces are in the initializing state by default.

The following considerations apply when statically configuring the 1588v2 interface status:
  • The status of a TC interface is fixed to be premaster. Therefore, you cannot change the status of TC interfaces, including all the 1588v2 interfaces on the E2ETC and P2PTC devices and TC interfaces on the E2ETCOC and P2PTCOC devices using commands.
  • If the status of a 1588v2 interface has been specified and the device mode needs to be switched to E2ETC, P2PTC, E2ETCOC, or 2PTCOC, delete the 1588v2 interface status configuration.
  • A 1588v2 device can be configured with only one slave interface.

Ensure that a G.8275.1 device is configured with only one slave interface.

Example

# Enable the function to statically specify the interface status.

<HUAWEI> system
[HUAWEI] ptp set-port-state enable slot 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >