Monitoring Port Traffic

Unanswered Question
Apr 5th, 2007

Good Morning!

If I want to plug a protocol analyzer in to a switch to analyze data passing through another port, what is the command to copy what?s happening on one port to the port I plug the analyzer in to.



I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Craig Balfour Thu, 04/05/2007 - 03:37

You can use the span and rspan IOS commands to mirror traffic from one port to another. See

for detailed information on configuring span and rspan.

The basic commands (on a Catalyst 2960) are:

no monitor session 1

monitor session 1 source interface gi0/1

monitor session 1 destination interface gi0/2 encapsulation replicate

This will mirror traffic from gi0/1 to gi0/2 on the same switch.


This Discussion