rewrite ingress
Use this command to configure a match VLAN action for a service template.
Use the no parameter with this command to remove a match VLAN action for a service template.
Command Syntax
rewrite ingress (((pop |translate <2-4094>)(|outgoing-tpid (dot1.ad |dot1.q)))| (push <2-4094>))
no rewrite ingress (pop |push |translate)
Parameters
pop
POP the outer VLAN identifier from ACCESS->NETWORK and PUSH the match outer VID to NETWORK->ACCESS
translate
Translate the outer VLAN identifier to configured action VID for
ACCESS->NETWORK and translate to the match outer VID for NETWORK->ACESS
<2-4094>
Outer VLAN identifier
outgoing-tpid
Outgoing TPID, set the outer-tpid for the NETWORK->ACCESS
dot1.ad
Set TPID value as 0x88a8 for the traffic NETWORK->ACCESS
dot1.q
Set TPID value as 0x8100 for the traffic NETWORK->ACCESS
push
PUSH the outer VLAN identifier from ACESS->NETWORK and POP the Outer VID from NETWORK->ACCESS
<2-4094>
Outer VLAN identifier
Command Mode
MPLS SVC mode
Applicability
This command was introduced in OcNOS version 1.3.3, and changed in OcNOS-SP version 1.0.
Examples
#configure terminal
(config)#service-template C2
(config-svc)#match double-tag outer-vlan 9 inner-vlan 8
(config-svc)#rewrite ingress translate 7 outgoing-tpid dot1.ad
(config-svc)#exit
(config)#service-template C2
(config-svc)#no rewrite ingress translate
(config-svc)#exit
Last modified date: 07-13-2023