Inter-VLAN Communication
Inter-VLAN communication can be classified into the following two types:
Multiple VLANs Belong to the Same Device
As shown in Figure 5-19, if VLAN 2, VLAN 3, and VLAN 4 only belong to SwitchA, you can configure a VLANIF interface for each VLAN on SwitchA to implement the communications between these VLANs.
Multiple VLANs Belong to Different Devices
As shown in Figure 5-20, VLAN 2, VLAN 3, and VLAN 4 are VLANs across different switches. In such a situation, you can configure a VLANIF interface respectively on Switch A and Switch B for each VLAN, and then configure a static route or run a routing protocol between Switch A and Switch B.