cisco Catalyst 9300 — Configuration Examples for Precision Time Protocol

Procedure Configuration Examples for Precision Time Protocol The following sections provide PTP configuration examples. Configuring Precision Time Protocol (PTP) Configuration Examples for Precision Time Protocol Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password, if prompted. Step 2 configure terminal Example: Device configure terminal Enters global configuration mode. Step 3 ptp profile 8275.1 clock-mode{boundary|transparent} Example: Device(config)# ptp profile 8275.1 clock-mode boundary Configures the clock mode for the device. • boundary mode sets the device to boundary clock mode.

• transparent mode sets the device to transparent clock mode. Step 4 interface range interface-range Example: Device(config)# interface range GigabitEthernet1/0/1-GigabitEthernet1/0/2 Specifies the range of interfaces to be configured, and enters interface-range configuration mode. Step 5 exit Example: Device(config-if-range)# exit Exits interface-range configuration mode and enters global configuration mode. Step 6 ptp ip dscp value message general Example: Device(config)# ptp ip dscp 46 message general Configures IP DSCP value for PTP general messages. The range is from 0 to 63. Step 7 ptp ip dscp value message event Example:

Device(config)# ptp ip dscp 46 message event Configures IP DSCP value for PTP event messages. The range is from 0 to 63. Step 8 end Example: Device(config)# end Returns to privileged EXEC mode. Configuring Precision Time Protocol (PTP) 24