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

H3C S3600系列以太网PON OLT交换机 命令手册-Release 3103-6W100

07-端口镜像命令

本章节下载 07-端口镜像命令  (114.8 KB)

docurl=/cn/Service/Document_Software/Document_Center/EPON/OLT/EPON_OLT/S3600_PON_OLT/Command/Command_Manual/S3600_PON_OLT_CM-Release_3103-6W100/200905/633447_30005_0.htm

07-端口镜像命令


1 端口镜像配置命令

1.1  端口镜像配置命令

1.1.1  display mirroring-group

【命令】

display mirroring-group { groupid | all | local | remote-destination | remote-source }

【视图】

任意视图

【缺省级别】

2:系统级

【参数】

groupid:端口镜像组的组号,取值范围为1~4。

all:显示所有镜像组的信息。

local:显示所有本地镜像组的信息。

remote-destination:显示所有远程目的镜像组的信息。

remote-source:显示所有远程源镜像组的信息。

【描述】

display mirroring-group命令用来显示端口镜像组的信息。

不同的镜像组类型,其显示内容不同。显示的顺序按照镜像组号的排列进行。

【举例】

# 显示所有镜像组的信息。

<Sysname> display mirroring-group all

mirroring-group 2:

    type: local

    status: active

    mirroring port:

        Olt1/0/1  both

        Olt1/0/2  both

    monitor port: GigabitEthernet1/1/1

mirroring-group 3:

    type: remote-source

    status: inactive

    mirroring port:

        GigabitEthernet1/1/2  both

    monitor egress port:

    remote-probe VLAN: 100  

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

字段

描述

mirroring-group

端口镜像组的组号

type

镜像组的类型,包括local(本地镜像组)、remote-source(远程源镜像组)、remote-destination(远程目的镜像组)

status

镜像组的状态,active表示已经生效、inactive表示没有生效

mirroring port

镜像源端口

monitor port

镜像目的端口

monitor egress port

镜像组出端口

remote-probe vlan

远程镜像VLAN

 

1.1.2  mirroring-group

【命令】

mirroring-group groupid { local | remote-destination | remote-source }

undo mirroring-group { groupid | all | local | remote-destination | remote-source }

【视图】

系统视图

【缺省级别】

2:系统级

【参数】

groupid:端口镜像组的组号,取值范围为1~4。

local:本地镜像组。

remote-destination:远程目的镜像组。

remote-source:远程源镜像组。

all:所有镜像组。

【描述】

mirroring-group命令用来创建一个镜像组。undo mirroring-group命令用来删除镜像组。

【举例】

# 创建本地镜像组1。

<Sysname> system-view

[Sysname] mirroring-group 1 local

1.1.3  mirroring-group mirroring-port

【命令】

mirroring-group groupid mirroring-port mirroring-port-list { both | inbound | outbound }

undo mirroring-group groupid mirroring-port mirroring-port-list { both | inbound | outbound }

【视图】

系统视图

【缺省级别】

2:系统级

【参数】

groupid:端口镜像组的组号,取值范围为1~4。

mirroring-port-list:端口列表,表示多个端口。表示方式为mirroring-port-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-8>。其中,interface-type为端口类型,interface-number为端口号。&<1-8>表示前面的参数最多可以输入8次。

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

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

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

【描述】

mirroring-group mirroring-port命令用来为镜像组配置源端口。undo mirroring-group mirroring-port命令用来取消为镜像组配置的源端口。

需要注意的是:

l              不能为远程目的镜像组配置源端口。

l              执行undo命令时,undo命令中指定的镜像源端口的报文方向(bothinboundoutbound)必须和之前配置的报文方向相同,否则undo命令无效。

【举例】

# 为已存在的镜像组1配置源端口。

<Sysname> system-view

[Sysname] mirroring-group 1 mirroring-port Olt 1/0/1 to Olt 1/0/2 both

[Sysname] mirroring-group 1 mirroring-port GigabitEthernet 1/1/1 to GigabitEthernet 1/1/2 both

# 从镜像组1中删除某些源端口。

