< Home

Using a Dot1q Termination Sub-interface to Implement Inter-VLAN Communication

In Figure 1, SwitchA is a Layer 3 switch that supports sub-interface configuration and SwitchB is a Layer 2 switch. SwitchA connects to SwitchB through a Layer 3 Ethernet interface. User hosts are assigned to VLAN 2 and VLAN 3, and need to communicate with each other.

Figure 1 Using a Dot1q termination sub-interface to implement inter-VLAN communication

Perform the following operations to implement inter-VLAN communication:

After the preceding operations are performed, user hosts in VLAN 2 and VLAN 3 can communicate at Layer 3. When a host in VLAN 2 sends packets to a host in VLAN 3, the process is as follows:
  1. Port1.1 removes the VLAN tag of the packets sent from VLAN 2 through SwitchB, and forwards the packets to Port1.2 at Layer 3.
  2. Before sending the packets out, Port1.2 adds VLAN 3 to the packets so that the packets can reach user hosts in VLAN 3.
The process is reversed when a host in VLAN 3 sends packets to a host in VLAN 2.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >