Configuring VLAN Modes

VLAN modes in OPB provide administrators to match flow based on the VLAN tag in the packet and redirect to the tool ports

OPB supports two VLAN modes;

  • VLAN-aware mode will match traffic based on both configured ingress-VLAN and VLAN configured in flow rules

  • VLAN-unaware mode will allow all VLAN traffic and does not follow the ingress-VLAN configuration

By default, the port is in VLAN-aware mode and will accept traffic tagged with VLAN 'n+2', where 'n' is the port number i.e. Eth2+2 = VLAN 4

Reference

Command

mode vlan-aware

mode vlan-unaware

Description

vlan-aware: used for matching packets based on VLAN id

Parameters

None

Mode

INTERFACE

This feature is only supported on the NVIDIA platforms and is applicable only for network ports.

Example

pbnoscli# configure terminal
pbnoscli(config)# interface ethernet Ethernet16/1
pbnoscli(config-if)# mode vlan-
  vlan-aware            dot1_q mode
  vlan-unaware          q_inq mode
pbnoscli(config-if)# mode vlan-aware 
pbnoscli(config-if)# 

You can verify the configuration by using the command(s) below:

pbnoscli# show interface npb Ethernet16/1

===================================
Interface : Ethernet16/1      
===================================
Mode           : vlan-aware      
Ingress-vlan   : 18              
Egress-tagging : disable         

pbnoscli# 
pbnoscli# show running-config 
configure terminal
!
interface ethernet Ethernet16/1
mode vlan-aware
!
interface mgmt
ip address 10.4.4.53/23 gateway 10.4.4.1
!
pbnoscli#