Cisco Nexus 7000 Series Reference Manual page 305

Nx-os system management command reference
Hide thumbs Also See for Nexus 7000 Series:
Table of Contents

Advertisement

M Commands
monitor session
The new session configuration is added to the existing session configuration. By default, the session is
created in the shut state, and the session is a local SPAN session.
For more information about the ERSPAN configuration, see the Cisco Nexus 7000 Series NX-OS System
Management Configuration Guide, Release 6.x.
This command does not require a license.
Examples
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 shut
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 terminate or extend RSPAN:
switch(config)# vlan 200
switch(config-vlan)# remote-span
switch(config-vlan)#
This example shows how to monitor RSPAN VLAN traffic using a local SPAN:
switch(config)# monitor session 1 type local
switch(config-monitor)# description RSPAN VLAN as source
switch(config-monitor)# source vlan 200
switch(config-monitor)# destination interface ethernet 1/2
switch(config-monitor)# no shut
switch(config-monitor)#
This example shows how to disable a SPAN session:
switch(config)# no monitor session 9 type local
This example show how to create an ERSPAN source:
switch# configure terminal
switch(config)# monitor session 1 type erspan-source
switch(config-monitor-erspan-src)# source int eth1/1
switch(config-monitor-erspan-src)# destination ip address 10.1.1.1
switch(config-monitor-erspan-src)# erspan-id 101
switch(config-monitor-erspan-src)# vrf erspan-vrf
switch(config-monitor-erspan-src)# filter vlan 100
switch(config-monitor-erspan-src)# no shut
Cisco Nexus 7000 Series NX-OS System Management Command Reference
277
OL-25806-03

Advertisement

Table of Contents
loading

Table of Contents