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
PurposeCommand or Action
Enters global configuration mode.configuration terminal
Example:
switch# configuration terminal
switch(config)#
Step 1
Shuts down the specified ERSPAN sessions. The
session range is from 1 to 48. By default, sessions
are created in the shut state.
monitor session {session-range | all} shut
Example:
switch(config)# monitor session 3
shut
Step 2
Note
•
In Cisco Nexus 5000 and 5500
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,
no monitor session {session-range | all}
shut
Step 3
sessions are created in the shut state. Only two
sessions can be running at a time.
If a monitor session is enabled but its
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.
Note
Example:
switch(config)# no monitor session 3
shut
Enters the monitor configuration mode for the
ERSPAN source type. The new session configuration
is added to the existing session configuration.
monitor session session-number type
erspan-source
Example:
switch(config)# monitor session 3
type erspan-source
switch(config-erspan-src)#
Step 4
Enters the monitor configuration mode for the
ERSPAN destination type.
monitor session session-number type
erspan-destination
Example:
switch(config-erspan-src)# monitor
session 3 type erspan-destination
Step 5
Shuts down the ERSPAN session. By default, the
session is created in the shut state.
shut
Example:
switch(config-erspan-src)# shut
Step 6
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
OL-31641-01 213
Configuring ERSPAN
Shutting Down or Activating an ERSPAN Session