51-16
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 51 Configuring SPAN and RSPAN
Configuration Example
This example shows how to configure a session to accept only unicast packets in the ingress direction:
Switch(config)# monitor session 1 filter address-type unicast rx
Configuration Example
The following is an example of SPAN configuration using some of the SPAN enhancements.
In this example, you configure a session to sniff unicast traffic arriving on interface Gi1/1. The traff ic is
mirrored out of interface Gi1/2 with ISL encapsulation. Ingress traffic is permitted.
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# monitor session 1 source interface gi1/1 rx
Switch(config)# monitor session 1 destination interface gi1/2 encapsulation isl ingress
Switch(config)# monitor session 1 filter address-type unicast rx
Switch(config)# exit
Switch# show monitor
Session 1
---------
Type : Local Session
Source Ports :
RX Only : Gi1/1
Destination Ports : Gi1/2
Encapsulation : ISL
Ingress : Enabled
Learning : Disabled
Filter Addr Type :
RX Only : Unicast
Configuring RSPAN
This section describes how to configure RSPAN on your switch and it contains this configuration
information:
RSPAN Configuration Guidelines, page 51-16
Creating an RSPAN Session, page 51-17
Creating an RSPAN Destination Session, page 51-19
Creating an RSPAN Destination Session and Enabling Ingress Traffic, page 51-20
Removing Ports from an RSPAN Session, page 51-21
Specifying VLANs to Monitor, page 51-22
Specifying VLANs to Filter, page 51-23

RSPAN Configuration Guidelines

Follow these guidelines when configuring RSPAN:
Note Since RSPAN VLANs have special properties, you should reserve a few VLANs across your network
for use as RSPAN VLANs; do not assign access ports to these VLANs.