The ptp virtual-clock-id command configures the virtual clock ID on the PTP device.
The undo ptp virtual-clock-id command restores the automatically generated clock ID on the PTP device.
By default, no virtual clock ID is configured on the PTP device. The clock ID is generated by padding fffe to the middle of the system bridge MAC address. For example, if the system bridge MAC address is 111122223333, the default clock ID is 111122fffe223333.
Parameter |
Description |
Value |
---|---|---|
clock-id-value |
Specifies the lower four bytes of a virtual clock ID. The lower four bytes of the virtual clock ID are configurable, whereas the higher four bytes are automatically allocated by the system. The value of the higher four bytes automatically allocated by the system is 0x00259e32. |
The value range is 00000001-ffffffff in the form of a hexadecimal number. |
slot slot-id | Specifies the ID of the slot where the involved PTP device resides. | The value range depends on the device configuration. |
The 8-byte clock ID uniquely identifies a PTP device in the PTP domain. When a PTP device performs the master-slave switchover, the clock ID of the PTP device changes along with the system bridge MAC address. As a result, the clock ID may not uniquely identify the PTP device.
By using the ptp virtual-clock-id command, you can specify the clock ID of a PTP device. The specified clock ID does not change in the case of the master-slave switchover, and can therefore uniquely identify the PTP device. The lower four bytes of the virtual clock ID are configurable, whereas the higher four bytes are automatically allocated by the system.