输入您的问题查找答案
   
 
相关文库文档
更多相关文库文档 >>
联系客服
在线技术支持
客户服务热线:

电话销售热线:

服务时间(法定节假日除外):
家庭产品:
周一~周五:8:30~20:30
周六:9:00~18:00
商用产品:
周一~周五:9:00~18:00
商用网络动态

与 NETGEAR 监控专用交换机亲密接触

选择德才兼备的 PoE 交换机

NETGEAR 交换机助力聊城第二人民医院智能监控建设

更多动态 >>

网件文库 » 交换机产品  »  端口镜像(Port Mirroring)
端口镜像(Port Mirroring)

编号:30128       来自:NetGear       更新日期:2012-03-12       访问数量:44118

这一部分描述端口镜像(Port Mirroring)特性。

概述

端口镜像:

  • 使您可以使用一个外部的网络分析仪器监控网络流量。
  • 为进出的数据包转发一份拷贝到指定的端口
  • 作为一个诊断工具,常用于网络排错或者防止攻击
  • 指定一个特定的端口来复制全部数据包
  • 允许进站到交换机或者出站到它们目标的数据包复制到镜像端口

命令行界面示例

以下是使用端口镜像特性的命令示例。

示例#1: show monitor session

(Netgear Switch Routing) #show monitor session 1

Session ID                Admin Mode                ProbePort                Mirrored Port

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

1                                  Enable                         1/0/8                          1/0/7

 

说明: http://www.netgear.com.cn/kb_web_files/switch_images/switch10159_image001.png

注意:镜像会话号“1”-这个“1”是硬件限制。

示例#2: show port all

(Netgear Switch Routing) #show port all
                               Admin          Physical           Physical             Link            Link           LACP

Intf        Type         Mode            Mode                Status                Status         Trap          Mode

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

1/0/1                    Enable           Auto                                             Down          Enable     Enable

1/0/2                    Enable          Auto                                              Down          Enable     Enable

1/0/3                    Enable          Auto                                              Down          Enable     Enable

1/0/4                    Enable          Auto                                              Down          Enable     Enable

1/0/5                    Enable          Auto                                              Down          Enable     Enable

1/0/6                    Enable          Auto                                              Down          Enable     Enable

1/0/7    Mirror     Enable          Auto                                              Down          Enable     Enable

1/0/8    Probe     Enable          Auto                                              Down          Enable     Enable

1/0/10                  Enable          Auto                                              Down          Enable     Enable

示例#3: show port interface

为特定的端口使用这个命令,输出显示这个端口是否被设置成镜像或者被镜像端口以及端口其他功能的启用或停用功能。

(Netgear Switch Routing) #show port 0/7

                               Admin          Physical           Physical             Link            Link           LACP

Intf        Type         Mode            Mode                Status                Status         Trap          Mode

----          ----           ----               ----                        ------                    -----             -----            ------1/0/7    Mirror        Enable         Auto                                              Down         Enable       Enable

(Netgear Switch Routing) #show port 0/8

                               Admin          Physical           Physical             Link            Link           LACP

Intf        Type         Mode            Mode                Status                Status         Trap          Mode

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

1/0/8  Probe         Enable         Auto                                              Down       Enable         Enable

示例#4: (Config) monitor session 1 mode

设置端口镜像,指定监控会话及模式

(Netgear Switch Routing)(Config)#monitor ?

session             Configure port mirroring.

(Netgear Switch Routing)(Config)#monitor session ?

<1-1>                Session number.

(Netgear Switch Routing)(Config)#monitor session 1 ?

destination       Configure the probe interface.

mode                Enable/Disable port mirroring session.

source               Configure the source interface.

(Netgear Switch Routing)(Config)#monitor session 1 mode ?

                Press Enter to execute the command.

(Netgear Switch Routing)(Config)#monitor session 1 mode

示例#5: (Config) monitor session 1 source interface

指定镜像会话的源(被监控)端口和目标(监控)端口。

(Netgear Switch Routing)(Config)#monitor session 1 source ?

interface                Configure interface.

(Netgear Switch Routing)(Config)#monitor session 1 source interface ?

                Enter the interface.

(Netgear Switch Routing)(Config)#monitor session 1 source interface 0/7

(Netgear Switch Routing)(Config)#monitor session 1 destination ?

interface                Configure interface.

(Netgear Switch Routing)(Config)#monitor session 1 destination interface ?

                Enter the interface.

(Netgear Switch Routing)(Config)#monitor session 1 destination interface 0/8

 

序号 no.

日期 date

作者 author

摘要 summary

1

2010-11-03

NETGEAR

文档创建

  
 
以上内容是否为您所需要的答案?
以上内容是否清晰、简明和易于理解的?
您是如何知道网件社区的?