[Linuxptp-users] Should Linux PTP syn the clock used by date between PCs?
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Gil G. <Gil...@ha...> - 2015-11-11 07:30:24
|
Hi, If 2 PCs on the same Lan are running Linux PTP, should the clock that is used by "date" be the same after a while? Here is my use case: * I am using 2 Linux CentOs7 PCs. * I have used the date -s @[some value] to make sure they have an offset of few seconds between them. * I am running ptp4l -I eth0 on both of my PCs. * I can see that PC 1 becomes slave, and PC 2 become master using WireShark. * I have disabled NTP on both PCs by stopping the chronyd service (to make sure NTP will not sync my PCs clock). * I am running "while true; do date +%s; sleep 1; done" on both machines to see the time continuously. * I don't see the time being sync between them. * When NTP is enabled, I do see the time being sync between them. Please let me know what I am missing here. Thanks, Gil. |