Local port mirroring with multiple monitor ports configuration example

Network requirements

As shown in Figure 38, Dept. A, Dept. B, and Dept. C are connected to Device A through ports GigabitEthernet 1/0/1, GigabitEthernet 1/0/2, and GigabitEthernet 1/0/3, respectively. Configure port mirroring to enable all three data monitoring devices (Server A, Server B, and Server C), to monitor both the incoming and outgoing traffic of the three departments.

Figure 38: Network diagram

Configuration procedure

# Create remote source mirroring group 1.

<DeviceA> system-view
[DeviceA] mirroring-group 1 remote-source

# Configure GigabitEthernet 1/0/1 through GigabitEthernet 1/0/3 as source ports of remote source mirroring group 1.

[DeviceA] mirroring-group 1 mirroring-port gigabitethernet 1/0/1 to gigabitethernet 1/0/3 both

# Configure an unused port (GigabitEthernet 1/0/5, for example) of Device A as the reflector port of remote source mirroring group 1.

[DeviceA] mirroring-group 1 reflector-port gigabitethernet 1/0/5

# Create VLAN 10 and assign the three ports (GigabitEthernet 1/0/11 through GigabitEthernet 1/0/13) connecting the three data monitoring devices to VLAN 10.

[DeviceA] vlan 10
[DeviceA-vlan10] port gigabitethernet 1/0/11 to gigabitethernet 1/0/13
[DeviceA-vlan10] quit

# Configure VLAN 10 as the remote probe VLAN of remote source mirroring group 1.

[DeviceA] mirroring-group 1 remote-probe vlan 10