PurposeCommand or Action
Example:
switch(config)# monitor session 3 type
erspan-source
switch(config-erspan-src)#
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-src)# description
erspan_src_session_3
Step 5
Configures the sources and traffic direction in
which to copy packets. You can enter a range of
source {[interface[type slot/port[-port][, type
slot/port[-port]]] [port-channel
Step 6
Ethernet ports, a port channel, or a range of
VLANs.
channel-number]] | [vlan {number | range}]}
[rx | tx | both]
Example:
switch(config-erspan-src)# source
interface ethernet 2/1-3, ethernet 3/1
rx
You can configure one or more sources, as either
a series of comma-separated entries or a range of
numbers. You can specify up to 128 interfaces. For
information on the VLAN range, see the Cisco
Example:
switch(config-erspan-src)# source
interface port-channel 2
Nexus 3500 Series NX-OS Layer 2 Switching
Configuration Guide.
You can specify the traffic direction to copy as
ingress, egress, or both. The default direction is
both.
Example:
switch(config-erspan-src)# source
interface sup-eth 0 both
Example:
switch(config-monitor)# source
interface ethernet 101/1/1-3
(Optional)
—
Repeat Step 6 to configure all ERSPAN
sources.
Step 7
Configures the destination IP address in the
ERSPAN session. Only one destination IP address
is supported per ERSPAN source session.
destination ip ip-address
Example:
switch(config-erspan-src)# destination
ip 10.1.1.1
Step 8
Configures the ERSPAN ID for the ERSPAN
source session. The ERSPAN range is from 1 to
erspan-id erspan-id
Example:
switch(config-erspan-src)# erspan-id
5
Step 9
1023. This ID uniquely identifies a source and
destination ERSPAN session pair. The ERSPAN
ID configured in the corresponding destination
ERSPAN session must be same as the one
configured in the source session.
Configures the VRF that the ERSPAN source
session uses for traffic forwarding.
vrf vrf-name
Example:
switch(config-erspan-src)# vrf default
Step 10
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 6.x
165
Configuring ERSPAN
Configuring an ERSPAN Source Session