Thanks for clarification. I have now the follow up question. I want to sync two machines. One is VM - Ubuntu on OpenStack (master)
vm:~$ sudo ptp4l -i eth0 -S -m ptp4l[406888.738]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[406888.739]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[406896.225]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[406896.225]: selected best master clock fa163e.fffe.fdf714 ptp4l[406896.225]: assuming the grand master role and as said before this is the right configuration. On the other machine (slave) Ubuntu on Virtual Box. VirtualBox:~$ sudo ptp4l -i enp0s3 -S -s -m ptp4l[500.357]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[500.361]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[500.361]: port 1: link up ptp4l[508.231]: selected best master clock 080027.fffe.8c7a6b ptp4l[514.256]: selected best master clock 080027.fffe.8c7a6b ptp4l[522.074]: selected best master clock 080027.fffe.8c7a6b ptp4l[529.695]: selected best master clock 080027.fffe.8c7a6b and here I am not sure if this configuration is right, bacasue it differs from most outputs that I have already seen. Thanks. Tom sob., 20 lip 2019 o 05:16 Richard Cochran <richardcoch...@gmail.com> napisaĆ(a): > On Fri, Jul 19, 2019 at 08:46:03AM +0200, Tomek Koziak wrote: > > In the link I put in my first post, it is said that "The master/slave > port > > roles will be selected automatically using the protocol". So I assume > that > > the configuration went properly. The thing I don't understand is that > > why "assuming > > the grand master role" is it printed more that once? Is it because both > > interfaces have chosen the same master clock (fa163e.fffe.fdf714) and > they > > are both synchronized to it? > > No, it is because both ports have taken on the role of Grand Master. > They are not synchronized to any external clock at all. Instead, they > are serving time from your local system clock. > > HTH, > Richard >
_______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users