Configuration on Switch C
# Configure GigabitEthernet 2/0/1 as a trunk port and assign it to VLAN 2.
<SwitchC> system-view
[SwitchC] interface GigabitEthernet 2/0/1
[SwitchC-GigabitEthernet2/0/1] port link-type trunk
[SwitchC-GigabitEthernet2/0/1] port trunk permit vlan 2
[SwitchC-GigabitEthernet2/0/1] quit
# Create remote destination mirroring group 1.
[SwitchC] mirroring-group 1 remote-destination
# Create VLAN 2.
[SwitchC] vlan 2
[SwitchC-vlan2] quit
# Configure VLAN 2 as the remote probe VLAN and GigabitEthernet 2/0/2 as the monitor port for the
remote destination mirroring group, and configure GigabitEthernet 2/0/2 as an access port and assign it
to VLAN 2.
[SwitchC] mirroring-group 1 remote-probe vlan 2
[SwitchC] mirroring-group 1 monitor-port GigabitEthernet 2/0/2
[SwitchC] interface GigabitEthernet 2/0/2
[SwitchC-GigabitEthernet 2/0/2] port access vlan 2
After the configuration above, you can monitor packets from the 10.1.1.1/24 network segment on the
data monitoring device.
2-6