switch(config-erspan-src)# ip ttl 16
switch(config-erspan-src)# ip dscp 5
switch(config-erspan-src)# vrf default
switch(config-erspan-src)# destination ip 9.1.1.2
switch(config-erspan-src)# source interface e1/15 both
switch(config-erspan-src)# marker-packet 2
switch(config-erspan-src)# no shut
switch(config-erspan-src)# exit
Verifying the ERSPAN Configuration
Use the following command to verify the ERSPAN configuration information:
PurposeCommand
Displays the ERSPAN session configuration.
show monitor session {all | session-number | range
session-range}
Displays the running ERSPAN configuration.show running-config monitor
Displays the ERSPAN startup configuration.show startup-config monitor
Configuration Examples for ERSPAN
Configuration Example for an ERSPAN Source Session
The following example shows how to configure an ERSPAN source session:
switch# config t
switch(config)# interface e14/30
switch(config-if)# no shut
switch(config-if)# exit
switch(config)# monitor erspan origin ip-address 3.3.3.3 global
switch(config)# monitor erspan granularity 100_ns
switch(config-erspan-src)# header-type 3
switch(config)# monitor session 1 type erspan-source
switch(config-erspan-src)# source interface e14/30
switch(config-erspan-src)# erspan-id 1
switch(config-erspan-src)# ip ttl 16
switch(config-erspan-src)# ip dscp 5
switch(config-erspan-src)# destination ip 9.1.1.2
switch(config-erspan-src)# no shut
switch(config-erspan-src)# exit
switch(config)# show monitor session 1
switch(config)# monitor erspan granularity 100_ns and
switch(config-erspan-src)# header-type 3 are used only while configuring Type III source
sessions.
Note
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 7.x
164
Configuring ERSPAN
Verifying the ERSPAN Configuration