【1】NTP—网络时间协议
r1#show clock
*11:46:11.423 UTC Sun Dec 23 2018
r1#clock set 12:00:00 1 aug 2017 修改时钟
//ntp服务器的时钟为最准确时钟
r1(config)#ntp master
//本地成为ntp服务器,将本地时间共享给别人
r2(config)#ntp server 12.1.1.1 //与12.1.1.1同步时间
r2#show ntp status
Clock is_ synchronized, stratum 9, Ir eference is 12.1.1.1
nomina1 freg is. 250. 0000 HZ, actual freq is 250. 0000 HZ,precision is 2**18
reference time is EOED5301. 031BE1BE (12:01:05.012 UTC Thu Aug 1 2019)
clock offset is -8.0376 mseC, root delay is_ 8.09 msec
root dispersion is 12. 50 mseC,peer dispersion is 4.43 msec
// stratum 9表示当前r2的级别为9
注:同步之后的级别若低于15,别人还可以再学习你的时间,此时R2为次级时钟;大于等于15时不能再为次级时钟;
【7】基于时间的ACL
r1(config)#time-range openlab
//创建openlab列表
r1(config-time-range)#absolute start 12:00 1 aug 2018 end 12:00 1 aug 2020
//定义整个列表的工作总时间
r1(config-time-range)#periodic daily 9:30 to 12:00
r1(config-time-range)#periodic daily 13: