现场在S10510上配置端口镜像,报错资源不足:
[CORE]mirroring-group 2 mirroring-port g2/3/0/45 both
Monitor resources are insufficient.
1、查看当前板卡配置的镜像组数量,发现除了这个镜像组之外,只有一个镜像组配置
Mirroring group 3:
Type: Local
Status: Active
Mirroring port:
GigabitEthernet2/3/0/5 Both
GigabitEthernet2/3/0/6 Both
GigabitEthernet2/3/0/7 Both
GigabitEthernet2/3/0/8 Both
GigabitEthernet2/3/0/9 Both
2、计算镜像资源,正常情况下一块芯片有4个镜像资源,查看chassis 2 slot 3的芯片数量,通过下面debug port mapping发现板卡的unit只有0,也就意味着这块板卡就一块芯片,按照上面镜像组的配置,当前下发的镜像应该只占了两个资源(单方向占用一个资源,both会占用两个资源),不应该出现镜像资源不足的报错。
====debug port mapping chassis 2 slot 3====
[Interface] [Unit] [Port] [Name] [Combo?] [Active?] [IfIndex] [MID] [Link]
===============================================================================
GE2/3/0/1 0 2 ge1 no no 0x9db 70 down
GE2/3/0/2 0 1 ge0 no no 0x9dc 70 down
......
GE2/3/0/47 0 48 ge47 no no 0xa09 70 up
GE2/3/0/48 0 47 ge46 no no 0xa0a 70 down
3、查看全局的配置,发现全局配置了将报文镜像到CPU的配置,经核实,将报文镜像到CPU的动作也会占用端口镜像资源,删掉这个配置后问题解决。
traffic behavior 3007
accounting packet
mirror-to cpu
#
qos policy 2
classifier 3007 behavior 3007
#
qos apply policy 2 global inbound
qos apply policy 2 global outbound
将报文镜像到CPU的动作也会占用端口镜像资源,因此删掉这个镜像到CPU的配置后问题接解决。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作