设为首页 收藏本站
查看: 482|回复: 0

How To Configure NTP On Windows 2008 R2 (zt)

[复制链接]

尚未签到

发表于 2015-4-30 11:42:37 | 显示全部楼层 |阅读模式
  http://public.madeinengland.co.nz/how-to-configure-ntp-on-windows-2008-r2/
  NTP stands for Network Time Protocol. It's used to synchronize the time between computers. The following article tells you how to configure NTP on Windows 2008 R2. Typically, you're going to want to make your Windows 2008 R2 domain controller the NTP server and have all the clients use it to get their time. Be careful that if your servers are virtualized, they will be getting their time forced upon them by the hypervisor, so that will need to be stopped.
  Stop Guests From Getting Time From The Hypervisor
    There are two ways to do this, you can change the settings on the VM so that the guest doesn't get the time from the hypervisor or you can do my preferred way which is to configure the hypervisor to use Windows 2008 R2 as the NTP server. I prefer to do this rather than updating the guests because:
  
       
  • It provides an extra layer of protection if NTP settings are not working, which helps computers have the same time configuration.   
  • If new VM guests are added and the setting is not updated, there's no chance of the hypervisor fighting the NTP server to apply it's time to the guest.
  How To Clear NTP Configuration
    The next thing to do is to clear up any previous attempts to configure NTP using these commands on your soon-to-be Windows 2008 R2 NTP server:
  net stop w32time   
w32tm /unregister   
w32tm /register
  Once your NTP configuration has been cleared up, you can then configure your Windows 2008 R2 server to be an NTP server.
  Configuring Windows 2008 R2 as an NTP Server
    You're probably going to want to configure your domain controller to be the NTP server. Why? Because Kerberos requires authenticating clients to have the same time as the authenticating domain controller, so it makes sense to have the domain controller as the NTP server so it is in control over what the correct time is. To configure Windows 2008 R2 as an NTP server, run these commands:
  w32tm /config /manualpeerlist:pool.ntp.org,0×8 /syncfromflags:MANUAL   
net stop w32time   
net start w32time
  The first command configures the server as an NTP client to pool.ntp.org, sending the request in client mode. If you don't want to connect as client mode, here are the alternative settings:
  0×01 – use special poll interval SpecialInterval   
0×02 – UseAsFallbackOnly   
0×04 – send request as SymmetricActive mode   
0×08 – send request as Client mode
  I usually like to set any redundant domain controllers up in the same way, but pointing to the primary domain controller as the NTP server instead of pool.ntp.org.
  pool.ntp.org is a round-robin group of NTP servers, but if you want to set your own pool up you can do this either in DNS or preferably by putting the manualpeerlist in quotes and seperating muliple NTP server addresses with a space like this:
  w32tm /config /manualpeerlist:"ntp1 ntp2",0×8 /syncfromflags:MANUAL
  Finally, ensure that NTP protocol is allowed on your firewall. NTP uses port 123.
  Troubleshooting NTP
    You can confirm that NTP is working correctly by performing a manual sync with this command:
  w32tm /resync
  or determine the time of the last sync with this command:
  w32tm /query /status
  Finally, if you are still having trouble with NTP, you can enable debug logs with this command:
  w32tm /debug /enable /file:C:\w32tmdebug.log /size:10485760 /entries:0-300
  But don't forget to disable logging when you've finished troubleshooting NTP. You can disable NTP logging with this command:
  w32tm /debug /disable
  Finally, if it's still not working, you can start again and clear the NTP configuration with this command:
  net stop w32time   
w32tm /unregister   
w32tm /register

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-62244-1-1.html 上篇帖子: Windows 2008 R2有效激活方法【转】 下篇帖子: windows server 2008 站点系列
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表