S7706 (V2R6) 资源问题导致端口镜像失败

发布时间:  2015-12-09 浏览次数:  252 下载次数:  1
问题描述
当前配置了端口镜像:

observe-port 1 interface GigabitEthernet1/0/35

observe-port 2 interface GigabitEthernet1/0/34

observe-port 3 interface GigabitEthernet1/0/32

[zbsrlzy_active]dis port-mirroring

  ----------------------------------------------------------------------

  Observe-port 1 : GigabitEthernet1/0/35

  Observe-port 2 : GigabitEthernet1/0/34

  Observe-port 3 : GigabitEthernet1/0/32

  ----------------------------------------------------------------------

  Port-mirror:

  ----------------------------------------------------------------------

       Mirror-port               Direction  Observe-port            

  ----------------------------------------------------------------------

  1    GigabitEthernet1/0/0      Inbound    Observe-port 1          

  2    GigabitEthernet1/0/0      Outbound   Observe-port 1          

  3    GigabitEthernet1/0/2      Inbound    Observe-port 1          

  4    GigabitEthernet1/0/2      Outbound   Observe-port 1          

  5    GigabitEthernet1/0/33     Inbound    Observe-port 1          

  6    GigabitEthernet1/0/33     Outbound   Observe-port 1                    

  7    GigabitEthernet2/0/2      Inbound    Observe-port 2          

  8    GigabitEthernet2/0/2      Outbound   Observe-port 2

问题现象:

配置G2/0/0口的inbound和outbound加入observe-port2可以成功,无法加入observe-port1和3

[zbsrlzy_active-GigabitEthernet2/0/0]port-mirroring to observe-port 1 inbound    

[zbsrlzy_active-GigabitEthernet2/0/0]port-mirroring to observe-port 1 outbound

Error:  Insufficient mirror-port resource.

Undo以后:

[zbsrlzy_active-GigabitEthernet2/0/0]port-mirroring to observe-port 2 inbound    

[zbsrlzy_active-GigabitEthernet2/0/0]port-mirroring to observe-port 2 outbound

Undo以后:

[zbsrlzy_active-GigabitEthernet2/0/0]port-mirroring to observe-port 3 inbound     

[zbsrlzy_active-GigabitEthernet2/0/0]port-mirroring to observe-port 3 outbound

Error:  Insufficient mirror-port resource.

都是跨板镜像,为什么G2/0/0口加入observe-port2就可以,加入1和3就失败?
处理过程

===============display device===============
==================================================
S7706's Device status:
Slot Sub Type Online Power Register Status Role
-------------------------------------------------------------------------------
1 - ES0DG48TFA00 Present PowerOn Registered Normal NA
2 - ES0D0G24SA00 Present PowerOn Registered Normal NA SA系列单板
3 - ES0D0X12SA00 Present PowerOn Registered Normal NA

单板类型为SA系列单板,此类单板出方向可绑定的观察端口数量只为全局1个,且有另外一个资源限制:单个端口可以配置的观察口数量只能为1个。即单个端口下出入方向的观察口如果想同时配置,必须配置为同一个。
GigabitEthernet2/0/2 Outbound Observe-port 2

[zbsrlzy_active-GigabitEthernet2/0/0]port-mirroring to observe-port 2 outbound

------OK,没有报错

[zbsrlzy_active-GigabitEthernet2/0/0]port-mirroring to observe-port 1 outbound

Error: Insufficient mirror-port resource.

[zbsrlzy_active-GigabitEthernet2/0/0]port-mirroring to observe-port 3 outbound

Error: Insufficient mirror-port resource.

根因
因为2号单板在出方向已经绑定了1个观察端口,仅有的1个资源被占用,其他端口不能再将出方向观察口绑定为其他索引了

 

解决方案
单个端口下出入方向的观察口如果想同时配置,必须配置为同一个。

 

建议与总结

端口镜像遇到此类问题,可以借鉴参考下,display dev查询下单板型号是否有此类限制

可以查询S7700产品文档里镜像配置中配置注意事项,里面有不同单板的镜像规格详细说明。

END