NTP协议全称网络时间协议(Network Time Procotol)。它的目的是在国际互联网上传递统一、标准的时间。具体的实现方案是在网络上指定若干时钟源网站,为用户提供授时服务,并且这些网站间应该能够相互比对,提高准确度。

  *服务器:

  conf t

  ntp autentication-key 1 md5 cxzhzx 7 NTP认证

  ntp authenticate NTP认证

  ntp trusted-key 1 NTP认证

  ntp source vlan1 设置ntp时钟原的端口或IP地址

  ntp update-calendar 允许NTP定期更新calendar

  ntp master 2 允许本机作为NTP协议的主时钟,精度级别2,供其它对等体同步用

  ntp server 202.112.7.150 在网络上指定若干时钟源网站

  End

  * 客户端:

  conf t

  ntp authentication-key 1 md5 cxzhzx 7

  ntp authenticate

  ntp trusted-key 1

  ntp source vlan1

  ntp server 10.1.47.100

  end