902 CHAPTER 72: PORT MIRRORING CONFIGURATION
Network diagram
Figure 266 Network diagram for remote port mirroring configuration
Configuration procedure
1 Configure Switch A (the source device).
# Create a remote source port mirroring group.
<SwitchA> system-view
[SwitchA] mirroring-group 1 remote-source
# Create VLAN 2.
[SwitchA] vlan 2
[SwitchA-vlan2] quit
# Configure VLAN 2 as the remote port mirroring VLAN of the remote port
mirroring group. Add port GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 to the
remote port mirroring group as source ports. Configure port GigabitEthernet 1/0/3
as the outbound mirroring port.
[SwitchA] mirroring-group 1 remote-probe vlan 2
[SwitchA] mirroring-group 1 mirroring-port GigabitEthernet 1/0/1 GigabitEthernet 1/0/2 inbound
[SwitchA] mirroring-group 1 monitor-egress GigabitEthernet 1/0/3
# Configure port GigabitEthernet 1/0/3 as a trunk port and configure the port to
permit the packets of VLAN 2.
[SwitchA] interface GigabitEthernet 1/0/3
[SwitchA-GigabitEthernet1/0/3] port link-type trunk
[SwitchA-GigabitEthernet1/0/3] port trunk permit vlan 2
1 Configure Switch B (the intermediate device).
# Configure port GigabitEthernet 1/0/1 as a trunk port and configure the port to
permit the packets of VLAN 2.
<SwitchB> system-view
[SwitchB] interface GigabitEthernet 1/0/1
[SwitchB-GigabitEthernet1/0/1] port link-type trunk
[SwitchB-GigabitEthernet1/0/1] port trunk permit vlan 2
[SwitchB-GigabitEthernet1/0/1] quit
Switch A
GE1/0/3
Data monitoring
device
Department 1
Department 2
GE1/0/1
Switch B Switch C
GE1/0/1
GE1/0/2
GE1/0/1
GE1/0/2GE1/0/2