Clock Synchronization Configuration
Clock Synchronization configuration involves global and interface-level settings.
Global Configuration
These commands configure the global clock Synchronization settings for the system.
Syntax:
set system ptp clock <options>>
Attribute Description:
Attribute | Description |
---|---|
clock g8275.1 |
Enables ITU-T G.8275.1 clock profile for PTP. |
clock g8275.1 mode slave |
Configures the PTP clock to operate in slave mode. |
The example below shows the configuration for enabling PTP (Precision Time Protocol) in slave mode using the g8275.1
profile.
set system ptp clock g8275.1 set system ptp clock g8275.1 mode slave
supervisor@rtbrick.net: cfg> show config system ptp { "rtbrick-config:ptp": { "clock": [ { "profile": "g8275.1", "mode": "slave" } ] } }
Interface-level Configuration
These commands enable and configure PTP on specific network interfaces.
Syntax:
set interface <interface-name> ptp enable true
Attribute | Description |
---|---|
<interface-name> |
Name of the network interface. |
enable true |
Enables (true) clock synchronization for the specified interface |
After the clock module is enabled and the clock is configured on the device, you can enable PTP on the network interface.
The following configuration enables PTP on the network interface named "ifp-0/1/66".
set interface ifp-0/1/66 set interface ifp-0/1/66 ptp enable true
supervisor@rtbrick.net: cfg> show config interface ifp-0/1/66 { "rtbrick-config:interface": [ { "name": "ifp-0/1/66", "ptp": { "enable": "true" } } ] }