• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

H3C E352[E328]以太网交换机 命令手册-Release 1702(V1.00)

27-镜像命令

本章节下载 27-镜像命令  (91.39 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/E/E328[E352]/Command/Command_Manual/H3C_E352[E328]_CM-Release_1702(V1.00)/201003/667153_30005_0.htm

27-镜像命令


1 镜像命令

1.1  镜像命令

1.1.1  display mirror

【命令】

display mirror

【视图】

任意视图

【参数】

【描述】

display mirror命令用来显示以太网交换机支持的端口镜像配置信息。

相关配置可参考命令mirroring-portmonitor-port

【举例】

# 显示以太网交换机支持的端口镜像配置信息。

<Sysname> display mirror

 Monitor-port:

   Ethernet1/0/1

 Mirroring-port:

   Ethernet1/0/2              both

表1-1 display mirror命令显示信息描述表

字段

描述

Monitor-port

镜像目的端口

Mirroring-port

镜像源端口

both

被镜像报文的方向:

l      both表示对源端口接收和发送的报文进行镜像

l      inbound表示对源端口接收的报文进行镜像

l      outbound表示对源端口发送的报文进行镜像

 

1.1.2  mirroring-port

【命令】

mirroring-port { both |  inbound | outbound }

undo mirroring-port

【视图】

以太网端口视图

【参数】

both:对端口接收和发送的报文进行镜像。

inbound:仅对端口接收的报文进行镜像。

outbound:仅对端口发送的报文进行镜像。

【描述】

mirroring-port命令用来在以太网端口视图下配置镜像源端口。undo mirroring-port命令用来在以太网端口视图下取消镜像源端口的配置。

需要注意的是:

l              用户不能将现有镜像组的成员端口、Fabric端口配置为镜像源端口。

l              将某一端口配置为镜像源端口后,经过此端口的报文将会被复制一份并转发到镜像目的端口。

相关配置可参考命令display mirror

在以太网交换机的以太网端口上配置镜像源端口时,用户可以在不同的端口上执行mirroring-port命令来配置多个镜像源端口。

 

【举例】

# 在端口视图下配置Ethernet 1/0/1为镜像源端口,并且对该端口的接收和发送的报文都进行镜像。

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] interface Ethernet 1/0/1

[Sysname-Ethernet1/0/1] mirroring-port both

1.1.3  monitor-port

【命令】

monitor-port

undo monitor-port

【视图】

以太网端口视图

【参数】

【描述】

monitor-port命令用来在以太网端口视图下配置镜像目的端口。undo monitor-port命令用来在以太网端口视图下取消镜像目的端口的配置。

需要注意的是:

l              用户不能将现有镜像组的成员端口、Fabric端口、汇聚组成员端口、开启了LACP功能的端口或者开启了STP功能的端口配置为镜像目的端口。

l              将某一端口配置为镜像目的端口后,请用户不要配置此端口传输其他业务报文,而是仅用于端口镜像。

相关配置可参考命令display mirror

在以太网交换机的以太网端口上配置镜像目的端口时,如果用户在不同的端口上执行monitor-port命令,则最后一次配置的结果生效。

 

【举例】

# 在端口视图下配置Ethernet 1/0/4为镜像目的端口。

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] interface Ethernet 1/0/4

[Sysname-Ethernet1/0/4] monitor-port

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们