[Sysname] undo mirroring-group 1 mirroring-port Olt 1/0/1 to Olt 1/0/2 both

[Sysname] undo mirroring-group 1 mirroring-port GigabitEthernet 1/1/1 to GigabitEthernet 1/1/2 both

1.1.4  mirroring-group monitor-egress

【命令】

在系统视图下:

mirroring-group groupid monitor-egress monitor-egress-port-id

undo mirroring-group groupid monitor-egress monitor-egress-port-id

在以太网端口/OLT端口视图下:

mirroring-group groupid monitor-egress

undo mirroring-group groupid monitor-egress

【视图】

系统视图/以太网端口视图/OLT端口视图

【缺省级别】

2:系统级

【参数】

groupid:端口镜像组的组号,取值范围为1~4。

monitor-egress-port-id:镜像出端口,表示方式为interface-type interface-number。其中,interface-type为端口类型,interface-number为端口号。

【描述】

mirroring-group monitor-egress命令用来为远程源镜像组配置出端口。undo mirroring-group monitor-egress命令用来取消为远程源镜像组配置的出端口。

需要注意的是,只有远程源镜像组可以配置出端口,其它类型的镜像组不能配置出端口,一个远程源镜像组只能配置一个出端口。

【举例】

# 在系统视图下为远程源镜像组1配置出端口GigabitEthernet1/1/1。

<Sysname> system-view

[Sysname] mirroring-group 1 remote-source

[Sysname] mirroring-group 1 monitor-egress gigabitethernet 1/1/1

# 在接口视图下为远程源镜像组2配置出端口Olt 1/0/2。

<Sysname> system-view

[Sysname] mirroring-group 2 remote-source

[Sysname] interface Olt 1/0/2

[Sysname-Olt1/0/2] mirroring-group 2 monitor-egress

1.1.5  mirroring-group monitor-port

【命令】

mirroring-group groupid monitor-port monitor-port-id

undo mirroring-group groupid monitor-port monitor-port-id

【视图】

系统视图

【缺省级别】

2:系统级

【参数】

groupid:端口镜像组的组号,取值范围为1~4。

monitor-port-id:目的端口,表示方式为interface-type interface-number。其中,interface-type为端口类型,interface-number为端口号。

【描述】

mirroring-group monitor-port命令用来为镜像组配置目的端口。undo mirroring-group monitor-port命令用来取消为镜像组配置的目的端口。

需要注意的是:

l              一个镜像组中只可以配置一个目的端口;

l              远程源镜像组不能有目的端口;

l              指定的镜像组必须预先创建;

l              目的端口不能是现有镜像组的成员端口。

【举例】

# 为远程目的镜像组1配置目的端口GigabitEthernet1/1/1。

<Sysname> system-view

[Sysname] mirroring-group 1 remote-destination

[Sysname] mirroring-group 1 monitor-port gigabitethernet 1/1/1

1.1.6  mirroring-group remote-probe vlan

【命令】

mirroring-group groupid remote-probe vlan rprobe-vlan-id

undo mirroring-group groupid remote-probe vlan rprobe-vlan-id

【视图】

系统视图

【缺省级别】

2:系统级

【参数】

groupid:端口镜像组的组号,取值范围为1~4。

rprobe-vlan-id:远程镜像VLAN ID,该VLAN必须已经存在并且为静态VLAN。

【描述】

mirroring-group remote-probe vlan命令用来为远程源镜像组或者远程目的镜像组配置远程镜像VLAN。undo mirroring-group remote-probe vlan命令用来取消为远程源镜像组或者远程目的镜像组配置的远程镜像VLAN。

l    只有远程源镜像组和远程目的镜像组可以配置远程镜像VLAN,本地镜像组不能配置远程镜像VLAN,已有远程镜像VLAN的镜像组不能再配置远程镜像VLAN。

l    建议远程镜像VLAN不用做其它用途,仅用于远程镜像。

 

【举例】

# 为远程源镜像组1配置远程镜像VLAN 2。

<Sysname> system-view

[Sysname] mirroring-group 1 remote-source

[Sysname] mirroring-group 1 remote-probe vlan 2

1.1.7  mirroring-port

