
C613-50186-01 Rev B
Command Reference for AR2050V
573
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
802.1Q E
NCAPSULATION
C
OMMANDS
ENCAPSULATION
DOT
1
Q
encapsulation dot1q
Overview
Use this command to enable 802.1Q encapsulation on Ethernet interfaces or L2
tunnel interfaces—OpenVPN and L2TPv3 Ethernet pseudowire.
Use the no variant of this command to disable 802.1Q encapsulation for the VLAN
identified by the VLAN ID (VID).
Syntax
encapsulation dot1q <
vid
>
no encapsulation dot1q <
vid
>
Default
802.1Q encapsulation is disabled by default on any Ethernet interface or Layer 2
tunnel interface.
Mode
Interface Configuration
Usage
You should enter the Ethernet interface or tunnel interface configuration mode to
enable 802.1Q encapsulation and configure the VID first. Then you can use the VID
to configure the subinterface associated with the Ethernet interface or tunnel
interface. Subinterfaces are logical interfaces. The subinterface index must be the
same as the VID. For example, if you configure VID 1 for eth1, then the subinterface
for eth1 is eth1.1. If you configure VID 2 for tunnel20, then the subinterface for
tunnel20 is tunnel20.2.
Examples
To enable 802.1Q encapsulation on Ethernet interface eth1, use the commands:
awplus#
configure terminal
awuplus(config)#
interface eth1
awplus(config-if)#
encapsulation dot1q 1
To enable 802.1Q encapsulation on tunnel interface tunnel20, use the commands:
awplus#
configure terminal
awuplus(config)#
interface tunnel20
awplus(config-if)#
encapsulation dot1q 2
Parameter
Description
<
vid
>
Enter a VLAN ID in the range from 1 through 4094. The VLAN ID
identifies the VLAN to which the frames belong. It also identifies
the index of the subinterface of the Ethernet interface or Layer 2
tunnel interface.