Precision Time Protocol daemon

From Federal Burro of Information
Revision as of 03:58, 5 November 2012 by David (talk | contribs)
Jump to navigationJump to search

dl and compile

cd /root/ptp
wget "http://downloads.sourceforge.net/project/ptpd/ptpd/2.2.0/ptpd-2.2.0.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fptpd%2Ffiles%2F&ts=1352085166&use_mirror=tenet"
mv ptpd-2.2.0.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fptpd%2Ffiles%2F&ts=1352085166&use_mirror=tenet ptpd-2.2.0.tar.gz
tar zxvf ptpd-2.2.0.tar.gz
cd ptpd-2.2.0
cd src
make


Slave setup susan

./ptpd2 -g -b eth3 -C


Master setup , Athena

./ptpd2 -G -b eth0 -C

start up:

10:41:26 athena@athena ~/ptp/ptpd-2.2.0/src #  ./ptpd2 -x -G -b eth0 -C
   (ptpd info)     22:41:32.590792  (___)    Info:    Going to check lock /var/run/kernel_clock
   (ptpd info)     22:41:32.608530  (___)    Info:    No ptpd daemons detected in parallel (as expected)
   (ptpd info)     22:41:32.625876  (___)    Info:    1 ntpd daemons detected in parallel (as expected)
   (ptpd info)     22:41:32.625946  (___)    Info:    Going to check lock /var/run/kernel_clock
   (ptpd info)     22:41:32.626125  (___)    Info:    Startup finished sucessfully
# Timestamp, State, Clock ID, One Way Delay, Offset From Master, Slave to Master, Master to Slave, Drift, Last packet Received
2012-11-04 22:41:32.626205, init
   (ptpd info)     22:41:32.690552  (init)  refreshed IGMP multicast memberships
   (ptpd info)     22:41:32.691279  (init)    now in state PTP_LISTENING
2012-11-04 22:41:32.691834, lstn_init 1
   (ptpd info)     22:41:44.627144  (lstn_init)    now in state PTP_MASTER
2012-11-04 22:41:44.627198, mst 001cc0fffe5d6c1a(unknown)/00

See Also