66-9
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
 
Chapter 66      Configuring SPAN and RSPAN
Configuring SPAN
Configuring SPAN Destinations
To configure the destination for a SPAN session, perform this task:
Note SPAN is limited to one destination port per session.
This example shows how to configure interface Fast Ethernet 5/48 as the destination for SPAN session 1:
Switch(config)# monitor session 1 destination interface fastethernet 5/48
Monitoring Source VLANs on a Trunk Interface
To monitor specific VLANs when the SPAN source is a trunk interface, perform this task:
This example shows how to monitor VLANs 1 through 5 and VLAN 9 when the SPAN source is a trunk 
interface:
Switch(config)# monitor session 2 filter vlan 1 - 5 , 9
Command Purpose
Switch(config)# [no] monitor session 
<session_number> destination interface 
<interface> [encapsulation {dot1q}] [ingress 
[vlan vlan_IDs] [learning}]
Specifies the SPAN session number (1 through 
6) and the destination interfaces or VLANs. 
For session_number, specifies the session 
number identified with this RSPAN session 
(1 through 6).
For interface, specifies the destination 
interface.
For vlan_IDs, specifies the destination VLAN.
Use the no keyword to restore the defaults.
Command Purpose
Switch(config)# [no] monitor session 
{session_number} filter {vlan vlan_IDs 
[, | - ]} | {packet-type {good | 
bad}} | {address-type {unicast | 
multicast | broadcast} [rx | tx | 
both]}
Monitors specific VLANs when the SPAN source is a 
trunk interface. The filter keyword restricts 
monitoring to traffic that is on the specified VLANs; it 
is typically used when monitoring a trunk interface. 
For session_number, specifies the session number 
identified with this RSPAN session (1 through 6).
For vlan_IDs, specifies the VLAN.
Monitoring is established through all the ports in the 
specified VLANs
Use the no keyword to restore the defaults.