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

问题描述 投票:0回答:1

我有一个嵌入式设备,它花费时间的格式为:

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服务器格式吗?

embedded ntp
1个回答
0
投票

您当前的列表是服务器池-每个都引用一个NTP服务器。例如,如果您对每个人执行ping操作,例如:

> 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地址放在当前定义池的位置。

© www.soinside.com 2019 - 2024. All rights reserved.