1112
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter M Commands
monitor session
Examples This example shows how to create a SPAN session:
switch# configure terminal
switch(config)# monitor session 2
switch(config)#
This example shows how to enter the monitor configuration mode for configuring SPAN session number
9 for analyzing traffic between ports:
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
This example shows how to configure any SPAN destination interfaces as Layer 2 SPAN monitor ports
before activating the SPAN session:
switch(config)# interface ethernet 1/2
switch(config-if)# switchport
switch(config-if)# switchport monitor
switch(config-if)# no shutdown
This example shows how to configure a typical SPAN destination trunk interface:
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
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.
erspan-id (ERSPAN) Sets the flow ID for an ERSPAN session.
ip dscp (ERSPAN) Sets the DSCP value for an ERSPAN packet.
ip prec (ERSPAN) Sets the IP precedence 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.