< Home

ptp port-state

Function

The ptp port-state command statically configures the status of a PTP interface.

The undo ptp port-state command restores the default status of a PTP interface.

By default, a statically specified PTPT interface is in the initializing state.

Format

ptp port-state { slave | passive | master | premaster | listening | faulty | disabled | initializing }

undo ptp port-state

Parameters

Parameter Description Value
slave Configures the PTP interface status as slave. A slave interface traces external time information. A PTP device can be configured with only one slave interface. -
passive Configures the PTP interface status as passive. A passive PTP interface neither traces external time information nor advertises time information. A passive interface can send Pdelay_Req, Pdelay_Resp, delay_Resp_Follow_Up, and signaling messages as well as respond to management messages. If multiple PTP interfaces are detected as master devices in a domain, the PTP interface with the highest priority is selected as the master device and the local interface connected to this PTP interface is in the slave state. In this case, other local interfaces are in the passive state and back up the slave interface. -
master Configures the PTP interface status as master. A master PTP interface advertises time information to other devices. -
premaster Configures the PTP interface status as premaster. A premaster PTP interface neither traces external time information nor advertises time information. A premaster interface can send Pdelay_Req, Pdelay_Resp, delay_Resp_Follow_Up, and signaling messages as well as respond to management messages. -
listening Configures the PTP interface status as listening. A listening PTP interface neither traces external time information nor advertises time information. If a device originally functioning as a master clock is configured to be an OC working in slaveonly mode, or if the device becomes faulty, the status of the PTP interface on the device changes from master to listening. -
faulty Configures the PTP interface status as faulty. A faulty interface can only respond to some management messages on a link, instead of sending other PTP messages. -
disabled Configures the PTP interface status as disabled. A disabled PTP interface cannot send PTP messages, and discards all PTP messages except for management messages. The disabled status of a PTP interface equals to disabling the PTP function from the interface using the undo ptp enable command in the interface view. -
initializing Configures the PTP interface status as initializing. An initializing PTP interface initializes the data set, hardware information, and communication device information. In case of an initializing PTP interface, all interfaces on the clock node are prohibited from sending PTP messages. -

Views

XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view

Default Level

2: Configuration level

Usage Guidelines

Static clock source selection and dynamic BMC clock source selection are two independent sets of clock source selection mechanism. The priority of static clock source selection is higher than that of dynamic BMC clock source selection. You can fix the master-slave relationship between clock nodes within a network by statically configuring the status of PTP interfaces on them. In this way, the reference clock source is not selected through BMC algorithm.

Example

# Configure the PTP interface to be in the slave state.

<HUAWEI> system-view
[HUAWEI] ptp set-port-state enable
[HUAWEI] interface xgigabitethernet 0/0/1
[HUAWEI-XGigabitEthernet0/0/1] ptp port-state slave
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >