yinian 发表于 2018-7-13 14:32:49

CISCO NTP配置

  NTP协议全称网络时间协议(Network Time Procotol)。它的目的是在国际互联网上传递统一、标准的时间。具体的实现方案是在网络上指定若干时钟源网站,为用户提供授时服务,并且这些网站间应该能够相互比对,提高准确度。
  * 服务器:
  clcok timezone GMT +8      首先设定时区
  clock set 00:00:00 1 Jan 2012    设定正确的时间
  ntp autentication-key 1 md5 ***   使用http://blog.51cto.com/e/u/themes/default/images/spacer.gifMD5验证
  ntp authenticate          NTP认证
  ntp trusted-key 1          信任key 1
  ntp master             本机作为NTP协议的主时钟
  * 客户端:
  clcok timezone GMT +8      设定相同时区
  ntp authentication-key 1 md5 ***
  ntp authenticate
  ntp trusted-key 1
  ntp server 192.168.1.254       NTP服务器地址
  clock set hh:mm:ss dd mm yyyy设置时间
  show clock         查看时间
  show ntp status         查看ntp同步状态
页: [1]
查看完整版本: CISCO NTP配置