Configuring an ERSPAN Destination Session
You can configure an ERSPAN destination session to copy packets from a source IP address to destination
ports on the local device. By default, ERSPAN destination sessions are created in the shut state.
Before you begin
Ensure that you have already configured the destination ports in monitor mode.
Procedure
PurposeCommand or Action
Enters global configuration mode.config t
Example:
Step 1
switch# config t
switch(config)#
Enters interface configuration mode on the
selected slot and port or range of ports.
interface ethernet slot/port[-port]
Example:
Step 2
switch(config)# interface ethernet 2/5
switch(config-if)#
Configures switchport parameters for the
selected slot and port or range of ports.
switchport
Example:
Step 3
switch(config-if)# switchport
Configures the following switchport modes
for the selected slot and port or range of ports:
switchport mode [access | trunk]
Example:
Step 4
• access
switch(config-if)# switchport mode trunk
• trunk
Configures the switch interface in monitor
mode.
switchport monitor
Example:
Step 5
To configure an interface to be an ERSPAN
or SPAN destination (using the destination
switch(config-if)# switchport monitor
interface ethernet interface command), it
must first be configured in monitor mode.
—Repeat Steps 2 to 5 to configure monitoring
on additional ERSPAN destinations.
Step 6
Clears the configuration of the specified
ERSPAN session. The new session
no monitor session {session-number | all}
Example:
Step 7
configuration is added to the existing session
configuration.
switch(config-if)# no monitor session
3
Configures an ERSPAN destination session.
monitor session {session-number | all} type
erspan-destination
Step 8
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 7.x
155
Configuring ERSPAN
Configuring an ERSPAN Destination Session