应用于嵌入式设备时的 NTP 服务器语法

NTP server syntax when applying to embedded devices

我有一个嵌入式设备,其时间格式如下:

0.europe.pool.ntp.org
1.europe.pool.ntp.org
2.europe.pool.ntp.org
3.europe.pool.ntp.org

我向客户询问了他们那边的 NTP 服务器,因为解决方案是现场的,他们只给了我 NTP 服务器作为 IP,因为我在嵌入式设备上有 4 个字段和时区,什么是更改此 IP 以适应上述 NTP 服务器格式的做法?

您当前的列表是一个 服务器池 - 每个都指一个 NTP 服务器。例如,如果您 p​​ing 每个:

> ping 3.europe.pool.ntp.org
Pinging 3.europe.pool.ntp.org [185.51.192.34] with 32 bytes of data:
Reply from 185.51.192.34: bytes=32 time=11ms TTL=57
...

>ping 0.europe.pool.ntp.org

Pinging 0.europe.pool.ntp.org [91.121.7.182] with 32 bytes of data:
Reply from 91.121.7.182: bytes=32 time=15ms TTL=55
...

或者执行 DNS 查找,您将看到每个解析到不同的 IP 地址。您的本地服务器可能没有什么不同,只是您有一个服务器池。您可以简单地将单个 IP 地址放在当前定义池的位置。