OcNOS-RON-6.3.1 : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Command Reference : MPLS Commands : match vlan
match vlan
Use this command to configure a match VLAN action for a service template.
Use the no parameter to remove a match VLAN action for a service template.
Command Syntax
match (all | double-tag outer-vlan <2-4094> inner-vlan VLAN_RANGE | outer-vlan VLAN_RANGE | untagged)
no match (double-tag outer-vlan <2-4094> inner-vlan VLAN_RANGE | outer-vlan VLAN_RANGE | untagged)
Parameter
all
Accept all matches
double-tag
Double tag match
outer-vlan
Double tag outer VLAN
<2-4094>
Outer VLAN identifier
inner-vlan
Double tag inner VLAN
VLAN_RANGE
VLAN identifier <2-4094> range: 2-5,10 or 2-5,7-19
outer-vlan
Single tag outer-VLAN
VLAN_RANGE
VLAN identifier <2-4094> range: 2-5,10 or 2-5,7-19
untagged
Match untagged. This parameter depends on the switchport dot1q ethertype configuration. Packets received with a TPID other than 0x8100 (default value) and the TPID value configured by switchport dot1q ethertype are treated as untagged. For example, if you give the command:
switchport dot1q ethertype 0x8888
then packets received with TPID 0x8100 or 0x88a8 are treated as tagged. Packets received with other TPIDs are treated as untagged.
Command Mode
MPLS SVC mode
Applicability
This command was introduced before OcNOS version 1.3 and updated in OcNOS-SP version 1.0.
The inner vlan range option added in OcNOS-SP version 4.1.
Example
#configure terminal
(config)#service-template C2
(config-svc)#match double-tag outer-vlan 10 inner-vlan 20
(config-svc)#exit
(config)#service-template C2
(config-svc)#no match double-tag outer-vlan 10 inner-vlan 20
(config-svc)#exit
#configure terminal
(config)#service-template C3
(config-svc)#match double-tag outer-vlan 10 inner-vlan 200-300
(config-svc)#exit
(config)#service-template C4
(config-svc)#no match double-tag outer-vlan 10 inner-vlan 200-300
(config-svc)#exit
#configure terminal
(config)#service-template t1
(config-svc)#match untagged
(config-svc)#rewrite ingress push 100
Last modified date: 07-13-2023