端口镜像配置
6.2.3.1 端口镜像介绍

    端口镜像功能是指交换机把某一个端口接收或发送的数据帧完全相同的复制给另一个端口;其中被复制的端口称为镜像源端口,复制的端口称为镜像目的端口。通常在镜像目的端口处连接一个协议分析仪(如sniffer)或者rmon监测仪,可以监视和管理网络,并且能诊断网络故障。

    dcrs-5512gc只支持一个镜像目的端口,镜像源端口则没有使用上的限制,可以是1个也可以是多个,多个源端口可以在相同的vlan,也可以在不同vlan。目的端口和源端口可以在不同的vlan。

    6.2.3.2端口镜像配置任务序列

    1. 指定镜像源端口

    2. 指定镜像目的端口

    1. 指定镜像源端口

   

   

   

    6.2.3.3 端口镜像配置

    6.2.3.3.1 monitor session source interface

    命令:monitor session [session] source interface [interface-list] {rx| tx| both}

    no monitor session [session] source interface [interface-list]

    功能:指定镜像源端口;本命令的no操作为删除镜像源端口。

    参数:[session]为镜像session值,目前仅支持1;[interface-list]为镜像源端口列表,支持“-”“;”等特殊字符;rx为镜像源端口接收的流量;tx为镜像从源端口发出的流量;both为镜像源端口入和出的流量。

    命令模式:全局配置模式

    使用指南:本命令设置镜像的源端口,dcrs-5512gc对镜像源端口没有限制,可以是一个端口,也可以是多个端口,不仅能镜像源端口的发出和接收双向的流量,还能单独镜像源端口的发出流量及接收流量。如果不指定[rx|tx|both]关键字,缺省为both。当镜像多个端口时,多个源端口的方向可以不一致,但要分几次配置。

    举例:设置镜像源端口为0/0/1-4的发出流量和0/0/5的接收流量。

    switch(config)#monitor session 1 source interface ethernet 0/0/1-4 tx

    switch(config)#monitor session 1 source interface ethernet 0/0/5 rx

    6.2.3.3.2 monitor session destination interface

    命令:monitor session [session] destination interface [interface-number]

    no monitor session [session] destination interface [interface-number]

    功能:指定镜像目的端口;本命令的no操作为删除镜像目的端口。

    参数:[session]为镜像session值,目前仅支持1;[interface-number]为镜像目的端口。

    命令模式:全局配置模式

    使用指南:dcrs-5512gc仅支持一个镜像目标端口。需要注意的是,作为镜像目标端口不能是端口聚合组的成员,并且端口吞吐量最好大于或等于它所镜像的所有源端口的吞吐量的总和。

    举例:设置镜像目的端口为0/0/7。

    switch(config)#monitor session 1 destination interface ethernet 0/0/7

    6.2.3.4端口镜像举例

    见端口配置举例。

    6.2.3.5 端口镜像排错帮助

    6.2.3.5.1 show monitor

    命令:show monitor

    功能:显示镜像源、目的端口的信息。

    命令模式:特权用户配置模式

    使用指南:通过本命令可以显示当前设置的镜像源端口及目的端口。

    举例:

    switch#show monitor

    6.2.3.5.2 端口镜像排错帮助

    当配置端口镜像功能出现问题时,请检查是否是如下原因:

    1 镜像目的端口是端口聚合组成员;如果是,请修改端口聚合组;

    2 镜像目的端口的吞吐量小于镜像源端口吞吐量的总和,目的端口无法完全复制源端口的流量;请减少源端口的个数或复制单向的流量,或者选择吞吐量更大的端口作为目的端口。

   
神州数码 DCRS-5512GC 相关内容:报价 | 参数 | 图片 | 论坛 | 评测