Name
monitor session — global
Synopsis
monitor sessionsession-number{source {interfaceinterface-name}} [range| rx | tx | both] no monitor sessionsession-number{source {interfaceinterface-name}} [range| rx | tx | both] monitor sessionsession-number{destination {interfaceinterface-name}} [range] no monitor sessionsession-number{destination {interfaceinterface-name}} [range] monitor sessionsession-numberno monitor sessionsession-number
Configures
Switched Port Analyzer (SPAN)
Default
None
Description
This command enables the Switched Port Analyzer or SPAN, which allows a port to “monitor” traffic that’s sent or received on another port or VLAN. For more information, see Chapter 14. Use the command show monitor to display the SPAN session information.
-
session-number The SPAN session number. Valid values are 1 and 2.
-
source Specifies the SPAN source.
-
destination Specifies the SPAN destination.
-
interface-name Optional. The interface type and number.
-
range Optional. Specifies a list of VLANs to use for SPAN. It can be a list or a range. For example, “100,200,205,305” or “100-300”. Valid values are 1 to 1,005.
-
rx Optional. Restricts monitor to received traffic only.
-
tx Optional. Restricts monitor to transmitted traffic only.
-
both Optional. Monitor for both received and transmitted traffic.