You can mirror traffic from any source port to a destination port for real-time
analysis. You can then attach a logic analyzer or RMON probe to the destination
port and study the traffic crossing the source port in a completely unobtrusive
manner.
The destination port is set by specifying an Ethernet interface.
When mirroring port traffic, the destination port must be included in the
same VLAN as the source port. See VLAN Commands.
There are some differences in the mirror implementation for the PowerConnect
switches:
PowerConnect 3248: You can create up to nine sessions, each with one
or more source ports and one destination port. However, you should avoid
sending too much traffic to the destination port from multiple source
ports. Also, the source and destination port have to be either both in
the port range 1-24 or 49 or both in the port range 25-48 or 50.
PowerConnect 5224: You can create a single session, with one source
port and one destination port. Also, the source and destination port have
to be either both in the port range 1-12 or both in the port range 13-24.
Example
The following example configures the switch to mirror all packets from port
5 to port 6:
Console(config)#interface
ethernet 1/6
Console(config-if)#port monitor ethernet 1/5 both
Console(config-if)#