linux 启动程序-p,Linux应用程序开发笔记:配置linuxptp开机启动(ubuntu gPTP)

sudo vim /usr/share/doc/linuxptp/README.Debian

1. Default configuration

The default configuration can be found in /etc/linuxptp/ptp4l.conf.

This is the default.cfg provided by the upstream source.

2. Systemd services

The service ptp4l invokes ptp4l on eth0 by default. To adjust the

parameters, follow these steps:

1. create a directory /etc/systemd/system/ptp4l.service.d

2. place a file with its name ending in .conf there

3. put these lines into the file, with the parameters adjusted to your needs:

[Service]

ExecStart=

ExecStart=/usr/sbin/ptp4l -f /etc/linuxptp/ptp4l.conf -i eth0

参考示例:

/home/amine/linuxptp/gPTP.cfg

#

# 802.1AS example configuration containing those attributes which

# differ from the defaults.  See the file, default.cfg, for the

# complete list of available options.

#

[global]

gmCapable        1

priority1        248

priority2        248

logAnnounceInterval    0

logSyncInterval        -3

syncReceiptTimeout    3

neighborPropDelayThresh    80000

min_neighbor_prop_delay    -20000000

assume_two_step        1

path_trace_enabled    1

follow_up_info        1

transportSpecific    0x1

ptp_dst_mac        01:1B:19:00:00:00

p2p_dst_mac        01:1B:19:00:00:00

network_transport    L2

delay_mechanism        P2P

/etc/systemd/system/ptp4l.service.d/gPTP.conf

[Service]

ExecStart=

ExecStart=/usr/sbin/ptp4l -2 -f /home/amine/linuxptp/gPTP.cfg -i eth0.10 -i eth0.20 -i eth0.30 -i eth0.40 -i eth0.50 -i eth0.60 -i eth0.70 -i eth0.80 eth0.90 -i eth0.100 -i eth0.110 -i eth0.120 -i eth0.130 -i eth0.140 -i eth0.150 -i eth0.160 -i eth0.170 -i eth0.180 -q -l 6 -S

特殊说明:

我配置的VLAN网卡比较多,导致ptp4l.service启动错误,我修改了

/lib/systemd/system/ptp4l.service

的 [Unit] 增加

After=network.target

[Unit]

Description=Precision Time Protocol (PTP) service

Documentation=man:ptp4l

After=network.target

原创:https://www.panoramacn.com

源码网提供WordPress源码,帝国CMS源码discuz源码,微信小程序,小说源码,杰奇源码,thinkphp源码,ecshop模板源码,微擎模板源码,dede源码,织梦源码等。

专业搭建小说网站,小说程序,杰奇系列,微信小说系列,app系列小说

4fd62447d215cc77f1d98d9c2aeb244b.png

免责声明,若由于商用引起版权纠纷,一切责任均由使用者承担。

您必须遵守我们的协议,如果您下载了该资源行为将被视为对《免责声明》全部内容的认可->

联系客服

投诉资源

www.panoramacn.com资源全部来自互联网收集,仅供用于学习和交流,请勿用于商业用途。如有侵权、不妥之处,请联系站长并出示版权证明以便删除。

敬请谅解! 侵权删帖/违法举报/投稿等事物联系邮箱:2640602276@qq.com

关注我们小说电影免费看

关注我们,获取更多的全网素材资源,有趣有料!

120000+人已关注

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值