Cisco Catalyst SPAN/RSPAN configuration

Contributor Icon Contributed by abanks Date Icon February 12, 2004  
Tag Icon Tagged: Cisco switch

Configuration for SPAN and RSPAN. SPAN mirrors a port within the same switch, while RSPAN mirrors a port in a remote switch.


In CatOS, use the following syntax to establish a SPAN session:

set span (source port|source vlan) (destination port) (rx|tx|both)

For example:
set span 3/1 3/2 both
will mirror all traffic from 3/1 to 3/2.

Older workgroup switches follow this syntax:interface fastethernet 1/5
port monitor 1/2 both

to mirror traffic from 1/2 to 1/5.

Newer IOS on workgroup switches use the monitor session command:interface fastethernet 1/5
monitor session 1 source interface 1/2 both

ormonitor session 1 source vlan 100 both

For RSPAN, first configure an RSPAN VLAN:set vlan 200 rspan
This VLAN will be distributed over VTP, I would presume.

Then, configure the RSPAN source on the remote switch:set rspan source 3/1 both
orset rspan source 100 both

Finally, a destination must be defined:set rspan destination 4/5

Previous recipe | Next recipe |
 
blog comments powered by Disqus