要求:
1。目标地址是本地的telnet流量进行限制队列中的个数最多为5,超过丢弃
2.。过滤去往网管端口tcp22的ssh流量,过滤去往closed-ports的流量
!
ip cef
!
username admin password 0 cisco
!
class-map type queue-threshold match-any telnet
match protocol telnet /*目标地址是本地的telnet流量进行限制队列中的个数最多为5,超过丢弃
match closed-ports
match port tcp 22 /*过滤去往网管端口tcp22的ssh流量,过滤去往closed-ports的流量
!
!
policy-map type queue-threshold telnet
class telnet
queue-limit 5 /*目标地址是本地的telnet流量进行限制队列中的个数最多为5,超过丢弃
policy-map type port-filter copp
class copp
drop /*过滤去往网管端口tcp22的ssh流量,过滤去往closed-ports的流量
!
!
interface FastEthernet0/0
ip address 202.100.1.10 255.255.255.0
!
interface FastEthernet0/1
ip address 10.1.1.10 255.255.255.0
!
control-plane host
service-policy type port-filter input copp
service-policy type queue-threshold input telnet
!
!
control-plane
!
line con 0
logging synchronous
line aux 0
line vty 0 4
privilege level 15
no login
line vty 5 15
privilege level 15
no login
!
show policy-map type queue-threshold control-plane host
show policy-map type port-filter control-plane host