Configuring Push/Pop VLAN

VLAN aware mode provides OPB administrators with the ability to match and modify packets in the flow before forwarding them to the tool port(s).

You can configure the OPBNOS to modify the flow as below:

  • Push VLAN - Push a new VLAN Tag onto the egress traffic.

  • Pop VLAN - Pop(remove) the VLAN Tag from the egress traffic.

This feature is only supported on the NVIDIA platforms

Reference

Example

pbnoscli# configure terminal
pbnoscli(config)# flow flow01
pbnoscli(config-flow-flow01)# push-vlan-tag 
  <pushvlanid>          Add VLAN tag (1...4094)
pbnoscli(config-flow-flow01)# push-vlan-tag 1002
pbnoscli(config-flow-flow01)# 

//to remove push tag
pbnoscli(config-flow-flow01)# no push-vlan-tag 
pbnoscli(config-flow-flow01)# 

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

pbnoscli# show flow flow01

===================================
Flow : flow01 (CLI)
===================================
Status       : enable          
Network-Port : Ethernet1/1,Ethernet2/1
Tool-Port    : Ethernet8/1       
Push vlan     : enable          
pbnoscli# 
pbnoscli# show running-config 
configure terminal
!
interface ethernet Ethernet1/1
forward-error-correction rs
type network
!
interface ethernet Ethernet2/1
forward-error-correction rs
type network
!
interface ethernet Ethernet8/1
forward-error-correction rs
type tool
!
interface mgmt
ip address 10.4.4.53/23 gateway 10.4.4.1
!
flow flow01
network-ports Ethernet1/1,Ethernet2/1
tool-ports Ethernet8/1
push-vlan-tag 1002
!
pbnoscli# 

Reference

Example

pbnoscli# configure terminal 
pbnoscli(config)# flow flow01             
pbnoscli(config-flow-flow01)# pop-vlan 
  disable               Disable Vlan stripping
  enable                Enable Vlan stripping
pbnoscli(config-flow-flow01)# pop-vlan enable 
pbnoscli(config-flow-flow01)#  

//to disable pop-vlan
pbnoscli(config-flow-flow01)# pop-vlan disable 
pbnoscli(config-flow-flow01)# 

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

pbnoscli# show flow flow01

===================================
Flow : flow01 (CLI)
===================================
Status       : enable          
Network-Port : Ethernet1/1,Ethernet2/1
Tool-Port    : Ethernet8/1       
Pop vlan     : enable          
pbnoscli# 
pbnoscli# show running-config 
configure terminal
!
interface ethernet Ethernet1/1
forward-error-correction rs
type network
!
interface ethernet Ethernet2/1
forward-error-correction rs
type network
!
interface ethernet Ethernet8/1
forward-error-correction rs
type tool
!
interface mgmt
ip address 10.4.4.53/23 gateway 10.4.4.1
!
flow flow01
network-ports Ethernet1/1,Ethernet4/1
tool-ports Ethernet8/1
pop-vlan enable
!
pbnoscli# 

Last updated