命令】displaymirroring-group{group-id|all|local|remote-destination|remote-source}【视图】任意视图【参数】group-id:端口镜像组的组号,取值围为1〜2all:所有镜像组local:本地镜像组remote-destination:远程目的镜像组remote-source:远程源镜像组描述】displaymirroring-group命令用来显示端口镜像组的信息不同的镜像组类型,其显示容不同设备将按照镜像组号的顺序进展显示举例】#显示所有镜像组的信息displaymirroring-groupallmirroring-group1:type:localstatus:activemirroringport:Ethernet1/0/1bothEthernet1/0/2bothmonitorport:Ethernet1/0/3type:remote-sourcestatus:inactivemirroringport:Ethernet1/0/4inboundreflectorport:remote-probevlan:1900表1-1displaymirroring-group命令显示信息描述表字段描述mirroring-group端口镜像组的组号type镜像组的类型,包才local〔本地镜像组〕、remote-source〔远程源镜像组〕、remote-destination〔远程目的镜像组〕status镜像组的状态,active表小已经生效、inactive表小没有生效mirroringport镜像源端口monitorport镜像目的端口reflectorport反射端口remote-probevlan远程镜像VLAN1.1.2mirroring-group【命令】mirroring-groupgroup-id{local|remote-source|remote-destination}undomirroring-group{group-id|local|remote-source|remote-destination|all}【视图】系统视图【参数】group-id:端口镜像组的组号,取值围为1〜2。
local:本地镜像组remote-sourcec远程源镜像组remote-destination:远程目的镜像组all:所有镜像组描述】mirroring-group命令用来创立镜像组undomirroring-group命令用来删除镜像组创立镜像组的时候需要指定镜像组类型:假设在命令行中指定local参数,表示要创立本地镜像组;假设在命令行中指定remote-destination参数,表示要创立远程目的镜像组;假设在命令行中指定remote-source参数,表示要创立远程源镜像组删除镜像组的时候需要指定镜像组类型或者镜像组号:假设在命令行中指定group-id参数,表示删除端口镜像组号为 group-id的镜像组;假设在命令行中指定all参数,表示删除所有的镜像组;假设在命令行中指定local参数,表示要删除本地镜像组;假设在命令行中指定假设在命令行中指定remote-destination参数,表示要删除远程目的镜像组;remote-source参数,表示要删除远程源镜像组需要注意的是:S3610&S5510系列以太网交换机只支持配置1个本地镜像组或1个远程源镜像组,两者不能同时配置。
如果本地端口镜像组的目的端口和流镜像的目的端口为不同的端口,那么两者不能同时配置关于流镜像的详细介绍请参见本手册“QoS”局部举例】#创立本地镜像组1system-view[Sysname]mirroring-group1local#创立远程目的镜像组2system-view[Sysname]mirroring-group2remote-destination1.1.3 mirroring-groupmirroring-port【命令】mirroring-groupgroup-idmirroring-portmirroring-port-list{inbound|outbound|both}undomirroring-groupgroup-idmirroring-portmirroring-port-list{inbound|outbound|both}【视图】系统视图【参数】group-id:端口镜像组的组号,取值围为1〜2mirroring-port-list:端口歹U表,表示多个端口表示方式为mirroring-port-list={interface-typeinterface-numbertointerface-typeinterface-numbei}&<1-8>。
其中,interface-typ劭端口类型,interface-numbe的端口编号<1-8>表示前面的参数最多可以输入8次inbound:表示仅对端口接收的报文进展镜像outbound:表示仅对端口发送的报文进展镜像both:表示对端口接收和发送的报文都进展镜像描述】mirroring-groupmirroring-port命令用来为已经创立的本地镜像组/远程源镜像组配置源端口undomirroring-groupmirroring-port命令用来为本地镜像组/远程源镜像组删除源端口需要注意的是:源端口不能是现有镜像组的成员端口;不能为远程目的镜像组添加源端口举例】#为已存在的镜像组1添加源端口system-view[Sysname]mirroring-group1mirroring-portEthernet1/0/1toEthernet1/0/5both#从镜像组1中删除某些源端口[Sysname]undomirroring-group1mirroring-portEthernet1/0/1toEthernet1/0/3both1.1.4 mirroring-groupmonitor-port【命令】mirroring-groupgroup-idmonitor-portmonitor-port-idundomirroring-groupgroup-idmonitor-portmonitor-port-id【视图】系统视图【参数】group-id:端口镜像组的组号,取值围为1〜2。
monitor-port-id:目的端口,表示方式为interface-typeinterface-number其中,interface-type为端口类型,interface-numbe的端口编号描述】mirroring-groupmonitor-port命令用来为已经创立的本地镜像组/远程目的镜像组配置目的端口undomirroring-groupmonitor-port命令用来为本地镜像组/远程目的镜像组删除目的端口需要注意的是:已经有目的端口的镜像组不能再添加目的端口;目的端口不能是现有镜像组的成员端口;本地端口镜像组的目的端口不能为聚合成员端口;不能为远程源镜像组配置目的端口;指定的镜像组必须预先创立;建议用户不要在目的端口上开启STP、RSTP或MSTP,否那么可能会影响镜像功能的正常使用为远程目的镜像组1添加目白^端口Ethernet1/0/1system-view[Sysname]mirroring-group1remote-destination[Sysname]mirroring-group1monitor-portEthernet1/0/11.1.5mirroring-groupreflector-port【命令】在系统视图下:mirroring-groupgroup-idreflector-portreflector-port-idundomirroring-groupgroup-idreflector-portreflector-port-id在端口视图下:mirroring-groupgroup-idreflector-portundomirroring-groupgroup-idreflector-port【视图】系统视图/以太网端口视图【参数】group-id:端口镜像组的组号,取值围为1〜2。
reflector-port-id:反射端口,表示方式为interface-typeinterface-numbe嗔中,interface-type为端口类型,interface-numbe的端口编号描述】mirroring-groupreflector-port命令用来为远程源镜像组配置反射端口undomirroring-groupreflector-port命令用来为远程源镜像组删除反射端口需要注意的是:只有远程源镜像组可以配置反射端口,其它类型的镜像组不能配置反射端口,已有反射端口的镜像组不能再配置反射端口;反射端口不能是现有镜像组的成员端口、聚合组成员端口,不能配置QinQ功能;必须是Access端口且属于缺省VLAN端口的双工模式、端口速率、MDI属性取值均为缺省值时,才能将端口配置为反射端口;将某个端口配置为反射端口后,不能再修改此端口双工模式、端口速率、MDI属性的取值,即这些属性只能为缺省值建议用户不要在反射端口连接网线,不要在反射端口上配置以下功能:STP、RSTP、MSTP、802.1x、IGMPSnooping、静态ARP和MAC地址学习功能,否那么可能会影响镜像功能的正常使用。
举例】#在系统视图下为远程源镜像组1配置反射端口Ethernet1/0/1system-view[Sysname]mirroring-group1remote-source[Sysname]mirroring-group1reflector-portEthernet1/0/1#在以太网端口视图下为远程源镜像组1配置反射端口Ethernet1/0/1system-view[Sysname]interfaceEthernet1/0/1[Sysname-Ethernet1/0/1]mirroring-group1reflector-port1.1.6 mirroring-groupremote-probevlan【命令】mirroring-groupgroup-idremote-probevlanrprobe-vlan-idundomirroring-groupgroup-idremote-probevlanrprobe-vlan-id【视图】系统视图【参数】group-id:端口镜像组的组号,取值围为1〜2rprobe-vlan-id:远程镜像VLANID,该VLAN必须已经存在。
描述】mirroring-groupremote-probevlan命令用来为远程源镜像组/远程目的镜像组配置远程镜像V。