34-10
Cisco 7600 Series Router Cisco IOS Software Configuration Guide—12.1E
78-14064-04
Chapter 34 Configuring Local SPAN and RSPAN
Configuring Local SPAN and RSPAN
Note In the no monitor session range command, do not enter spaces before or after the dash. If
you enter multiple ranges, do not enter spaces before or after the commas.
This example shows how to configure session 1 to monitor bidirectional traffic from Fast Ethernet
port 5/1:
Router(config)# monitor session 1 source interface fastethernet 5/1
Monitoring Specific Source VLANs on a Source Trunk Port
To monitor specific VLANs when the local or RSPAN source is a trunk port, perform this task:
This example shows how to monitor VLANs 1 through 5 and VLAN 9 when the source is a trunk port:
Router(config)# monitor session 2 filter vlan 1 - 5 , 9
Configuring Local SPAN and RSPAN Destinations
These sections describe how to configure local SPAN and RSPAN destinations:
• Configuring a Destination Port as an Unconditional Trunk, page 34-10
• Configuring a Local or RSPAN Destination, page 34-11
Configuring a Destination Port as an Unconditional Trunk
To tag the monitored traffic with Release 12.1(13)E and later releases, configure the destination port as
a trunk.
To configure the destination port as a trunk, perform this task:
Command Purpose
Router(config)# monitor session session_number filter
{vlan_ID} [, | -]
Monitors specific VLANs when the source is a trunk port.
Router(config)# no monitor session session_number
filter {vlan_ID}
Clears trunk source configuration.
Command Purpose
Step 1
Router(config)# interface type
1
slot/port
1. type = ethernet, fastethernet, gigabitethernet, or tengigabitethernet
Selects the LAN port to configure.
Step 2
Router(config-if)# switchport
Configures the LAN port for Layer 2 switching (required
only if the LAN port is not already configured for Layer
2 switching).
Step 3
Router(config-if)# switchport trunk encapsulation
{isl | dot1q}
Configures the encapsulation, which configures the Layer
2 switching port as either an ISL or 802.1Q trunk.
Step 4
Router(config-if)# switchport mode trunk
Configures the port to trunk unconditionally.
Step 5
Router(config-if)# switchport nonegotiate
Configures the trunk not to use DTP.