Configuring PTP Globally
Context
Procedure
- Run system-view
The system view is displayed.
- Run ptp enable
PTP is enabled.
By default, PTP is disabled. - (Optional) Run ptp freq-sync
Frequency synchronization is enabled.
By default, time synchronization is enabled and frequency synchronization is disabled after PTP is enabled. - Run ptp device-type tcandbc
The device type is configured as TCandBC.
By default, no device type is configured for a PTP device. - Run ptp domain domain-value
The domain to which the BC interface of the TCandBC belongs is configured.
By default, a PTP device belongs to domain 0.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 set for the device.
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 also configure a virtual clock ID to identify the device.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.