1-5Configuration on a switch acting as a source switch1) Configuration prerequisitesz The source port, the reflector port, and the remote-probe VLAN are determined.z Layer 2 connectivity is ensured between the source and destination switches over theremote-probe VLAN.z The direction of the packets to be monitored is determined.2) Configuration procedureFollow these steps to perform configurations on the source switch:To do… Use the command… RemarksEnter system view system-view —Create a VLAN and enter theVLAN view vlan vlan-id vlan-id is the ID of theremote-probe VLAN.Configure the current VLAN asthe remote-probe VLAN remote-probe vlan enable RequiredReturn to system view quit —Enter the view of the Ethernetport that connects to theintermediate switch ordestination switchinterface interface-typeinterface-number —Configure the current port astrunk port port link-type trunkRequiredBy default, the port type isAccess.Configure the trunk port topermit packets from theremote-probe VLANport trunk permit vlanremote-probe-vlan-id RequiredReturn to system view quit —Create a remote sourcemirroring groupmirroring-group group-idremote-source RequiredConfigure source port(s) for theremote source mirroring groupmirroring-group group-idmirroring-portmirroring-port-list { both |inbound | outbound }RequiredConfigure the reflector port forthe remote source mirroringgroupmirroring-group group-idreflector-port reflector-port RequiredConfigure the remote-probeVLAN for the remote sourcemirroring groupmirroring-group group-idremote-probe vlanremote-probe-vlan-idRequiredWhen configuring the source switch, note that:z All ports of a remote source mirroring group are on the same device. Each remote source mirroringgroup can be configured with only one reflector port.z The reflector port cannot be a member port of an existing mirroring group, a fabric port, a memberport of an aggregation group, or a port enabled with LACP or STP. It must be an access port and