Menu Close
29.2. 启用硬件时间戳
要启用硬件时间戳,请使用 /etc/chrony.conf
文件中的 hwtimestamp
指令。该指令可指定单一接口,也可以指定通配符字符来启用所有支持接口的硬件时间戳。如果没有其它应用程序,如 linuxptp
软件包中的 ptp4l,请使用通配符规格,则在接口中使用硬件时间戳。在 chrony 配置文件中允许使用多个 hwtimestamp
指令。
例 29.2. 使用 hwtimestamp 指令启用硬件时间戳
hwtimestamp eth0 hwtimestamp eth1 hwtimestamp *