The ptp port-state command allows you to specify the 1588v2 interface status.
The undo ptp port-state command restores the default 1588v2 interface status.
By default, the 1588v2 interface works in the Initializing state.
Parameter | Description | Value |
---|---|---|
disabled |
Configures a 1588v2 interface to work in the Disabled state. The disabled interface sends no 1588v2 packets and discards all received 1588v2 packets, except for management messages. Setting a 1588v2 interface to the Disabled state is equivalent to running the undo ptp enable command in the interface view to disable 1588v2 on the interface. |
- |
faulty |
Configures a 1588v2 interface to work in the Faulty state. The faulty interface does not send 1588v2 packets, except for responses to some management messages. |
- |
initializing |
Configures a 1588v2 interface to work in the Initializing state. An initializing interface does not send or receive 1588v2 packets. |
- |
listening |
Configures a 1588v2 interface to work in listening state. The 1588v2 interface does not trace external time information or advertise time information. (If the device where the master clock resides is configured to work in OC mode and has the slaveOnly attribute configured, or if the device fails, the 1588v2 interface switches from the master state to the listening state.). |
- |
master |
Configures a 1588v2 interface to work in the Master state. The master interface advertises time information to other devices. |
- |
passive |
Configures a 1588v2 interface to work in the Passive state. The passive interface does not track external time information or advertise time information. Passive interfaces can send Delay_Req, Pdelay_Resp, Delay_Resp_Follow_Up, signaling, and management response messages. If a device has multiple master 1588v2 interfaces in the same clock domain, the device selects the interface with the highest priority as the master clock. The interface connected to the master clock is the slave clock. The unselected master interfaces enter the Passive state and function as backups for the slave clock. |
- |
premaster |
Configures a 1588v2 interface to work in the Premaster state. The premaster interface does not track external time information or advertise time information. Premaster interfaces can send Pdelay_Req, Pdelay_Resp, Delay_Resp_Follow_Up, signaling, and management response messages. |
- |
slave |
Configures a 1588v2 interface to work in the Slave state. This interface keeps tracking time information. Each 1588v2 device has a single slave interface. |
- |
uncalibrated |
Configures a 1588v2 interface to work in the Uncalibrated state. There are a few scenarios for the Uncalibrated state usage. An uncalibrated interface has detected one or more master interfaces in the same clock domain. The uncalibrated interface selects a master interface as a time source to synchronize with. The Uncalibrated state is a temporary state. |
- |
Usage Scenario
Static clock source selection and dynamic BMC selection are two independent mechanisms. Static clock source selection has a configuration priority higher than dynamic BMC selection. To manually determine the master/slave relationship between clock nodes within a network, run the ptp port-state command to set the status of 1588v2 interfaces on the nodes.
The limits on static 1588v2 interface status configurations are as follows:Prerequisites
The ptp set-port-state enable command has been run in the system view to enable 1588v2 interface configuration.
In VS mode, this command is supported only by the admin VS.