Configure NTP to PTP time conversion to enable the switch to use Network Time Protocol as a time source for Precision Time Protocol synchronization.
This task configures NTP to PTP time conversion to enable the switch to use Network Time Protocol as a time source for Precision Time Protocol synchronization.
Beginning with the Cisco IOS XE Dublin 17.12.x release, Cisco Catalyst IE3100 Rugged Series Switches are supported for NTP to PTP time conversion.
Before you begin
-
Review the PTP configuration and mode limitations.
-
To use the NTP to PTP conversion feature, the switch must have an IP address for NTP to function.
-
To use the NTP to PTP conversion feature, configure at least one NTP server. If you configure three or more NTP servers, NTP can ignore inaccurate clocks.
For information about configuring NTP, see Network Time Protocol
-
When you enter no with PTP port configuration commands, the specified port property is set to the default value.
-
To determine the value in seconds for the PTP global command interval variable, use a logarithmic scale. These examples show the interval variable value converted to seconds using a logarithmic scale:
| Value Entered |
Logarithmic Calculation |
Value in Seconds |
|---|---|---|
| -1 |
2 -1 |
1/2 |
| 0 |
2 0 |
1 |
Follow these steps to configure NTP to PTP time conversion:
Procedure
| 1. | Use the configure terminal command to enter global configuration mode. Example:
|
|
| 2. | Use the ptp profile power command to configure Power Profile mode. Example:
|
|
| 3. | Use the ptp mode gmc-bc delay-req command to specify GMC-BC as the synchronization clock. Example:
The GMC-BC automatically selects NTP as the time source if it is available. |
|
| 4. | (Optional) Use the ptp priority1 priority priority2 priority command to specify the BMCA priority. Example:
|
|
| 5. | (Optional) Use the ptp transfer {feedforward | filter {adaptive | linear}} command to specify the BC synchronization algorithm. Example:
|
|
| 6. | Use the interface interface-id command to enter interface configuration mode. Example:
|
|
| 7. | (Optional) Use the ptp command to specify port settings. Example:
ptp {announce {interval value | timeout value } | delay-req interval value | enable | sync {interval value | limit value } | vlan value }
|
|
| 8. | Use the end command to return to privileged EXEC mode. Example:
|
The switch is configured with NTP to PTP time conversion. The system can now use NTP as a time source for PTP synchronization when operating as a Grandmaster Clock with Boundary Clock functionality.
The example configuration shows the switch using the Default Profile, acting as Grandmaster Clock with NTP as the time source, and using the feedforward BC synchronization algorithm:
Device(config)# ptp mode gmc-bc delay-req
Device(config)# ptp transfer feedforward