Support new commands for Precision Time Protocol configuration 7.4.1
The CLI commands for configuring Precision Time Protocol (PTP) transparent-clock mode have changed. FortiOS supports the previous CLI commands, as well as the new ones.
Use the following steps to configure PTP transparent-clock mode:
-
Configure a PTP profile or use the
default
profile. - Configure the PTP settings.
By default, PTP is disabled. Enable PTP and select which PTP profile will use these PTP settings. The default profile is automatically selected. - Configure the default PTP policy or create a custom PTP policy.
Select which VLAN will use the PTP policy and the priority of the VLAN. The default PTP policy is applied to all ports. If you want to select which ports to apply the PTP policy to, you need to create a custom PTP policy. - If you are not using the default PTP policy, select which port to apply your custom PTP policy to.
By default, the PTP status is enabled.
To configure a PTP profile:
config switch-controller ptp profile
edit {default | name_of_PTP_profile}
set description <description_of_PTP_profile>
set mode {transparent-e2e | transparent-p2p}
set ptp-profile C37.238-2017
set transport l2-mcast
set domain <0-255> // the default is 254
set pdelay-req-interval {1sec | 2sec | 4sec | 8sec | 16sec | 32sec} // 1sec default
next
end
For example:
config system ptp profile
edit newPTPprofile
set description "New PTP profile"
set mode transparent-p2p
set ptp-profile C37.238-2017
set transport l2-mcast
set domain 1
set pdelay-req-interval 2sec
next
end
To configure the PTP settings:
config switch-controller managed-switch
edit <FortiSwitch_serial_number>
set ptp-status {enable | disable} // the default is disable
set ptp-profile {default | name_of_PTP_profile} // the default is "default"
next
end
For example:
config switch-controller managed-switch
edit S524DF4K15000024
set ptp-status enable
set ptp-profile newPTPprofile
next
end
To configure the default PTP policy or create a custom PTP policy:
config switch-controller ptp interface-policy
edit {default | <policy_name>}
set description <description_of_PTP_policy>
set vlan <VLAN_name> //no default
set vlan-pri <0-7> // the default is 4
next
end
For example:
config switch-controller ptp interface-policy
edit ptppolicy1
set description "New custom PTP policy"
set vlan vlan10
set vlan-pri 3
next
end
To apply your custom PTP policy to a port:
config switch-controller managed-switch
edit <FortiSwitch_serial_number>
config ports
edit <port_name>
set ptp-status {enable | disable} // the default is enable
set ptp-policy {default | <policy_name>} // the default is "default"
end
end
For example:
config switch-controller managed-switch
edit S524DF4K15000024
config ports
edit port5
set ptp-status enable
set ptp-policy ptppolicy1
end
end