职业IT人-IT人生活圈

 找回密码
 成为会员
搜索
查看: 1051|回复: 0

镜像端口建立方法

[复制链接]
weisheng 发表于 2006-12-15 16:55 | 显示全部楼层 |阅读模式
Cisco CATALYST交换机端口监听配置

    Cisco CATALYST交换机分为两 种,在CATALYST家族中称侦听端口为分析端 口(analysis  port)。
    1、Catalyst  2900XL/3500XL/2950系列交换机端口监听配 置  (基于CLI)
    以下命令配置端口监听:
    port    monitor
    例 如,F0/1和F0/2、F0/3同属VLAN1,F0/1监听F0/2、F0/3端口:
    interface    FastEthernet0/1
    port    monitor    FastEthernet0/2
    port    monitor    FastEthernet0/3
    port    monitor    VLAN1

    2、Catalyst  4000,5000 and 6000系列交换机端口监听配 置  (基于IOS)
    以下命令配置端口监听:
    set   span
    例如,模块1中端口1和端口2同属VLAN1,端口3在VLAN2,端口4和5在VLAN2,端口2监听端 口1和3、4、5,
    set    span    1/1,1/3-5    1/2

    2950/3550/3750
    格式如下:
    #monitor session number source interface mod_number/port_number both
    #monitor session number destination interface mod_mnumber/port_number

    //rx--〉指明是进端口得流量,tx--〉出端口得流量 both 进出得流量

    for example:

    第一条镜像,将第一模块中的源端口为1-10的镜像到端口12上面;
    #monitor session 1 source interface 1/1-10 both
    #monitor session 1 destination interface 1/12
      
    第二条镜像,将第二模块中的源端口为13-20的镜像到端口24上面;
    #monitor session 2 source interface 2/13-20 both
  #monitor session 2 destination interface 2/24

    当有多条镜像、多个模块时改变其中的参数即可。

    Catalyst 2950 3550不支持port monitor

    C2950#configure terminal
    C2950(config)#
    C2950(config)#monitor session 1 source interface fastEthernet 0/2

    !--- Interface fa 0/2 is configured as source port.

    C2950(config)#monitor session 1 destination interface fastEthernet 0/3

    !--- Interface fa0/3 is configured as destination port.

    3COM交换机端口监听配置

    在3COM交换机中,端口监听被称为“Roving  Analysis”。 网络流量被监听的端口称作“监听口”(Monitor  Port),连接监听设备的端口称作“分析 口”(Analyzer  Port)。

    以下命令配置端口监听:
    ● 指定分析口
    feature  rovingAnalysis  add,或缩 写  f  r  a,
    例 如:
    Select  menu  option:  feature  rovingAn alysis  add
    Select  analysis  slot:  1?
    Select  analysis  port:  2

    ● 指定监听口并启动端口监听
    feature  rovingAnalysis  start,或缩 写  f  r  sta,
    例 如:
    Select  menu  option:  feature  rovingAn alysis  start
    Select  slot  to  monitor  ?(1-12):  1
    Select  port  to  monitor?(1-8):  3

    ● 停止端口监 听
    feature  rovingAnalysis  stop,或缩 写  f  r  sto,

    Intel 称端口监听为“Mirror  Ports”。  网络流量被监听的端口称作“源端 口”(Source  Port),连接监听设备的端口称作“镜像 口”(Mirror  Port)。
    配置端口监听步骤如下:
    ● 在 navigation菜单,点击Statistics下的Mirror  Ports,弹出Mirror  Ports信 息。
    ● 在Configure  Source  列中点击端口来选择源端口, 弹出Mirror  Ports  Configuration。
    ● 进行源端口设 置:
    源端口是镜像流量的来源口,镜像口是接收来自源端口流量的端 口。
    ● 点击Apply确定
    可以选择三种监听的方式:
    1.连续(Always):镜像全部流量。
    2.周期(Periodic):在一定周期内 镜像全部流量。镜像周期在Sampling  Interval  configuration中设置。
    3 .禁止(Disabled):关闭流量镜像。

    Avaya交换机端口监听配置

    在Avaya交换机用户手册中,端口监 听被称为“端口镜像”(Port  Mirror)。
    以下命令配置端口监听:
    {  set|clear  }  Port  Mirror
    设置端口侦 听:set port mirror 〈mod-port-range〉 source-port ?〈mod-port-range〉 mirror-port 〈mod-port-spec〉  sampling   { always | disable | periodic }   [ max-packets-sec 〈max-packets-sec-value〉?] [ piggyback-port〈mod-port-spec〉 ]?
    禁止端口监 听:clear  port  mirror  〈mod-port-range〉

    命令 中,mod-port-range指定端口的范围;mod-port-spec指定特定的端口;piggyback-port指定双向镜像的端口;sampling指定镜像周期;max-packets-sec仅在sampling设置为periodic时使用,指定监听口每秒最多的数据报数量。

    华为交换机端口监听配置
    华为交换机用户手册中,端口监听被称为“端口镜 像”(Port  Mirroring)。
    使用Huawei  Lanswitch  View管理系统添加一个镜像端口:
    ● 选 择Device  Setup或Stack  Setup。
    ● 点 击Port  Mirroring。
    ● 点击Add按 钮。
    ● 对于堆叠,点击Switch并从列表选择一个交换机。
    ● 点击Reflect  from并选择流量将被镜像的端口。
    ● 点击Reflect  to并选上面所选择的端口上的。
您需要登录后才可以回帖 登录 | 成为会员

本版积分规则

QQ|手机版|小黑屋|网站帮助|职业IT人-IT人生活圈 ( 粤ICP备12053935号-1 )|网站地图
本站文章版权归原发布者及原出处所有。内容为作者个人观点,并不代表本站赞同其观点和对其真实性负责,本站只提供参考并不构成任何投资及应用建议。本站是信息平台,网站上部分文章为转载,并不用于任何商业目的,我们已经尽可能的对作者和来源进行了通告,但是能力有限或疏忽造成漏登,请及时联系我们,我们将根据著作权人的要求立即更正或者删除有关内容。

GMT+8, 2024-5-3 03:10 , Processed in 0.139789 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表