S e n d c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
-SM-121
Cisco Nexus 3000 Series NX-OS System Management Command Reference
OL-29557-04
Chapter System Management Commands
monitor session
This example shows how to enter the monitor configuration mode for configuring SPAN session
number 9 for analyzing traffic between ports:
switch#
configure terminal
switch(config)#
monitor session 9 type local
switch(config-monitor)#
description A Local SPAN session
switch(config-monitor)#
source interface ethernet 1/1
switch(config-monitor)#
destination interface ethernet 1/2
switch(config-monitor)#
no shutdown
switch(config-monitor)#
This example shows how to configure any SPAN destination interfaces as Layer 2 SPAN monitor ports
before activating the SPAN session:
switch#
configure terminal
switch(config)#
interface ethernet 1/2
switch(config-if)#
switchport
switch(config-if)#
switchport monitor
switch(config-if)#
no shutdown
switch(config-if)#
This example shows how to configure a typical SPAN destination trunk interface:
switch#
configure terminal
switch(config)#
interface Ethernet1/2
switch(config-if)#
switchport
switch(config-if)#
switchport mode trunk
switch(config-if)#
switchport monitor
switch(config-if)#
switchport trunk allowed vlan 10-12
switch(config-if)#
no shutdown
switch(config-if)#
This example shows how to create an ERSPAN session:
switch#
configure terminal
switch(config)#
monitor session 1 type erspan-source
switch(config-erspan-src)#
Related Commands
Command
Description
description (SPAN,
ERSPAN)
Adds a description to identify the SPAN session.
destination (ERSPAN)
Configures the destination IP port for an ERSPAN packet.
ip dscp (ERSPAN)
Sets the DSCP value for an ERSPAN packet.
ip ttl (ERSPAN)
Sets the time-to-live (TTL) value for an ERSPAN packet.
mtu (ERSPAN)
Sets the maximum transmission value (MTU) for ERSPAN packets.
show monitor session
Displays SPAN session configuration information.
source (SPAN,
ERSPAN)
Adds a SPAN source port.