Configuring PTP Globally
Context
Procedure
- Run system-view
The system view is displayed.
- Run ptp enable
PTP is enabled globally.
By default, PTP is not enabled globally.
- Run ptp device-type oc
The device type is configured as OC.
By default, no device type is configured for a PTP device.
- (Optional) Run ptp slaveonly
The OC is configured to work in slave-only mode.
By default, an OC port can be a master or slave port. When a device functions as an OC to synchronize with other clocks, configure the device to work in slave-only mode. After the device is configured to work in slave-only mode, ports of the device are in slave state. This indicates that the device can only function as a slave clock to receive clock signals from other clocks but cannot function as a master clock to provide clock signals for other clocks.
- (Optional) Run ptp domain domain-value
The PTP domain to which the device belongs is configured.
By default, a PTP device belongs to domain 0.
NOTE:
Devices that perform clock synchronization through PTP messages must belong to the same PTP domain. - (Optional) Run ptp virtual-clock-id clock-id-value
A virtual clock ID is configured for the device.
Each device in a PTP domain has a virtual clock ID. By default, no virtual clock ID is configured for a PTP device, and the system generates a clock ID based on the MAC address of the device. You can configure a virtual clock ID to identify the device.
NOTE:
When running the ptp virtual-clock-id command, ensure that the configured virtual clock ID is unique in the entire PTP domain.
- (Optional) Run ptp acl enable
Access control of the clock source is enabled.
By default, access control of the clock source is disabled.
- (Optional) Run ptp acl-permit-clockid clockid-value
A specified master clock source is added to the clock source whitelist.
By default, no clock source whitelist is configured.