基于时间的acl学习笔记

首先定义时间范围,之后在写acl时,再将此应用于acl语句之上;

R3(config)#time-range workdays //定义时间范围名称

R3(config-time-range)#periodic weekdays 8:00 to 18:00  //定义时间范围

/*

R1(config-time-range)#periodic ?

  Friday     Friday

  Monday     Monday

  Saturday   Saturday

  Sunday     Sunday

  Thursday   Thursday

  Tuesday    Tuesday

  Wednesday  Wednesday

  daily      Every day of the week

  weekdays   Monday thru Friday

  weekend    Saturday and Sunday

*/

R3(config)#access-list 111 permit tcp host 172.16.3.1 host 2.2.2.2 eq telnet time-range time //在访问控制列表中调用time-range


你可能感兴趣的:(时间,学习笔记,acl)