Configuring ERSPAN
Step 8
Step 9
Step 10
Step 11
Step 12
Step 13
Step 14
Step 15
Step 16
OL-31641-01
Command or Action
source vlan number
Example:
switch(config-erspan-src)# source
vlan 1
source vsan number
Example:
switch(config-erspan-src)# source
vsan 1
destination ip ip-address
Example:
switch(config-erspan-src)#
destination ip 192.0.2.2
erspan-id flow-id
Example:
switch(config-erspan-src)#
erspan-id 5
vrf {vrf-name | default }
Example:
switch(config-erspan-src)# vrf
default
[no] filter access-group acl_filter
Example:
switch(config-erspan-src)# filter
access-group erspan_acl_filter
ip ttl ttl-number
Example:
switch(config-erspan-src)# ip ttl
5
ip dscp dscp_value
Example:
switch(config-erspan-src)# ip
dscp 42
no shut
Example:
switch(config-erspan-src)# no
shut
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
Configuring an ERSPAN Type III Source Session
Purpose
Associates the ERSPAN source session number with the
VLANs (1-4096).
On Cisco Nexus 5000 Series switches, specifies the
VSAN ID number. The range is 1 to 4093. On Cisco
Nexus 5500 Series switches, you cannot configure source
VSANs.
Configures the destination IP address in the ERSPAN
session. Only one destination IP address is supported per
ERSPAN source session.
Configures the flow ID to identify the ERSPAN flow.
The range is from 1 to 1023.
Configures the VRF to use instead of the global routing
table. You can use a VRF that you have specifically
configured or the default VRF.
Configures the ACL filter for packets in this ERSPAN
session. The ACL filter can be a MAC or an IP access-list.
(Optional)
Configures the IP time-to-live (TTL) value of the packets
in the ERSPAN traffic. Valid values are from 1 to 255.
The default value is 255.
(Optional)
Configures the IP Differentiated Services Code Point
(DSCP) value of the packets in the ERSPAN traffic. Valid
values are from 0 to 63. The default value is 0.
Enables the ERSPAN source session. By default, the
session is created in the shut state.
Note
On Cisco Nexus 5000 Series switches, only two
ERSPAN source sessions can be running
simultaneously. On Cisco Nexus 5500 Series
switches, up to four source sessions can be
running simultaneously.
205