OcNOS-SP : Layer 3 Guide : Layer 3 Subinterface Commands : Layer 3 Subinterface Commands : encapsulation
encapsulation
Use this command to configure encapsulation under a subinterface. Using this command, a Layer 3 subinterface can be configured as a port-vlan or stacked vlan. Before configuring the encapsulation on sub-interface, the operating state of the sub-interface is admin down. After configuring the encapsulation, the operating state of the sub-interface becomes up.
Command Syntax
encapsulation ((dot1q|dot1ad) VLAN_ID (inner-dot1q VLAN_ID|))
no encapsulation
Parameters
dot1q
IEEE 802.1Q VLAN-tagged packets
dot1ad
IEEE 802.1ad VLAN-tagged packets
VLAN_ID
First (outer) VLAN identifier on the subinterface <2-4094>
inner-dot1q VLAN_ID
 
Second (inner 802.1Q) VLAN identifier on the subinterface <2-4094>
Command Mode
Interface mode
Applicability
This command was introduced in OcNOS version 3.0.
Example
#configure terminal
(config-if)#interface xe9.1
(config-if)#encapsulation dot1q 10
 
(config-if)#interface xe9.2
(config-if)#encapsulation dot1q 20 inner-dot1q 20
 
(config-if)#interface xe9.3
(config-if)#encapsulation dot1ad 30
 
(config-if)#interface xe9.4
(config-if)#encapsulation dot1ad 40 inner-dot1q 40
 
Last modified date: 10/16/2023