Cisco Systems WSC2960X24PSL no monitor session sessionnumber all, local remote, both rx tx, Step

Models: WSC2960X24TSL C2960XSTACK WSC2960X24PDL WSC2960X24TSLL WSC2960X24PSL WSC2960X48TSL WSC2960X24TDL

1 112
Download 112 pages 36.97 Kb
Page 93
Image 93
no monitor session {session_number all

Configuring SPAN and RSPAN

Creating a Local SPAN Session and Configuring Incoming Traffic

 

Command or Action

Purpose

Step 2

no monitor session {session_number all

Removes any existing SPAN configuration for the session.

 

local remote}

For session_number, the range is 1 to 66.

 

 

 

Example:

allRemoves all SPAN sessions.

 

Switch(config)# no monitor session all

localRemoves all local sessions.

remoteRemoves all remote SPAN sessions.

Step 3

monitor session session_number source

Specifies the SPAN session and the source port (monitored port).

 

{interface interface-id vlan vlan-id} [, -]

 

 

[both rx tx]

 

Example:

Switch(config)# monitor session 2 source gigabitethernet1/0/1 rx

Step 4 monitor session session_number destination {interface interface-id[, -] [encapsulation replicate] [ingress {dot1q vlan vlan-id isl untagged vlan vlan-id vlan vlan-id}]}

Example:

Switch(config)# monitor session 2 destination interface gigabitethernet1/0/2 encapsulation replicate ingress dot1q vlan 6

Specifies the SPAN session, the destination port, the packet encapsulation, and the ingress VLAN and encapsulation.

For session_number, specify the session number entered in Step 3.

For interface-id, specify the destination port. The destination interface must be a physical port; it cannot be an EtherChannel, and it cannot be a VLAN.

(Optional) [, -] Specify a series or range of interfaces. Enter a space before and after the comma or hyphen.

(Optional) encapsulation replicate specifies that the destination interface replicates the source interface encapsulation method. If not selected, the default is to send packets in native form (untagged).

ingress enables forwarding of incoming traffic on the destination port and to specify the encapsulation type:

dot1q vlan vlan-idAccepts incoming packets with IEEE 802.1Q encapsulation with the specified VLAN as the default VLAN.

islForwards ingress packets with ISL encapsulation.

untagged vlan vlan-idor vlan vlan-idAccepts incoming packets with untagged encapsulation type with the specified VLAN as the default VLAN.

dot1q vlan vlan-idAccept incoming packets with IEEE 802.1Q encapsulation with the specified VLAN as the default VLAN.

islForward ingress packets with ISL encapsulation.

Catalyst 2960-X Switch Network Management Configuration Guide, Cisco IOS Release 15.0(2)EX

OL-29044-01

81

Page 93
Image 93
Cisco Systems WSC2960X24PSL no monitor session sessionnumber all, local remote, monitor session sessionnumber source, Step