1-5To do… Use the command… RemarksEnable port mirroring – STPcollaboration mirroring stp-collaborationRequiredThis configuration applies to allports of the current device.By default, port mirroring – STPcollaboration is not enabled.In systemviewmirroring-group group-idmirroring-portmirroring-port-list { both |inbound | outbound }interface interface-typeinterface-numbermirroring-group group-idmirroring-port { both | inbound| outbound }Configure thesource portfor the portmirroringgroup In port viewquitUse either approachYou can configure multiplesource ports at a time in systemview, or you can configure thesource port in specific portview. The configurations in thetwo views have the same effect.In systemviewmirroring-group group-idmonitor-port monitor-port-idinterface interface-typeinterface-numberConfigure thedestinationport for theport mirroringgroup In port viewmirroring-group group-idmonitor-portUse either approachThe configurations in the twoviews have the same effect.When configuring local port mirroring, note that:z You need to configure the source and destination ports for the local port mirroring totake effect.z The source port and the destination port cannot be a fabric port or a member port of anexisting mirroring group; besides, the destination port cannot be a member port of anaggregation group or a port enabled with LACP or STP.z With port mirroring – STP collaboration enabled, if you configure a port in Discardingstate as a mirroring port, the port mirroring configuration does not take effect until theport transits to Forwarding state.z Suppose port mirroring – STP collaboration is enabled on a device in an MSTP network.To make the port mirroring configuration take effect on a port, make sure that the portis in Forwarding state in all instances.z To enable port mirroring on an IRF stack, you are recommended to enable portmirroring – STP collaboration.Configuring Remote Port Mirroring