常见问题 NETGEAR/美国网件网络交换机的常见问题>>

端口镜像(Port Mirroring)

发布时间:2010-09-13 11:58:23

答案:

这一部分描述端口镜像(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


注意:镜像会话号“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 ?
<cr>                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 ?
<slot/port>                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 ?
<slot/port>                Enter the interface.

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

我有NETGEAR WS-C35的问题要问

下一步您可以:
查看NETGEAR/美国网件网络交换机产品 >>
查看网络交换机产品 >>
查看NETGEAR/美国网件网络交换机常见问题 >>