分享

Cisco 3560G 交换机设置端口镜像

 zengzb 2013-02-28

# conf t

(config)# monitor session 1 source interface Gi0/3 rx
(config)# monitor session 1 destination interface Gi0/18

(config)#end

#wr

#show monitor session 1

如果是对vlan进行镜像

#conf t                    进入全局模式
(config)#monitor session 1 source vlan 3 - 10 rx      监控vlan 3 -10
(config)#monitor session 1 destination int gi0/24     把信息复制到Gi0/24
(config>#end        返回
#show monitor


镜像口配置    

大多数交换机都支持镜像技术,这可以对交换机进行方便的故障诊断。我们称之为“mirroring ”或“Spanning ”。镜像是将交换机某个端口的流量拷贝到另一端口(镜像端口),进行监测。    Cisco3550可以配置2个镜像口   

 案例:将端口2~5镜像到端口6  

  1、镜像口配置   

 Switch>enable                        

  Switch#conf  t                           

  Step3: 配置镜像源,可以是端口也可以是Vlan 

 Switch(config)#monitor session 1 source interface gigabitEthernet 0/2 - 5 rx 

上面命令最后一个参数:  both  监听双向数据,默认为both rx    接收 tx    发送   

 Step4: 配置镜像目的端口  

Switch(config)#monitor session 1 destination interface gigabitEthernet 0/6


    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多