Displaying and Maintaining Port Mirroring 899Configuring a RemoteDestination PortMirroring GroupFollow these steps to configure a remote destination port mirroring group:n ■ The remote destination mirroring port cannot be a member port of the currentmirroring group.■ The remote destination mirroring port can be an access, trunk, or hybrid port.It must be assigned to the remote mirroring VLAN.■ Do not enable STP, RSTP or MSTP on the remote destination mirroring port.Otherwise, the mirroring function may be affected.■ Do not use the remote destination mirroring port for any purpose other thanport mirroring.■ Only existing static VLANs can be configured as remote port mirroring VLANs.To remove a VLAN operating as a remote port mirroring VLAN, you need torestore it to a normal VLAN first. A remote port mirroring group gets invalid ifthe corresponding remote port mirroring VLAN is removed.■ Use a remote port mirroring VLAN for remote port mirroring only.■ A port can belong to only one port mirroring group. A VLAN can be the remoteport mirroring VLAN of only one port mirroring group.Displaying andMaintaining PortMirroringTo do… Use the command… RemarksEnter system view system-view -Create a remote destination portmirroring groupmirroring-groupgroup-idremote-destinationRequiredConfigure the remote port mirroringVLAN for the port mirroring groupmirroring-groupgroup-id remote-probevlan rprobe-vlan-idRequiredAdd a port tothe portmirroring groupas thedestination portIn system view mirroring-groupgroup-id monitor-portmonitor-port-idUse either approach.You can add a port to aremote port mirroringgroup as the destinationport in either system viewor interface view. Theyachieve the samepurpose.In interface view interface interface-typeinterface-number[ mirroring-groupgroup-id ] monitor-portquitEnter destination interface view interface interface-typeinterface-number-Add the port tothe remote portmirroring VLANThe port is an accessportport access vlanrprobe-vlan-idPerform one of thesethree operationsaccording to the porttype.The port is a trunkportport trunk permit vlanrprobe-vlan-idThe port is a hybridportport hybrid vlanrprobe-vlan-id { tagged |untagged }To do… Use the command… RemarksDisplay the configuration of aport mirroring groupdisplay mirroring-group{ group-id | all | local |remote-destination |remote-source }Available in any view