Edit the Execution Start command for PTP4L service.
The PTP4L configuration can be started as a service
. However, the initial execution commands may not correspond to your setup. The execution command can be verified in the ExecStart field in the following command :
$ systemctl cat ptp4l
ExecStart=/usr/sbin/ptp4l -f /etc/linuxptp/ptp4l.conf -i eth0
To override this, do :
sudo systemctl edit ptp4l
and add
[Service]
ExecStart=
ExecStart=/usr/sbin/ptp4l -f /etc/linuxptp/ptp4l.conf
The systemctl cat ptp4l
command should now also show the overridden command.
You can now edit /etc/linuxptp/ptp4l.conf
, which is the configuration file for PTP4L. For documentation on the file settings, please refer to PTP4L Manual Page.
In this file, change the slaveOnly
parameter to 1
for the slave ORS and keep it at 0
for the master ORS.
At the end of the file add your network interface name in bracket, e.g.
[enp2s0]