O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

monitor session — global

Synopsis

monitor session session-number {source {interface interface-name}}
[range | rx | tx | both]
no monitor session session-number {source {interface interface-name}}
[range | rx | tx | both]
monitor session session-number {destination {interface interface-name}} [range]
no monitor session session-number {destination {interface interface-name}}
[range]
monitor session session-number
no monitor session session-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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required