Port mirror Catalyst 6500 Series Cisco IOS Command

xiaoxiao2021-03-05  27

Catalyst 6500 Series Cisco IOS Command Reference, 12.1 E

Monitor session

To start a new SPAN or RSPAN session, add or delete interfaces or VLANs to or from an existing SPAN or RSPAN session, filter SPAN or RSPAN traffic to specific VLANs, or delete a SPAN or RSPAN session, use the monitor session command. Use the OR DELETE A Source VLAN from The span or iv or rspan session.

Monitor session session source {{interface type} [{vlan vlan-id} [{remote vlan} | {remote vlan rspan-vlan-id}}

Monitor session session destination {{interface type} | {transote vlan-id} | {analyysis-module slot-number} | {data-port port-number}}

Monitor Session Session-Number Filter VLAN VLAN-RANGE

No Monitor Session {{Range Session-Range} | Local | Remote | All | Session}

No Monitor Session Session Source {{interface type} [{{vlan vlan-id} [{trans | tx | BOTH]} | {remote VLAN RSPAN-VLAN-ID}}

No Monitor Session Session Destination {{interface type} | {transote vlan-id} | {, {data-port port-number}}}}}}}}

SYNTAX DESCRIPTION

session Number of the SPAN session; valid values ​​are from 1 to 66. source SPAN source interface type Interface type;.. see the "Usage Guidelines" section for formatting information vlan vlan-id VLAN ID; valid values ​​are from 1 to 4094. rx (Optional) Monitor-received traffic only. tx (Optional) Monitor-transmitted traffic only. both (Optional) Monitor-received and monitor-transmitted traffic. remote vlan rspan-vlan-id Specifies RSPAN VLAN as destination VLANs. analysis-module slot-number Network analysis module number; see the "Usage Guidelines" section for additional information data-port port-number Data-port number;... see the "Usage Guidelines" section for additional information destination SPAN destination interface vlan vlan-id VLAN ID;.... valid values ​​are from 1 to 4094. See the "Usage Guidelines" section for formatting information filter vlan vlan-range Limits SPAN source traffic to specific VLANs range session-range Range of sessions local local session remote Remote session . All all sessions.defaults

Both

Command modes

Global Configuration

Command History

Release Modification 12.0 (7) XE Support for this command was introduced on the Catalyst 6500 series switches. 12.1 (1) E Support for this command on the Catalyst 6500 series switches was extended to the 12.1 E release. 12.1 (3a) E3 The number Of Valid Values ​​for Port-Channel-Number Was Changed; See The "Usage Guidelines" Section for Valid Values. 12.1 (5C) Exped SPN Support Restrictions Were Added: •

IF Your Catalyst 6500 Series Switch Has A Switch Fabric Module Installed, Span IS Supported Among Supervisor Engines and Nonfabric-enabled modules.

If your Catalyst 6500 series switch does not have a Switch Fabric Module installed, SPAN is supported on all modules including fabric-enabled modules. • SPAN on DFC-equipped modules is not supported. 12.1 (11b) E This command was changed to include the POS, ATM, AND GE-WAN Keywords. 12.1 (11B) E This Command Was Changed To Support Span on DFC-Equipped Modules. 12.1 (11B) EX The Command Was Changed To Support Extended-Range Vlans. 12.1 (13) E this Command Was Changed to Support Rspan.

USAGE Guidelines

Use these Formatting Guidelines WHEN Configuring Monitor Sessions:

Interface and single-interface formats are type slot / port; valid value for Type Aree Ethernet, Fastethernet, GigabitEthernet, or tengigabitEthernet.

An interface-list is a list of interfaces That Are Separated by Commas. Insert A Space Before and After Each Comma As Shown in this Example:

SINGLE-Interface, Single-Interface, Single-Interface ...

An Interface-Range IS A Range of Interfaces Separated by Dashes. Insert a Space Before and After Each Dash. To Enter Multiple Ranges, Separate Each Range with a comma as shown in this Example:

TYPE SLOT / FIRST-Port - Last-Port, First-Port - Last-Port

A Mixed-Interface-List Is A Mixed List of Interfaces. Insert a Space Before and After Each Dash and Comma As Shown in this Example:

