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.
Perform the following operations to implement inter-VLAN communication:
Create sub-interfaces Port1.1 and Port1.2 on the Ethernet interface connecting SwitchA to SwitchB.
Configure Dot1q termination on Port1.1 and Port1.2 to remove VLAN tags in packets sent by SwitchB.
Assign IP addresses to Port1.1 and Port1.2.
Configure the IP addresses of Port1.1 and Port1.2 as the default gateway addresses for user hosts.