如何配置ntp server和client

如何配置ntp server和client,第1张

域内时间服务器的时间同步,是遵循这样一个规则: client->child domain PDCe->parent domain PDCe->root PDCe->Internal Time Source->Internet Time Source
层层向上,自动同步,这就是为什么您即便修改了域内工作站的时间,重新启动又会恢复域内时间。
所以,一个标准的、稳定的时间源对于整个AD架构是非常重要的。需要提到的一点是,时间服务使用 udp 123--- gnaw0725
据我所知,net time命令只能使计算机的时钟与其他计算机或域的时钟同步。
我们建议您将权威时间服务器配置为从硬件源收集时间。当您将权威时间服务器配置为与 Internet 时间源同步时,不会有任何身份验证。我们还建议您降低服务器和独立客户端的时间校准设置。这可以为您的域提供更准确的时间和更高的安全性。
Windows 包含 W32Time,它是 Kerberos 身份验证协议所需的时间服务工具。Windows 时间服务的目的是确保组织中运行 Microsoft Windows 2000 或更高版本的所有计算机都使用同一个时间。
配置 Windows 时间服务以使用外部时间源的具体步骤,请参考以下文章:
如何在 Windows Server 2003 中配置权威时间服务器

1、安装ntp软件
sudo apt-get install ntp
2、修改配置文件
sudo vim /etc/ntpconf
driftfile /var/lib/ntp/ntpdrift
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
server ntpubuntucom
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 192168100 mask 2552552550 nomodify
restrict 127001
restrict ::1
主要是在配置文件中的:
restrict -6 default kod notrap nomodify nopeer noquery
语句后面加入:
restrict 192168100 mask 2552552550 nomodify
restrict 192168100 mask 2552552550 nomodify---主要是允许能同步的服务器所在的内部网段

本文提供了在ESX/ESXi主机上使用vSphere Client启用网络时间协议(NTP)的步骤。

百度经验:jingyanbaiducom

 

使用vSphere Client 连接到ESX/ESXi主机

 

在清单中选择主机

 

点击configuration(配置)标签

 

点击时间配置

 

点击Properties(属性)

 

点击Properties(属性)

 

点击NTP Settings(NTP设置)

 

点击Add(添加)

 

输入NTP服务器名字。例如,ntppoolorg

 

点击Ok

 

点击General标签

 

在启动策略里点击Start automatically(自动启动)

 

点击Start,并点击OK

 

点击OK退出‍


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zz/10904183.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-12
下一篇 2023-05-12

发表评论

登录后才能评论

评论列表(0条)

保存