SINGLE-Interface, Interface-Range, ... in Any ORDER.

A SINGLE-VLAN IS An ID Number of a Single VLAN; Valid Values ​​Are FROM 1 to 4094.

A vlan-list is a list of vlan ids what are subjectid by Commas. An Example Is Shown as Follows:

SINGLE-VLAN, SINGLE-VLAN, SINGLE-VLAN ...

A VLAN-RANGE IS A RANGE OF VLAN IDS That Are Separated by Dashes. AN Example Is Shown As Follows:

First-VLAN-ID - Last-VLAN-ID

A Mixed-VLAN-List Is A Mixed List of VLAN IDS. Insert A Space Before and After Each Dash. TO ENTER MULTIPLE RANGES, SEPARATE EACH VLAN ID WITH A COMMA AS Shown In this Example: SINGLE-VLAN, VLAN-RANGE,. .. in any ORDER

.

THE NUMBER OF VALID VALUES for Port-Channel Number Depends on The Software Release. For Releases Prior To Release 12.1 (3A) E3, Valid Values ​​Are From 1 To 256; for Releases 12.1 (3A) E3, 12.1 (3A) E4, AND 12.1 (4) E1, VALID VALUES ARE from 1 to 64. Release 12.1 (5C) EX AND LATER Support a Maximum of 64 Values ​​Ranging from 1 to 256. Release 12.1 (13) E and Later Support a Maximum of 64 Values ​​Ranging from 34 VALUES RANGING FROM 1 to 282; Values ​​257 to 282 AresuTed on the csm and fwsm only.

If your system is configured with a Supervisor Engine 1, valid values ​​for vlan-id are from 1 to 1005. If your system is configured with a Supervisor Engine 2, valid values ​​for vlan-id are from 1 to 4094. Extended-range VLANs Are Not Supported On Systems Configured With A Supervisor Engine 1.

You canNot Share Destination Interfaces Among Span Sessions. For Example, a Single Destination Interface CAN Belong To One Span Session Only And Cannot Be Configured As a Destination Interface In another span session.

You can configure up to 64 span destination interfaces but you can have one egress span source interface and up to 64 ingress source interfaces only.

A particular SPAN session can either monitor VLANs or monitor individual interfaces-you can not have a SPAN session that monitors both specific interfaces and specific VLANs. If you first configure a SPAN session with a source interface, and then try to add a source VLAN to the same SPAN session, you will get an error. you will also get an error if you configure a SPAN session with a source VLAN and then try to add a source interface to that session. you must first clear any sources for a SPAN session before switching To another Type of Source.if You Enter The Filter Keyword ON A Monitored Trunk Interface, Only Traffic On The Set of Specified Vlans IS Monitored.

Port channel interfaces display in the list of interface options if you have them configured. VLAN interfaces are not supported. However, you can span a particular VLAN by entering the monitor session session source vlan vlan-id command.

Examples

This Example Shows How To Configure Multiple Sources for A Session:

Router (config) # Monitor session 2 Source Interface Fastethernet 5/15, 7/3 RX

Router (config) # Monitor session 2 Source Interface GigabitEthernet 1/2 TX

Router # Monitor Session 2 Source Interface Port-Channel 102

Router (config) # Monitor session 2 Source Filter VLAN 2 - 3

Router (config) # Monitor Session 2 Destination Remote VLAN 901

This Example Shows How To Configure An Rspan Destination In The Final Switch (Rspan Destination Session):

Router (config) # Monitor session 8 Source Remote VLAN 901

Router (config) # Monitor session 8 Destination Interface Fastethernet 1/2, 2/3

This Example Shows How To Clear The Configuration For Sessions 1 and 2:

Router (config) # no monitor session 1 - 2

Router (config) #

This Example Shows How To Clear The Configuration for All Sessions: Router (config) # no monitor session all

Router (config) #

This Example Shows How To Clear The Configuration for All Remote sessions:

Router (config) # no monitor session remote

Router (config) #

Related commands

Remote-Spanshow Monitor Session

Remote-span

To configure a vlan as an rspan vlan

Remote-span

