encapsulation dot1q
To define the matching criteria to map 802.1Q frames ingress on an interface to the appropriate service instance, use the encapsulation dot1q command in the interface configuration mode. To delete the matching criteria to map 802.1Q frames ingress on an interface to the appropriate service instance, use the no form of this command.
encapsulation dot1q{ any | vlan-id [,vlan-id[ -vlan-id] ]} second-dot1q vlan-id
no encapsulation dot1q{ any | vlan-id [,vlan-id[ -vlan-id] ]} second-dot1q vlan-id
Syntax Description
vlan-id |
VLAN ID, can be given as single ID. From Release 6.6.2 onwards, VLAN ID can be given as ranges also. |
Command Default
No matching criteria are defined.
Command Modes
Interface configuration
Command History
Release |
Modification |
---|---|
Release 6.0.1 |
This command was introduced. |
Release 6.6.2 |
VLAN ID ranges are introduced for inner and outer VLAN tags. |
Usage Guidelines
Only one encapsulation statement can be applied to a sub-interface. Encapsulation statements cannot be applied to main interfaces.
A single encapsulation dot1q statement specifies matching for frames with a single VLAN ID.
Examples
Router(config-if)# encapsulation dot1q 10
Router# configure
Router(config)# interface TenGigE 0/1/0/3.10 l2transport
Router(config-subif)# encapsulation dot1q 10