- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
04-VLAN termination commands | 74.32 KB |
VLAN termination commands
dot1q ethernet-type
Use dot1q ethernet-type to set the TPID value in the outermost VLAN tag of packets received and sent by an interface.
Use undo dot1q ethernet-type to restore the default.
Syntax
dot1q ethernet-type hex-value
undo dot1q ethernet-type
Default
The TPID value for the outermost VLAN tag of a VLAN-tagged packet received and sent by the interface is 0x8100.
Views
Layer 3 aggregate/Ethernet interface view
Reth interface view
Predefined user roles
network-admin
context-admin
Parameters
hex-value: Sets a hexadecimal TPID value in the range of 600 to ffff, excluding the common protocol type values listed in Table 1.
Table 1 Common protocol type values
Protocol |
Value |
ARP |
0x0806 |
PUP |
0x0200 |
RARP |
0x8035 |
IP |
0x0800 |
IPv6 |
0x86DD |
PPPoE |
0x8863/0x8864 |
MPLS |
0x8847/0x8848 |
IPX/SPX |
0x8137 |
IS-IS |
0x8000 |
LACP |
0x8809 |
LLDP |
0x88CC |
802.1ag |
0x8902 |
Cluster |
0x88A7 |
Reserved on the device |
0xFFFD/0xFFFE/0xFFFF |
Usage guidelines
After you execute this command, only packets whose TPID in the outermost VLAN tag is 0x8100 or the configured value are processed as VLAN-tagged packets. When sending a packet, the interface sets the TPID value in the outermost VLAN tag to the configured value. If the packet includes two or more layers of VLAN tags, the interface sets the TPID values in the other VLAN tags to 0x8100.
Do not use this command in subinterface view.
Examples
# Set the TPID value to 0x9100 in the outermost VLAN tag of VLAN-tagged packets received and sent by the subinterfaces of GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] dot1q ethernet-type 9100
vlan-termination broadcast enable
Use vlan-termination broadcast enable to enable an interface to transmit broadcasts and multicasts.
Use undo vlan-termination broadcast enable to disable an interface from transmitting broadcasts and multicasts.
Syntax
vlan-termination broadcast enable
undo vlan-termination broadcast enable
Default
An ambiguous Dot1q termination-enabled interface drops broadcast and multicast packets.
Views
Layer 3 Ethernet subinterface view
Layer 3 aggregate subinterface view
Reth subinterface view
Predefined user roles
network-admin
context-admin
Usage guidelines
IMPORTANT: This command affects system performance. If system performance is seriously affected by this command, execute the undo form of this command to remove the command configuration. |
.To transmit a broadcast or multicast packet, the interface starts a traversal over the VLAN IDs specified for ambiguous termination. It copies the packet and tags each copy with a VLAN ID, until all VLAN IDs in the specified range are traversed.
Use this command when ambiguous Dot1q termination is enabled on an interface.
Examples
Configure GigabitEthernet 1/0/1.10 to tag a multicast or broadcast packet with each VLAN tag in the range of 10 to 20.
# Enable Dot1q termination on GigabitEthernet 1/0/1.10 to terminate VLAN-tagged packets with outermost VLAN IDs in the range of 10 to 20.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1.10
[Sysname-GigabitEthernet1/0/1.10] vlan-type dot1q vid 10 to 20
# Enable GigabitEthernet 1/0/1.10 to transmit broadcast and multicast packets.
[Sysname-GigabitEthernet1/0/1.10] vlan-termination broadcast enable
vlan-termination broadcast ra
Use vlan-termination broadcast ra to enable an interface to transmit router advertisement (RA) multicast packets.
Use undo vlan-termination broadcast ra to disable an interface from transmitting RA multicast packets.
Syntax
vlan-termination broadcast ra
undo vlan-termination broadcast ra
Default
An ambiguous Dot1q termination-enabled interface drops broadcast and multicast packets.
Views
Layer 3 Ethernet subinterface view
Layer 3 aggregate subinterface view
Predefined user roles
network-admin
context-admin
Usage guidelines
To transmit an RA multicast packet, the interface starts a traversal over the VLAN IDs specified for ambiguous termination. It copies the packet and tags each copy with a VLAN ID, until all VLAN IDs in the specified range are traversed.
As a best practice, use this command to enable an ambiguous Dot1q termination-enabled interface to transmit RA multicast packets on an IPv6 network. This command prohibits transmission of broadcast packets and other types of multicast packets, and consumes less CPU resources than the vlan-termination broadcast enable command.
Examples
Configure GigabitEthernet 1/0/1.10 to tag RA multicast packets with each VLAN tag in the range of 10 to 20.
# Enable Dot1q termination on GigabitEthernet 1/0/1.10 to terminate VLAN-tagged packets with outermost VLAN IDs in the range of 10 to 20.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1.10
[Sysname-GigabitEthernet1/0/1.10] vlan-type dot1q vid 10 to 20
# Enable GigabitEthernet 1/0/1.10 to transmit RA multicast packets.
[Sysname-GigabitEthernet1/0/1.10] vlan-termination broadcast ra
vlan-type dot1q default
Use vlan-type dot1q default to enable default termination on a subinterface.
Use undo vlan-type dot1q default to disable default termination on a subinterface.
Syntax
vlan-type dot1q default
undo vlan-type dot1q default
Default
Default termination is disabled on a subinterface.
Views
Layer 3 Ethernet subinterface view
Layer 3 aggregate subinterface view
Reth subinterface view
Predefined user roles
network-admin
context-admin
Usage guidelines
This command enables the subinterface to process packets that cannot be terminated by other subinterfaces on the same main interface.
Examples
# Enable default termination on GigabitEthernet 1/0/1.1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1.1
[Sysname-GigabitEthernet1/0/1.1] vlan-type dot1q default
[Sysname-GigabitEthernet1/0/1.1] quit
vlan-type dot1q untagged
Use vlan-type dot1q untagged to enable untagged termination on a subinterface.
Use undo vlan-type dot1q untagged to disable untagged termination on a subinterface.
Syntax
vlan-type dot1q untagged
undo vlan-type dot1q untagged
Default
Untagged termination is disabled on a subinterface.
Views
Layer 3 Ethernet subinterface view
Layer 3 aggregate subinterface view
Reth subinterface view
Predefined user roles
network-admin
context-admin
Usage guidelines
This command enables the subinterface to process untagged packets.
Examples
# Enable untagged termination on GigabitEthernet 1/0/1.1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1.1
[Sysname-GigabitEthernet1/0/1.1] vlan-type dot1q untagged
[Sysname-GigabitEthernet1/0/1.1] quit
vlan-type dot1q vid
Use vlan-type dot1q vid to enable Dot1q termination on a subinterface, and specify the 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 a subinterface.
Syntax
vlan-type dot1q vid vlan-id-list [ loose ]
undo vlan-type dot1q vid vlan-id-list [ loose ]
Default
Dot1q termination is disabled on a subinterface.
Views
Layer 3 Ethernet subinterface view
Layer 3 aggregate subinterface view
Reth subinterface view
Predefined user roles
network-admin
context-admin
Parameters
vlan-id-list: Specifies a space-separated list of up to 10 outermost VLAN ID items. Each item specifies an outermost VLAN ID or a range of outermost VLAN IDs in the form of vlan-id1 to vlan-id2. The value range for VLAN IDs is 1 to 4094. The value for the vlan-id2 argument must be equal to or greater than the value for the vlan-id1 argument.
loose: Configures the subinterface to terminate packets that include one to three layers of VLAN tags.
Usage guidelines
The VLAN ID ranges specified by the vlan-id-list argument for different subinterfaces of a main interface cannot overlap.
Examples
# Configure GigabitEthernet 1/0/1.1 to terminate VLAN-tagged packets with outermost VLAN IDs in the range of 2 to 100.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1.1
[Sysname-GigabitEthernet1/0/1.1] vlan-type dot1q vid 2 to 100
# Configure GigabitEthernet 1/0/1.1 to terminate VLAN-tagged packets that include one to three layers of VLAN tags with the outermost VLAN ID 2.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1.1
[Sysname-GigabitEthernet1/0/1.1] vlan-type dot1q vid 2 loose
# Configure GigabitEthernet 1/0/1.2 to terminate VLAN-tagged packets whose outermost VLAN ID is 3.
[Sysname] interface gigabitethernet 1/0/1.2
[Sysname-GigabitEthernet1/0/1.2] vlan-type dot1q vid 3
The following table describes the configuration results:
Subinterface |
Outermost VLAN ID of packets that can be terminated |
Whether packets to be terminated include two or three layers of VLAN tags |
GigabitEthernet 1/0/1.1 |
2 |
Yes |
GigabitEthernet 1/0/1.2 |
3 |
No |