155
Usage guidelines
After you execute the
dot1q ethernet-type
command, only packets whose TPID in the outermost
VLAN tag is 0x8100 or the value you configured will be processed as VLAN-tagged packets. When
sending a packet, the interface sets the TPID value in the outermost VLAN tag to the configured
value, and sets the TPID values in the other VLAN tags to 0x8100 if the packet carries two or more
layers of VLAN tags.
A Layer 3 Ethernet interface configured with this command cannot be added to an aggregation
group.
Configurations made in interface view apply to all subinterfaces.
Executing this command on an up interface will quickly shut down and then bring up the interface.
Examples
# Set the TPID value in the outermost VLAN tag of VLAN-tagged packets that can be received and
sent by the subinterfaces of Ethernet 1/1 to 0x9100.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] dot1q ethernet-type 9100
vlan-type dot1q vid
Use
vlan-type dot1q vid
to enable Dot1q termination on the interface, and specify the outermost
VLAN ID in the VLAN-tagged packets that can be terminated by the subinterface.
Use
undo vlan-type dot1q vid
to disable Dot1q termination on the interface.
Syntax
vlan-type dot1q vid vlan-id
undo vlan-type dot1q vid vlan-id
Default
Dot1q termination is disabled on subinterfaces.
Views
Layer 3 Ethernet subinterface view, Layer 3 aggregate subinterface view, Layer 3 VE subinterface
view, VE-L3VPN-Access subinterface view
Default command level
2: System level
Parameters
vlan-id
: Specifies the VLAN ID in the range of 1 to 4094.
Usage guidelines
You cannot configure multiple subinterfaces under an Ethernet interface to terminate VLAN-tagged
packets from the same VLAN. The VLAN IDs specified for different subinterfaces under the Ethernet
interface cannot be the same.
After you use the
undo vlan-type dot1q vid
command to disable Dot1q termination on the
subinterface, the subinterface will restart, and the ARP table entry corresponding to the subinterface
will be removed.
Examples
# Configure Ethernet 1/1.1 to terminate VLAN-tagged packets with VLAN ID 2.
<Sysname> system-view
[Sysname] interface ethernet 1/1.1