I have connected 2 Virtual Machines to the same network using NAT network configuration in Oracle VM Virtualbox Manager. They have been successfully connected since I am able to ping between the two systems successfully. I am keeping the Ubuntu Server version 20.04's NIC(enps03) as Master Clock and Ubuntu Desktop version 20.04's NIC(enp0s3) is being kept as the slave clock. I am using software timestamping since both of the NICs of the master and slave clock don't have the hardware support for hardware timestamping. I have verified it using the sudo ethtool enp0s3 command *Master clock Machine* command 1: sudo ptp4l -i enp0s3 -S -m -2 //S indicates software stamping and -2 indicates that it's an ethernet connection to the slave Cock and -m is just a flag to print to the stdout. o/p: ptp4l[1316.449]: port 1 (enp0s3): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[1316.449]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[1316.449]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[1322.645]: port 1 (enp0s3): LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[1322.645]: selected local clock 080027.fffe.14e74e as best master ptp4l[1322.645]: port 1 (enp0s3): assuming the grand master role
*Slave clock Machine* command 1: sudo ptp4l -i enp0s3 -s -S -m -2 //The -s indicates that it's in Slave mode and -S indicates software stamping and -2 indicates that it's an ethernet connection to the Master Cock and -m is just a flag to print to the stdout. o/p: ptp4l[2610.430]: port 1 (enp0s3): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[2610.431]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[2610.431]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[2611.961]: port 1 (enp0s3): new foreign master 080027.fffe.16a902-1 ptp4l[2615.571]: selected best master clock 080027.fffe.16a902 ptp4l[2615.571]: foreign master not using PTP timescale ptp4l[2615.571]: port 1 (enp0s3): LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[2617.543]: master offset -1336406784 s0 freq +100000000 path delay 9136824 ptp4l[2618.445]: master offset -1435107865 s0 freq +100000000 path delay 9136824 ptp4l[2619.347]: master offset -1536163573 s0 freq +100000000 path delay 11359361 ptp4l[2620.248]: master offset -1637461053 s0 freq +100000000 path delay 13581898 ptp4l[2621.150]: master offset -1739763258 s0 freq +100000000 path delay 16676408 ptp4l[2622.052]: master offset -1841913210 s0 freq +100000000 path delay 19770918 ptp4l[2622.953]: master offset -1939701819 s0 freq +100000000 path delay 18091526 ptp4l[2623.854]: master offset -2040732847 s0 freq +100000000 path delay 19770918 ptp4l[2624.755]: master offset -2140219703 s0 freq +100000000 path delay 19770918 ptp4l[2625.656]: master offset -2249812766 s0 freq +100000000 path delay 29845788 ptp4l[2626.556]: master offset -2354025633 s0 freq +100000000 path delay 34422608 ptp4l[2627.458]: master offset 1089417581 s0 freq +100000000 path delay 34422608 ptp4l[2628.358]: master offset 983646229 s0 freq +100000000 path delay 40131204 ptp4l[2629.258]: master offset 883600699 s0 freq +100000000 path delay 40131204 ptp4l[2630.159]: master offset 781650539 s1 freq +100000000 path delay 41953396 ptp4l[2631.059]: master offset 1001144586 s2 freq +100000000 path delay 41953396 ptp4l[2631.059]: port 1 (enp0s3): UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED ptp4l[2631.960]: master offset 901199019 s2 freq +100000000 path delay 41953396 ptp4l[2632.860]: master offset 801273933 s2 freq +100000000 path delay 41953396 ptp4l[2633.760]: master offset 701120134 s2 freq +100000000 path delay 41953396 ptp4l[2634.661]: master offset 601271015 s2 freq +100000000 path delay 41953396 ptp4l[2635.561]: master offset 501030593 s2 freq +100000000 path delay 41953396 ptp4l[2636.461]: master offset 400982211 s2 freq +100000000 path delay 41953396 ptp4l[2637.361]: master offset 307638455 s2 freq +100000000 path delay 35165264 ptp4l[2638.262]: master offset 208167823 s2 freq +100000000 path delay 34979608 ptp4l[2639.162]: master offset 108025276 s2 freq +100000000 path delay 34979608 ptp4l[2640.062]: master offset 7786206 s2 freq +100000000 path delay 34979608 ptp4l[2640.963]: master offset -92157209 s2 freq +90692122 path delay 34979608 ptp4l[2641.873]: master offset -182151693 s2 freq +81510522 path delay 34070857 ptp4l[2642.792]: master offset -263568895 s2 freq +73105233 path delay 34070857 ptp4l[2643.719]: master offset -319885252 s2 freq +67153712 path delay 17187173 ptp4l[2644.653]: master offset -387040019 s2 freq +60051195 path delay 17187173 ptp4l[2645.593]: master offset -447155865 s2 freq +53592455 path delay 17187173 ptp4l[2646.540]: master offset -500722378 s2 freq +47735081 path delay 17187173 ptp4l[2647.493]: master offset -546225604 s2 freq +42638533 path delay 14879037 ptp4l[2648.451]: master offset -588354290 s2 freq +37837310 path delay 14410176 ptp4l[2649.413]: master offset -623773080 s2 freq +33671658 path delay 11976855 ptp4l[2650.380]: master offset -657445210 s2 freq +29647000 path delay 11976855 ptp4l[2651.351]: master offset -685015214 s2 freq +26204984 path delay 9862502 ptp4l[2652.325]: master offset -711209740 s2 freq +22874322 path delay 9862502 ptp4l[2653.302]: master offset -734038508 s2 freq +19857406 path delay 9862502 ptp4l[2654.283]: master offset -754001943 s2 freq +17107061 path delay 9862502 ptp4l[2655.266]: master offset -771101656 s2 freq +14625988 path delay 9862502 ptp4l[2656.252]: master offset -785685785 s2 freq +12381889 path delay 9862502 ptp4l[2657.240]: master offset -793998815 s2 freq +10756587 path delay 5749248 ptp4l[2658.229]: master offset -802024643 s2 freq +9151980 path delay 2972711 ptp4l[2659.221]: master offset -811083661 s2 freq +7434994 path delay 2972711 ptp4l[2660.214]: master offset -818666013 s2 freq +5858093 path delay 2972711 ptp4l[2661.208]: master offset -824391249 s2 freq +4461178 path delay 2972711 ptp4l[2662.204]: master offset -828239236 s2 freq +3248140 path delay 2335753 ptp4l[2663.201]: clockcheck: clock jumped forward or running faster than expected! ptp4l[2663.202]: master offset 1135850478 s0 freq +3248140 path delay 1830496 ptp4l[2663.202]: port 1 (enp0s3): SLAVE to UNCALIBRATED on SYNCHRONIZATION_FAULT ptp4l[2664.199]: master offset 1132562412 s0 freq +3248140 path delay 1830496 ptp4l[2665.196]: master offset 1129779992 s0 freq +3248140 path delay 1400082 ptp4l[2666.193]: master offset 1126929303 s0 freq +3248140 path delay 981871 ptp4l[2667.190]: master offset 1123607575 s0 freq +3248140 path delay 926204 ptp4l[2668.187]: master offset 1120230609 s0 freq +3248140 path delay 1146053 ptp4l[2669.184]: master offset 1116963645 s0 freq +3248140 path delay 1146053 ptp4l[2670.181]: master offset 1113914195 s0 freq +3248140 path delay 923273 ptp4l[2671.179]: master offset 1110943924 s0 freq +3248140 path delay 715678 ptp4l[2672.176]: master offset 1107468536 s0 freq +3248140 path delay 923273 Note:*I am getting very high offset ,and it's not geting synchronized,also since its software timestamping,system clock should be updated,but it is not getting update,please help,*
_______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users