R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference

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 GigabitEthernet 4/0/1 to 0x9100.
<Sysname> system-view
[Sysname] interface GigabitEthernet 4/0/1
[Sysname-GigabitEthernet4/0/1] dot1q ethernet-type 9100
vlan-termination broadcast enable
Use vlan-termination broadcast enable to enable the interface to transmit broadcast and multicast
packets.
Use undo vlan-termination broadcast enable to restore the default.
Syntax
vlan-termination broadcast enable
undo vlan-termination broadcast enable
Default
An ambiguous Dot1q/QinQ termination-enabled interface drops broadcast and multicast packets.
Views
Layer 3 Ethernet subinterface view, Layer 3 aggregate subinterface view
Default command level
2: System level
Examples
# Enable subinterface GigabitEthernet 4/0/1.10 to transmit broadcast and multicast packets with VLAN
IDs in the range of 10 to 20.
<Sysname> system-view
[Sysname] interface GigabitEthernet 4/0/1.10
[Sysname-GigabitEthernet4/0/1.10] vlan-type dot1q vid 10 to 20
[Sysname-GigabitEthernet4/0/1.10] vlan-termination broadcast enable
vlan-type dot1q vid
Use vlan-type dot1q vid to enable Dot1q termination on the interface, and specify the range of
outermost VLAN IDs 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.