22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Source of traffic<br />

cmhlab-dc2-tor2(config-erspan-src)# erspan-id 100<br />

cmhlab-dc2-tor2(config-erspan-src)# vrf default<br />

cmhlab-dc2-tor2(config-erspan-src)# destination ip<br />

10.10.10.1<br />

cmhlab-dc2-tor2(config-erspan-src)# source vlan 502<br />

cmhlab-dc2-tor2(config-erspan-src)# no shut<br />

cmhlab-dc2-tor2(config-erspan-src)# show monitor session 1<br />

session 1<br />

---------------<br />

description : ERSPAN Source of traffic<br />

type<br />

: erspan-source<br />

state<br />

: up<br />

erspan-id : 100<br />

vrf-name<br />

: default<br />

destination-ip : 10.10.10.1<br />

ip-ttl : 255<br />

ip-dscp : 0<br />

origin-ip<br />

: 10.20.20.20 (global)<br />

source intf :<br />

rx :<br />

tx :<br />

both :<br />

source VLANs :<br />

rx : 502<br />

cmhlab-dc2-tor2(config-erspan-src<br />

The volume of an ERSPAN session can be significant depending on the amount of traffic in<br />

the network <strong>and</strong> the configuration of the session. In many cases, the m<strong>os</strong>t useful information<br />

is the int header of the packet or frame, not necessarily in the payload. To facilitate a<br />

reduction in the volume of data sent, you can specify only a certain number of bytes be sent<br />

out the session. This is referred to as MTU truncation. Example 7-26 illustrates MTU<br />

truncation for ERSPAN.<br />

Example 7-26. MTU Truncation for ERSPAN<br />

Click here to view code image<br />

cmhlab-dc2-tor2# config<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

cmhlab-dc2-tor2(config)# monitor session 1 type erspansource

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!