user manual

PurposeCommand or Action
Removes any existing SPAN configuration for the session.
no monitor session {session_number | all |
local | remote}
Step 2
For session_number, the range is 1 to 66.
Example:
Switch(config)# no monitor session all
allRemoves all SPAN sessions.
localRemoves all local sessions.
remoteRemoves all remote SPAN sessions.
Specifies the SPAN session and the source port (monitored port).
monitor session session_number source
{interface interface-id | vlan vlan-id} [, | -]
[both | rx | tx]
Step 3
Example:
Switch(config)# monitor session 2
source gigabitethernet1/0/1 rx
Specifies the SPAN session, the destination port, the packet encapsulation,
and the ingress VLAN and encapsulation.
monitor session session_number destination
{interface interface-id [, | -] [encapsulation
Step 4
replicate] [ingress {dot1q vlan vlan-id | isl
| untagged vlan vlan-id | vlan vlan-id}]}
For session_number, specify the session number entered in Step 3.
Example:
Switch(config)# monitor session 2
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.
destination interface
gigabitethernet1/0/2 encapsulation
replicate ingress dot1q vlan 6
(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-id or 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
Configuring SPAN and RSPAN
Creating a Local SPAN Session and Configuring Incoming Traffic