cisco路由器的control plan策略测试

1.CoPP和CPPr
CoPP--Control Plane Policing 是指直接在Control Plane实施的service policy
CPPr--Control Plane Protection 是指在Control Plane的cef-exception,host,transit三个子接口下面实施的service policy
其中,CoPP不需要cef的支持,但是CPPr需要cef的支持,如果关闭cef会有如下提示:

R2(config)#no ip cef
R2(config)#
*Mar  1 00:26:44.431: %CP-4-CPPR_DISABLED: Removing security features on host, transit and cef-exception paths
R2(config)#
*Mar  1 00:26:44.447: %CP-5-FEATURE: Control-plane Policing feature disabled from Control plane host path

2.确定CPPr流量
!
class-map type logging match-any LOG
 match  packets dropped
 match  packets error
 match  packets permitted
!
policy-map type logging LOG
 class LOG
!
control-plane host
 service-policy type logging input LOG
control-plane transit
 service-policy type logging input LOG
control-plane cef-exception
 service-policy type logging input LOG
======================================
show control-plane counters
clear control-plane *
======================================

配置完成后,通过发送不同的流量来测试到底什么流量属于不同子接口的流量:

host:
%CP-6-IP: PERMIT  10.1.1.1 -> 10.1.1.8 icmp
%CP-6-TCP: PERMIT  20.1.1.2(64562) -> 10.1.1.1(23)

transit:(与硬件有关)
%CP-6-IP: PERMIT  20.1.1.2 -> 224.0.0.5 ospf
%CP-6-UDP: PERMIT  10.1.1.8(138) -> 10.1.1.255(138)

cef-exception:
%CP-6-ARP: PERMIT  10.1.1.8 -> 10.1.1.1

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值