1-10
Remote Port Mirroring Configuration Example
Network requirements
On the network shown in
Figure 1-4
,
z
Department 1 is connected to port GigabitEthernet 1/0/1 of Device A.
z
Department 2 is connected to port GigabitEthernet 1/0/2 of Device A.
z
The trunk port GigabitEthernet 1/0/3 on Device A connects to the trunk port GigabitEthernet 1/0/1
on Device B.
z
The trunk port GigabitEthernet 1/0/2 on Device B connects to the trunk port GigabitEthernet 1/0/1
on Device C.
z
The Server connects to port GigabitEthernet 1/0/2 on Device C.
To monitor the inbound/outbound packets of Department 1 and Department 2 on the Server, configure
remote port mirroring as follows:
z
On Device A, create a remote source mirroring group. For the mirroring group, configure VLAN 2
as the remote probe VLAN, ports GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 as mirroring
ports, and port GigabitEthernet 1/0/4 as the reflector port.
z
Configure port GigabitEthernet 1/0/3 on Device A, ports GigabitEthernet 1/0/1 and GigabitEthernet
1/0/2 on Device B, and port GigabitEthernet 1/0/1 on Device C as trunk ports that permit the
packets of VLAN 2 to pass through.
z
Create a remote destination mirroring group on Device C. Configure VLAN 2 as the remote probe
VLAN and port GigabitEthernet 1/0/2, to which the server is connected, as the monitor port.
Figure 1-4
Network diagram for remote port mirroring configuration
Configuration procedure
1) Configure Device A (the source device)
# Create a remote source mirroring group.
<DeviceA> system-view
[DeviceA] mirroring-group 1 remote-source
# Create VLAN 2.
[DeviceA] vlan 2
[DeviceA-vlan2] quit