【命令】

[ mirroring-group groupid ] mirroring-port { both | inbound | outbound }

undo [ mirroring-group groupid ] mirroring-port { both | inbound | outbound }

【视图】

以太网端口视图/OLT端口视图

【缺省级别】

2:系统级

【参数】

groupid:端口镜像组的组号,取值范围为1~4。

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

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

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

【描述】

mirroring-port命令用来把本端口配置成镜像源端口。undo mirroring-port命令用来取消本端口为镜像源端口的配置。

需要注意的是:

l              如果在命令行中没有指定镜像组号,默认的镜像组号为1。

l              不能为远程目的镜像组配置源端口。

l              执行undo命令时,undo命令中指定的镜像源端口的报文方向(bothinboundoutbound)必须和之前配置的报文方向相同,否则undo命令无效。

【举例】

# 把端口GigabitEthernet 1/1/1配置成远程源镜像组2的源端口。

<Sysname> system-view

[Sysname] mirroring-group 2 remote-source

[Sysname] interface GigabitEthernet 1/1/1

[Sysname-GigabitEthernet1/1/1] mirroring-group 2 mirroring-port both

# 把端口Olt 1/0/1加入到已创建的本地镜像组3中。

<Sysname> system-view

[Sysname] mirroring-group 3 local

[Sysname] interface Olt 1/0/1

[Sysname-Olt1/0/1] mirroring-group 3 mirroring-port both

1.1.8  monitor-port

【命令】

[ mirroring-group groupid ] monitor-port

undo [ mirroring-group groupid ] monitor-port

【视图】

以太网端口视图/OLT端口视图

【缺省级别】

2:系统级

【参数】

groupid:端口镜像组的组号,取值范围为1~4。

【描述】

monitor-port命令用来把本端口配置成镜像目的端口。undo monitor-port命令用来取消本端口为镜像目的端口的配置。

如果在命令行中没有指定镜像组号,默认的镜像组号为1。

需要注意的是:

l              不能为远程源镜像组配置目的端口;

l              目的端口不能是现有镜像组的成员端口。

【举例】

# 把端口GigabitEthernet1/1/1配置成本地镜像组1的目的端口。

<Sysname> system-view

[Sysname] mirroring-group 1 local

[Sysname] interface GigabitEthernet 1/1/1

[Sysname-GigabitEthernet1/1/1] monitor-port

1.1.9  uni mirroring-port

【命令】

uni uni-number mirroring-port { both | inbound | outbound }

undo uni uni-number mirroring-port

【视图】

ONU端口视图

【缺省级别】

2:系统级

【参数】

uni-numberUNI端口号,取值范围为1~当前ONUUNI端口数,且支持最大的UNI端口数为80

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

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

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

【描述】

uni mirroring-port命令用来配置镜像源端口。undo uni mirroring-port命令用来取消镜像源端口的配置。

需要注意的是,在配置了镜像远端口后,还需要为该端口配置对其监控的监控端口,配置监控端口命令请参见“1.1.2  uni monitor-port”。

【举例】

# 配置对UNI 1端口发送的流量进行镜像。

<Sysname> system-view

[Sysname] interface onu 1/0/1:1

[Sysname-Onu1/0/1:1] uni 1 mirroring-port outbound

1.1.10  uni monitor-port

【命令】

uni uni-number monitor-port

undo uni uni-number monitor-port

【视图】

ONU端口视图

【缺省级别】

2:系统级

【参数】

uni-numberUNI端口号,取值范围为1~当前ONUUNI端口数,且支持最大的UNI端口数为80

【描述】

uni monitor-port命令用来配置监控端口,用来对镜像端口进行监控。undo uni monitor-port命令用来取消监控端口的配置。

相关命令可参考uni mirroring-port

【举例】

# 配置对UNI 1端口发送的流量进行镜像,其监控端口为UNI 2

<Sysname> system-view

[Sysname] interface onu 1/0/1:1

[Sysname-Onu1/0/1:1] uni 1 mirroring-port outbound

[Sysname-Onu1/0/1:1] uni 2 monitor-port

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

新华三官网
联系我们