PurposeCommand or Action
Specifies the RSPAN session number, the source interfaces and the
traffic direction to be removed.
no {source | destination} {single_interface
slot/subslot/port | single_vlan} [ , | - both | rx | tx]
Step 4
Example:
Router(config-mon-rspan-src)# no source
interface gigabitethernet 0/0/1 tx
• source—Enters source interfaces.
• slot/subslot/port—The location of the interface.
• single_interface—Specifies the Gigabit Ethernet or Ten
Gigabit Ethernet interface.
• single_vlan—Specifices the Vlan.
• both—(Optional) Monitors the received and the transmitted
traffic.
• rx—(Optional) Monitors the received traffic only.
• tx—(Optional) Monitors the transmitted traffic only.
Exits monitor session.
no monitor session session number
Example:
Router(config)# no monitor session 1
Step 5
Exits configuration mode.end
Example:
Router(config-mon-rspan-src)# end
Step 6
Sample Configurations
The following sections contain configuration examples for SPAN and RSPAN.
Configuration Example: Local SPAN
The following example shows how to configure local SPAN session 8 to monitor bidirectional traffic from
source interface Gigabit Ethernet interface to destination:
Router(config)# monitor session 8 type local
Router(config)# source interface gigabitethernet 0/0/10
Router(config)# destination interface gigabitethernet 0/0/3
Router(config)# no shut
Layer 2 Configuration Guide for Cisco NCS 4200 Series
21
Configuring Switched Port Analyzer
Sample Configurations