The clock source command sets the clock source selection mode to manual or forcible and specifies the master clock source.
By default, the automatic clock source selection mode is used.
clock { manual | force } source { ptp slot slot-id | interface interface-type interface-number }
Parameter | Description | Value |
---|---|---|
manual | Indicates that the manual clock source selection mode is used. | - |
force | Indicates that the forcible clock source selection mode is used. | - |
ptp | Indicates that an PTP clock source is used as the clock source. | - |
interface interface-type interface-number | Specifies the input interface of the clock source.
|
- |
slot slot-id | Specifies the slot ID of the master clock source. | The value range depends on the device configuration. |
To configure the clock source selection mode as manual or forcible, run the clock source command. In manual clock source selection mode, a clock source can be switched to a clock source with a higher SSM quality level, regardless of the clock source priority. In forcible clock source selection mode, a clock can be selected regardless of the SSM quality level and priority.
PrecautionsIf a clock source in manual clock source selection mode does not meet conditions, the clock source automatically switches to the automatic clock source selection mode. If a clock source in forcible clock source selection mode does not meet conditions, for example, the clock source is abnormal, the clock source automatically switches to the hold mode. After the clock source is restored, it is automatically selected again.
A manually selected clock source is used temporarily and no configuration file is generated. To permanently use a clock source, use the forcible clock source selection mode.
The latest configuration of manual clock source selection overrides the previous configuration of manual clock source selection but not forcible clock source selection. The latest configuration of forcible clock source selection overrides the previous configuration of manual or forcible clock source selection.