• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

10-网络管理和监控命令参考

目录

09-镜像命令

本章节下载 09-镜像命令  (107.64 KB)

09-镜像命令


1 流镜像

1.1  流镜像配置命令

1.1.1  mirror-to interface

mirror-to interface命令用来配置流镜像到接口。

undo mirror-to interface命令用来取消流镜像到接口。

【命令】

命令形式一

mirror-to interface interface-type interface-number

undo mirror-to interface interface-type interface-number

命令形式二

mirror-to interface { destination-ip destination-ip-address source-ip source-ip-address } [ sampler sampler-name ] [ erspan-id erspan-id-value | dscp dscp-value | vlan vlan-id | vrf-instance vrf-name ] * [ destination-mac mac-address ]

undo mirror-to interface { destination-ip destination-ip-address source-ip source-ip-address }

【缺省情况】

未配置流镜像到接口。

【视图】

流行为视图

【缺省用户角色】

network-admin

【参数】

interface-type interface-number:表示流镜像接口的接口类型和接口编号。

vlan vlan-id:镜像报文所属的VLAN,vlan-id表示镜像报文所属VLAN的编号,取值范围为1~4094。

erspan-id erspan-id-value:表示流镜像到接口时,镜像报文封装的ERSPAN ID,erspan-id-value为ERSPAN ID,取值范围为1~1023。

【使用指导】

同一流行为中可以通过多次配置将流镜像到多个不同接口。(支持流镜像到多个接口的设备)

使用命令形式一配置流镜像到接口时,设备会将报文镜像到指定出接口。

使用命令形式二配置流镜像到接口时,设备会先给镜像报文封装指定的参数,并根据镜像报文封装的源IP地址和目的IP地址进行查表转发,路由出接口即为镜像报文的目的端口。通过配置路由协议的负载分担,支持多个接口同时作为镜像报文的目的端口。若当前镜像目的端口故障,则使用路由协议重新计算出来的出接口继续转发镜像报文。

【举例】

# 配置流行为1,并在该流行为中配置流镜像到接口Ten-GigabitEthernet2/2/1。

<Sysname> system-view

[Sysname] traffic behavior 1

[Sysname-behavior-1] mirror-to interface ten-gigabitethernet 2/2/1

 

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

新华三官网
联系我们