SYNTAX DESCRIPTION

This Command Has No Arguments or Keywords.

DEFAULTS

This Command Has No Default Settings.

Command modes

Config-VLAN

Command History

Release Modification 12.1 (13) E Support for this Command Was Introduces on The Catalyst 6500 Series Switches.

USAGE Guidelines

This Command is Not Supported in The VLAN Database Mode.

You can Enter The show VLAN Remote-Span Command To Display The Rspan Vlans in The Catalyst 6500 Series Switch.

Examples

This Example Shows How To Configure A VLAN As an Rspan VLAN:

Router (config-vlan) # remote-span

Router (config-vlan)

This Example Shows How To Remove The Rspan Designation:

Router (config-vlan) # no remote-span

Router (config-vlan)

Related commands

Show Vlan Remote-SPAN

Show Monitor Session

To Display Information About The Span and Rspan Sessions, Use the show monitor session command.

Show Monitor Session [{Range session-range} | local | trans | all | session | detail]

SYNTAX DESCRIPTION

range session-range (Optional) Displays a range of sessions;.. valid values ​​are from 1 to 66. See the "Usage Guidelines" section for additional information local (Optional) Displays only local SPAN sessions remote (Optional) Displays both RSPAN source And Destination sessions. All (optional) DISPLAYS All sessions. session (optional) Number of the session; Valid Values ​​Are from 1 to 66. Detail (optional) Displays Detailed Information.defaults

This Command Has No Default Settings.

Command modes

EXEC

Command History

Release Modification 12.0 (7) XE Support for this command was introduced on the Catalyst 6500 series switches. 12.1 (1) E Support for this command on the Catalyst 6500 series switches was extended to the 12.1 E release. 12.1 (5c) EX These SPAN Support restrictions were added: •

IF Your Switch Has A Switch Fabric Module Installed, Span Is Supported Among Supervisor Engines And Nonfabric-Enabled Modules.

IF Your Switch Does Not Have A Switch Fabric Module Installed, Span Is Supported On All Modules Including Fabric-Enabled Modules.

SPAN on DFC-equipped modules is not supported. 12.1 (8a) E Support for this command on the Catalyst 6500 series switches was extended to the 12.1 E release. 12.1 (13) E This command was changed to support the range session-range, Local, Detail, Remote, And All Options and to Change The maximum number of valid sessions from 1 to 66.

USAGE Guidelines

.

You can Enter Multiple Ranges by Separating The Ranges with a comma.

If you enter the show monitor session commandion, the information for all sess displayed.examples

This Example Shows How To Display The Saved Version of The Monitor Configuration for A Specific Session:

Router # show monitor session 2

Session 2

----------------

TYPE: Remote Source Session

Source Ports:

RX ONLY: FA1 / 1-3

DEST RSPAN VLAN: 901

Router #

This Example Shows How To Display The Detailed Information from A Saved Version of The Monitor Configuration for a Specific Session:

Router # show Monitor Session 2 Detail

Session 2

----------------

TYPE: Remote Source Session

Source ports:

RX ONLY: FA1 / 1-3

TX ONLY: NONE

Both: None

Source VLANS:

RX ONLY: NONE

TX ONLY: NONE

Both: None

Source Rspan VLAN: NONE

Destination Ports: None

Filter VLANS: NONE

DEST RSPAN VLAN: 901

Router #

Related commands

Monitor sessionRemote-span

Show Vlan Remote-SPAN

To Display A List of Rspan VLANS, Use the show VLAN Remote-span commnd.

Show Vlan Remote-SPAN

SYNTAX DESCRIPTION

This Command Has No Arguments or Keywords.

DEFAULTS

This Command Has No Default Settings.

Command modes

EXEC

Command History

Release Modification 12.1 (13) e this Command Was Introducesd on The Catalyst 6500 Series Switches.

Examples

This Example Shows How To Display A List of Remote Span VLANS:

Router # show VLAN Remote-SPAN

Remote Span VLANS

-------------------------------------------------- ----------------------------

2, 20

Related commands

Remote-spanvlan (config-vlan submode)

转载请注明原文地址:https://www.9cbs.com/read-33885.html

New Post(0)