Configuring ERSPAN
You can enable ERSPAN sessions to activate the copying of packets from sources to destinations. To enable
an ERSPAN session that is already enabled but operationally down, you must first shut it down and then
enable it. You can shut down and enable the ERSPAN session states with either a global or monitor
configuration mode command.
Procedure
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
OL-31641-01
Command or Action
configuration terminal
Example:
switch# configuration terminal
switch(config)#
monitor session {session-range | all} shut
Example:
switch(config)# monitor session 3
shut
no monitor session {session-range | all}
shut
Example:
switch(config)# no monitor session 3
shut
monitor session session-number type
erspan-source
Example:
switch(config)# monitor session 3
type erspan-source
switch(config-erspan-src)#
monitor session session-number type
erspan-destination
Example:
switch(config-erspan-src)# monitor
session 3 type erspan-destination
shut
Example:
switch(config-erspan-src)# shut
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
Shutting Down or Activating an ERSPAN Session
Purpose
Enters global configuration mode.
Shuts down the specified ERSPAN sessions. The
session range is from 1 to 48. By default, sessions
are created in the shut state.
• In Cisco Nexus 5000 and 5500
Note
platforms, two sessions can run
simultaneously.
• In Cisco Nexus 5600 and 6000
platforms, 16 sessions can run
simultaneously.
Resumes (enables) the specified ERSPAN sessions.
The session range is from 1 to 48. By default,
sessions are created in the shut state. Only two
sessions can be running at a time.
If a monitor session is enabled but its
Note
operational status is down, then to enable
the session, you must first specify the
monitor session shut command followed
by the no monitor session shut command.
Enters the monitor configuration mode for the
ERSPAN source type. The new session configuration
is added to the existing session configuration.
Enters the monitor configuration mode for the
ERSPAN destination type.
Shuts down the ERSPAN session. By default, the
session is created in the shut state.
213