[DeviceA] mirroring-group 1 remote-source
# Create VLAN 2.
[DeviceA] vlan 2
[DeviceA-vlan2] quit
# Configure VLAN 2 as the remote probe VLAN, Ethernet 1/0/1 as a source port, and Ethernet 1/0/3
as the reflector port in the mirroring group.
[DeviceA] mirroring-group 1 remote-probe vlan 2
[DeviceA] mirroring-group 1 mirroring-port ethernet 1/0/1 both
[DeviceA] mirroring-group 1 reflector-port ethernet 1/0/3
# Configure Ethernet 1/0/2 as a trunk port that permits the packets of VLAN 2 to pass through.
[DeviceA] interface ethernet 1/0/2
[DeviceA-Ethernet1/0/2] port link-type trunk
[DeviceA-Ethernet1/0/2] port trunk permit vlan 2
[DeviceA-Ethernet1/0/2] quit
# Disable Spanning Tree Protocol (STP) in the reflector port Ethernet 1/0/3.
[DeviceA] interface ethernet 1/0/3
[DeviceA-Ethernet1/0/3] undo stp enable
2. Configure Device B (the intermediate device)
# Create VLAN 2.
<DeviceB> system-view
[DeviceB] vlan 2
[DeviceB-vlan2] quit
# Configure Ethernet 1/0/1 as a trunk port that permits the packets of VLAN 2 to pass through.
[DeviceB] interface ethernet 1/0/1
[DeviceB-Ethernet1/0/1] port link-type trunk
[DeviceB-Ethernet1/0/1] port trunk permit vlan 2
[DeviceB-Ethernet1/0/1] quit
# Configure Ethernet 1/0/2 as a trunk port that permits the packets of VLAN 2 to pass through.
[DeviceB] interface ethernet 1/0/2
[DeviceB-Ethernet1/0/2] port link-type trunk
[DeviceB-Ethernet1/0/2] port trunk permit vlan 2
[DeviceB-Ethernet1/0/2] quit
3. Configure Device C (the destination device)
# Configure Ethernet 1/0/1 as a trunk port that permits the packets of VLAN 2 to pass through.
<DeviceC> system-view
[DeviceC] interface ethernet 1/0/1
[DeviceC-Ethernet1/0/1] port link-type trunk
[DeviceC-Ethernet1/0/1] port trunk permit vlan 2
[DeviceC-Ethernet1/0/1] quit
# Create a remote destination group.
[DeviceC] mirroring-group 1 remote-destination
# Create VLAN 2.
[DeviceC] vlan 2
[DeviceC-vlan2] quit
140