> For the complete documentation index, see [llms.txt](https://aviznetworks.gitbook.io/apb-r2.10/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aviznetworks.gitbook.io/apb-r2.10/cli-configuration-guide/configuring-erspan-stripping.md).

# Configuring ERSPAN Stripping

ERSPAN (Encapsulated Remote Switch Port Analyzer) Stripping refers to the process of removing ERSPAN headers from mirrored packets before they are further processed or forwarded, especially in packet brokers or monitoring solutions.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfPeIbrgXHFnbuvaauSP_kKYRdMNhmX4uELYJY4mK_ME76tOwxSMiOzj9oh5v_3x40EPiL2x_NEsVFh1ZIy-PJxSr3VXGWQ5aWlaLb0Hno-JMGPookj911PtqHDTZeVoRt8nhPt?key=YWnBUE70Omgk6FDhoQGkRw" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
This feature is supported only on NVIDIA spectrum-2/3 platform for the Packet Types ERSPAN Type-II.
{% endhint %}

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcoXpOgQ2yCeTYOCFVrMqgsWfHmBNZgAHe5GboXNc_9QL2GCvRuTD5Z13F6yz5hkd-UAzCMD7u5L5jO_kbMsQnaqslsWjx4F_hLi5L8HLzDkMcC9hj3ep8Ts9rgf6MelxshccNgtw?key=YWnBUE70Omgk6FDhoQGkRw" alt=""><figcaption><p>ERSPAN TYPE II packet</p></figcaption></figure>

#### Configurtion example

```
pbnoscli# conf t
pbnoscli(config)# tunnel tunnel1
  <cr>
  erspan                ERSPAN Tunnel
pbnoscli(config)# tunnel tunnel1 erspan
  <cr>


interface mgmt
ip address 10.4.4.51/23 gateway 10.4.4.1
!
port-channel 1 ports Ethernet1/1,Ethernet2/1,Ethernet3/1
!
tunnel tunnel1 erspan
ingress-interface Ethernet14/1,Ethernet15/1,Ethernet16/1
strip-erspan egress port-channel1

pbnoscli# show erspan tunnel all

===============================================
ERSPAN Tunnel - tunnel1
===============================================
Ingress Port      : Ethernet14/1,Ethernet15/1,Ethernet16/1
Egress Port       : port-channel1
pbnoscli#

```
