# Ingress VLAN and Egress Tagging

Ingress VLAN functionality allows customers to assign dedicated VLAN Tags to ingress traffic, creating a mapping between the Network port and tool ports.&#x20;

Traffic received on network ports can be added with an additional VLAN tag and sent towards the tools for identifying the Network Port(with the assigned VLAN tag).

The following image shows a visual representation of Ingress VLAN and Egress Tagging:

<figure><img src="https://2662483853-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhNXO6wTLpx5wBGAVjtJV%2Fuploads%2F1AAjp26OsrFPfw9zK8mg%2FScreenshot%202022-09-26%20at%2011.58.19%20AM.png?alt=media&#x26;token=1c3887e4-16b3-4518-965c-61e1f83b08d0" alt=""><figcaption><p>Ingress VLAN</p></figcaption></figure>

### Configuration:

*1. Configure Network/Tool port(s)*

```
//Network ports
configure terminal
interface ethernet Ethernet12/1
forward-error-correction rs
type network
end
```

```
//Tool ports
configure terminal
interface ethernet Ethernet16/1
forward-error-correction rs
type tool
end
```

2\. *Configure ingress VLAN*

```
configure terminal
interface ethernet Ethernet12/1
ingress-vlan 512
end
```

3\. Enable egress tagging on tool port(s)

```
configure terminal
interface ethernet Ethernet16/1
egress-tagging enable
end
```

4\. Configure flow

```
configure terminal
flow flow1
network-ports Ethernet12/1
tool-ports Ethernet16/1
rule 1 permit match-all counters enable
end
```

5\. Verify

```
// verify interface
pbnoscli# show interface npb Ethernet12/1
===================================
Interface : Ethernet12/1      
===================================
Mode           : vlan-aware      
Ingress-vlan   : 512             
Egress-tagging : disable         

pbnoscli# show interface npb Ethernet16/1
===================================
Interface : Ethernet16/1      
===================================
Mode           : vlan-aware      
Ingress-vlan   : 18              
Egress-tagging : enable
```

{% hint style="info" %}
By default, the Interface will have a native VLAN of n+2 (i.e. Eth12 will have a tag of 14)
{% endhint %}

```
// verify flow
pbnoscli# show flow summary 
Flow-Name       Rule-Id        Status      Counter-Value
=========================================================
flow1           1             Active          1154               
pbnoscli# 
```
