Enabling PTP on an Interface
To enable PTP on a specific interface on the device, use the ptp enable command.
Example
switch(config)# interface ethernet 5
switch(config-if-Et5)#ptp enable
To enable PTP on a specific interface on the device, use the ptp enable command.
switch(config)# interface ethernet 5
switch(config-if-Et5)#ptp enable
To set the domain number to use for the clock, use the ptp domain command.
Example
switch(config)# ptp domain 1
switch(config)#
To set the PTP offset hold time, use the ptp hold-ptp-time command.
Example
switch(config)# ptp hold-ptp-time 600
switch(config)#
To set the priority 1 value, use the ptp priority1 command. Lower values take precedence.
switch(config)# ptp priority1 120
switch(config)#
To set the priority 2 value for the clock, use the ptp priority2 command.
This command configures the priority 2 value of 128.
switch(config)# ptp priority2 128
switch(config)#
To set the source IP address for all PTP packets, use the ptp source command.
Example
10.0.2.1
for all PTP
packets.switch(config)# ptp source ip 10.0.2.1
switch(config)#
2001:db8:ac10:fe01::
for
all PTP
packets.switch(config)# ptp source ip 2001:db8:ac10:fe01::
switch(config)#
To set the Time To Live (TTL) of PTP packets, use the ptp ttl command. TTL is the maximum number of hops that a PTP packet may make.
Example
switch(config)# ptp ttl 64
switch(config)#
PTP Monitoring records PTP information, including the offset from the master, mean path delay, and skew values, which you view using a show command. PTP Syslog messages generate the metrics with threshold values configured on the switch when enabled. EOS enables PTP Monitoring by default.
Use the ptp monitor command to enable PTP monitoring on the device. The no form of the command disables PTP monitoring and clears all of the recorded PTP data.
Example
switch(config)# no ptp monitor
The offset is the difference in nanoseconds between master and slave time. Use the ptp monitor threshold offset-from-master command to specify the offset-from-master threshold in nanoseconds. EOS generates a Syslog message if the most recently calculated time offset from the PTP master occurs outside the configured range. The maximum offset threshold is one second. The no form of the command clears the threshold value and prevents further Syslog messages from generating for this parameter.
Example
switch(config)# ptp monitor threshold offset-from-master 500
Mean path delay is the mean time in nanoseconds PTP packets take to travel between master and slave. Use the ptp monitor threshold mean-path-delay command to specify the mean-path-delay threshold in nanoseconds. EOS generates a Syslog message if the value of the most recently calculated mean path delay becomes greater than or equal to this threshold. The maximum mean-path-delay threshold is one second. The no form of the command clears the threshold value and prevents further Syslog messages from generating for this parameter.
Example
switch(config)# ptp monitor threshold mean-path-delay 2000
PTP skew is the clock frequency difference between master and slave. Use the ptp monitor threshold skew command to configure the value of the skew-threshold percentage. A Syslog message generates if the value of the most recently calculated skew does not fall within the range (1/(1+<threshold>), 1*(1+<threshold>)). Skew threshold percentage represents a double precision (16 digit) real number ranging from 0 (0%) to 10 (1000%). The no form of the command clears the threshold value and prevents further Syslog messages from generating for this parameter.
Example
switch(config)# ptp monitor threshold skew 5
To set the interval at which an interface sends PTP announce messages, use the ptp announce interval command. The interval is measured in log seconds. This value also affects the timeout interval.
switch(config)# interface ethernet 5
switch(config-if-Et5)# ptp announce interval 2
switch(config-if-Et5)#
To set the timeout multiplier for an interface, use the ptp announce timeout command. The timeout multiplier is the number of announcement intervals that the interface will wait without receiving a PTP announcement before a timeout occurs; values range from 2 to 255. The default multiplier is 3, which results in a 6-second timeout interval when the announcement interval is set to the default of 2 seconds.
switch(config-if-Et5)# ptp announce timeout 5
switch(config-if-Et5)#
The switch always enables the console and SSH. By default, EOS disables Telnet.
Management commands place the switch in a configuration mode to change session connection parameters.
switch(config)#management console
switch(config-mgmt-console)#
switch(config)#management ssh
switch(config-mgmt-ssh)#
switch(config)#management telnet
switch(config-mgmt-telnet)#
switch(config-mgmt-ssh)#exit
switch(config)#
The idle-timeout commands shown in the following examples configure the idle timeout period for the configured connection type. The idle timeout defines the wait for a connection after a recent command before shutting down the connection. Setting the idle timeout to zero automatically disables the connection timeout, the default setting.
switch(config)# management ssh
switch(config-mgmt-ssh)# idle-timeout 180
switch(config)# management telnet
switch(config-mgmt-telnet)# idle-timeout 0
switch(config)# management telnet
switch(config-mgmt-telnet)# no shutdown
switch(config)# management telnet
switch(config-mgmt-telnet)# shutdown