R3303-HP HSR6800 Routers Layer 2 - LAN Switching Configuration Guide
161
value is 0x8100 or the configured value, the interface considers the packet as a VLAN-tagged packet.
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.
To set the TPID value for VLAN-tagged packets:
Ste
p
Command
Remarks
1. Enter system view
system-view N/A
2. Enter interface view.
• Enter Layer 3 Ethernet interface view:
interface interface-type
interface-number
• Enter Layer 3 aggregate interface view:
interface route-aggregation
interface-number
Use one of the commands.
Configurations made in
interface view take effect on all
subinterfaces.
3. Set the TPID value in the
outermost VLAN tag of
packets received and sent
by the interface
dot1q ethernet-type hex-value
Optional.
The default setting is 0x8100.
Unambiguous Dot1q termination configuration
example
Network requirements
As shown in Figure 58, Host A and Host B are connected to Switch A, and Host C and Host D are
connected to Switch B. Host A and Host C belong to VLAN 10, and Host B and Host D belong to VLAN
20. The IP addresses of subinterfaces GigabitEthernet 4/0/1.10, GigabitEthernet4/0/1.20,
GigabitEthernet4/0/2.10, and GigabitEthernet4/0/2.20 are 1.0.0.1/8, 2.0.0.1/8, 3.0.0.1/8, and
4.0.0.1/8, respectively.
Configure VLAN termination so that:
• Host A can communicate with Host B, and Host C can communicate with Host D. The hosts that are
in different VLANs but connected to the same switch can communicate with each other.
• Host A can communicate with Host C, and Host B can communicate with Host D. The hosts that are
in the same VLAN but connected to different switches can communicate with each other.
• Host A can communicate with Host D, and Host B can communicate with Host C. The hosts that are
in different VLANs and connected to different switches can communicate with each other.