PurposeCommand or Action
Configures the following switchport modes for the
selected slot and port or range of ports:
switchport mode [access | trunk]
Example:
switch(config-if)# switchport mode
trunk
Step 4
•
access
•
trunk
Configures the switch interface in monitor mode.switchport monitor
Step 5
Example:
switch(config-if)# switchport monitor
To configure an interface to be an ERSPAN or
SPAN destination (using the destination 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 configuration is added to
the existing session configuration.
no monitor session {session-number | all}
Example:
switch(config-if)# no monitor session
3
Step 7
Configures an ERSPAN destination session.
monitor session {session-number | all} type
erspan-destination
Step 8
Example:
switch(config-if)# monitor session 3
type erspan-destination
switch(config-erspan-dst)#
Configures a description for the session. By default,
no description is defined. The description can be
up to 32 alphanumeric characters.
description description
Example:
switch(config-erspan-dst)# description
erspan_dst_session_3
Step 9
Configures the source IP address in the ERSPAN
session. Only one source IP address is supported
per ERSPAN destination session.
source ip ip-address
Example:
switch(config-erspan-dst)# source ip
10.1.1.1
Step 10
This IP address must match the destination IP
address configured in the corresponding ERSPAN
source session.
Configures a destination for copied source packets.
You can configure only interfaces as a destination.
You can configure destination ports as
trunk ports.
Note
destination {[interface [type
slot/port[-port], [type slot/port [port]]]
[port-channel channel-number]]}
Example:
switch(config-erspan-dst)# destination
interface ethernet 2/5
Step 11
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
208 OL-31641-01
Configuring ERSPAN
Configuring an ERSPAN Destination Session