
In this mode the source device copies the packets that enter the mirroring source to the reflector port, and the reflector port floods the mirrored packet in the remote mirroring VLAN. The mirrored packet is broadcast through the intermediate devices and reaches the destination device. When the destination device receives it, it checks the VLAN ID: if the ID is the same as that of the remote mirroring VLAN, the mirrored packet is forwarded out of the destination port to the monitoring device.
A reflector port has to be configured for this mode. Points to note:
Configure the destination device first, then the intermediate devices, and finally the source device, so that mirrored traffic is forwarded correctly.
Step 1: Create VLAN 10 as the remote mirroring VLAN
[Device] vlan 10
Step 2: Configure FGE1/0/6 as a trunk port and permit VLAN 10 on it
[Device] interface fortygige 1/0/6
[Device-FortyGigE1/0/6] port link-type trunk
[Device-FortyGigE1/0/6] port trunk permit vlan 10
Step 3: Create remote destination mirroring group 2
[Device] mirroring-group 2 remote-destination
Step 4: Set the remote mirroring VLAN of group 2 to VLAN 10 and the destination port to FGE1/0/7; disable spanning tree on that port and add it to VLAN 10
[Device] mirroring-group 2 remote-probe vlan 10
[Device] interface fortygige 1/0/7
[Device-FortyGigE1/0/7] mirroring-group 2 monitor-port
[Device-FortyGigE1/0/7] undo stp enable
[Device-FortyGigE1/0/7] port access vlan 10
Configuration example — intermediate device
Step 1: Create VLAN 10 as the remote mirroring VLAN
[Device] vlan 10
Step 2: Configure FGE1/0/4 and FGE1/0/5 as trunk ports and permit VLAN 10 on them
[Device] interface fortygige 1/0/4
[Device-FortyGigE1/0/4] port link-type trunk
[Device-FortyGigE1/0/4] port trunk permit vlan 10
[Device] interface fortygige 1/0/5
[Device-FortyGigE1/0/5] port link-type trunk
[Device-FortyGigE1/0/5] port trunk permit vlan 10
Configuration example — source device
Step 1: Create remote source mirroring group 1
[Device] mirroring-group 1 remote-source
Step 2: Create VLAN 10 as the remote mirroring VLAN
[Device] vlan 10
Step 3: Set the remote mirroring VLAN of group 1 to VLAN 10, the source port to FGE1/0/1 and the reflector port to FGE1/0/2
[Device] mirroring-group 1 remote-probe vlan 10
[Device] mirroring-group 1 mirroring-port fortygige 1/0/1 inbound
[Device] mirroring-group 1 reflector-port fortygige 1/0/2
This operation may delete all settings made on the interface.
Continue? [Y/N]: y
Step 4: Configure FGE1/0/3 as a trunk port and permit VLAN 10 on it
[Device] interface fortygige 1/0/3
[Device-FortyGigE1/0/3] port link-type trunk
[Device-FortyGigE1/0/3] port trunk permit vlan 10
Points to note for the reflector port
01 Choose an unused port on the device as the reflector port, and do not connect a cable to it; otherwise mirroring will not work properly.
02 When a port is configured as the reflector port it is restored to the default configuration, and no other service configuration can be applied to it.
03 A mirroring group can have only one reflector port, and that port cannot be an aggregate interface or a member port of one.