EasyManua.ls Logo

Cisco Catalyst 2950 - Page 263

Cisco Catalyst 2950
376 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
10-23
Catalyst 2950 Desktop Switch Software Configuration Guide
78-11380-03
Chapter 10 Configuring the Switch Ports
Configuring SPAN
Creating a SPAN Session and Specifying Ports to Monitor
Beginning in privileged EXEC mode, follow these steps to create a SPAN session and specify the source
(monitored) and destination (monitoring) ports:
To remove the entire SPAN session, use the no monitor session session_number global configuration
command. To remove a source or destination port from the SPAN session, use the no monitor session
session_number source interface interface-id global configuration command or the no monitor session
session_number destination interface interface-id global configuration command.
This example shows how to set up a SPAN session, session 1, for monitoring source port traffic to a
destination port. First, any existing SPAN configuration for session 1 is cleared, and then bidirectional
traffic is mirrored from source port 1 to destination port 2.
Switch(config)# no monitor session 1
Switch(config)# monitor session 1 source interface gigabitethernet0/1
Switch(config)# monitor session 1 destination interface gigabitethernet0/2
Switch(config)# end
Switch# show monitor session 1
Session 1
---------
Source Ports:
RX Only: None
TX Only: None
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
monitor session session_number source
interface interface-id [, | -][both | rx | tx]
Specify the SPAN session and the source port (monitored port).
For session_number,specify1.
For interface-id, specify the source port to monitor. Valid interfaces
include physical interfaces and port-channel logical interfaces
(port-channel port-channel-number).
(Optional) [, | -] Specify a series or range of interfaces. This option
is valid when monitoring only received traffic. Enter a space after the
comma; enter a space before and after the hyphen.
(Optional) Specify the direction of traffic to monitor. If you do not
specify a traffic direction, the source interface sends both transmitted
andreceivedtraffic.
bothMonitor both received and transmitted traffic.
rxMonitor received traffic.
txMonitor transmitted traffic.
Step 3
monitor session session_number
destination interface interface-id
Specify the SPAN session and the destination port (monitoring port).
For session_number,specify1.
For interface-id, specify the destination port. Validinterfaces include
physical interfaces.
Step 4
end Return to privileged EXEC mode.
Step 5
show monitor [session session_number] Verify your entries.
Step 6
copy running-config startup-config (Optional) Save your entries in the configuration file.

Table of Contents

Other manuals for Cisco Catalyst 2950

Related product manuals