/system/ntp/server
server
NTP server settings. The server answers time queries from NTP clients on the network; it serves the time the router itself is synchronized to. See the NTP guide.
system/ntp/server
Type: Settings Directory
NTP 服务器设置。服务器应答网络上 NTP 客户端的时间查询;它提供路由器自身同步到的时间。请参阅 NTP 指南。
| 参数 | 类型 | 描述 |
|---|---|---|
enabled | bool | 启用 NTP 服务器。默认值:no。 |
broadcast | bool | 定期将时间发送到 broadcast-addresses 中的地址。默认值:no。 |
multicast | bool | 以多播方式将时间分发到本地网络。默认值:no。 |
manycast | bool | 参与 manycast 发现,客户端通过多播查询查找服务器。默认值:no。 |
broadcast-addresses | multi { broadcast-address: ipAddr } | 启用 broadcast 时要发送时间的广播地址。 |
vrf | enum | 服务器运行的 VRF。默认值:main。 |
use-local-clock | bool | 在没有更好的时间源时,使用路由器的本地时钟作为时间参考;此时守护进程会以 local-clock-stratum 提供并跟随自己的时钟。客户端的 status 在此状态下显示 using-local-clock。没有外部同步的路由器时钟会发生漂移,因此请勿将其用于精确计时。默认值:no。 |
local-clock-stratum | num | 启用 use-local-clock 时,为本地时钟通告的层级。默认值:5。 |
auth-key | enum (none) { none:0 } | 用于时间交换对称密钥认证的 /system/ntp/key 密钥。默认值:none(不认证)。 |