Port Mirroring
8-14 Port Configuration
Remote port mirroring is an extension to port mirroring which facilitates simultaneous mirroring
of multiple source ports on multiple switches across a network to one or more remote destination
ports.
Remote port mirroring involves configuration of the following port mirroring related parameters:
1. Configuration of normal port mirroring source ports and one destination port on all switches,
as described above.
2. Configuration of a mirror VLAN, which is a unique VLAN on which mirrored packets
traverse across the network. The mirror VLAN has to be configured on ALL switches across
the network along which mirrored traffic traverses, from the switch where the source ports
reside to the switch where the mirrored packets are sniffed and/or captured.
You must ensure that switches involved are properly configured to facilitate correct remote port
mirroring operation. The following points in particular need to be observed:
• On the source switch, the correct destination port must be chosen to ensure that there is an
egress path from that port to the desired remote destination(s).
• All ports on the path from the source port to the remote destination must be members of the
mirror VLAN.
• On switches on the path from the source port to the remote destination, egress tagging has to
be enabled on potential egress ports for the mirror VLAN.
With the introduction of remote port mirroring:
• Configured mirror destination ports will NOT lose their switching or routing properties.
• On switches where the mirror VLAN has been configured, any traffic on that VLAN will be
flooded on the VLAN. It will never be unicast, even if the source address of the traffic as been
learned on the switch.
Configuring Remote Port Mirroring
Use the set mirror vlan command to assign a VLAN to be reserved for mirroring. If a mirrored
VLAN is created, all mirrored traffic will egress VLAN tagged. All traffic on the mirror VLAN will
be flooded
Use the show port mirroring command to display the VLANs configured for remote port
mirroring.
Use the clear mirror vlan command to clear the VLAN to be reserved for mirroring traffic.
The following example assigns a VLAN for mirroring traffic and then shows the configured port
mirroring with the show port mirror command.
C5(su)->set mirror vlan 2
C5(su)->show port mirroring
Port Mirroring
==============
Source Port = ge.1.1
Target Port = ge.1.10
Frames Mirrored = Rx and Tx
Port Mirroring status enabled
Mirror Vlan = 2