Inter-VLAN Routing 3 ways: One physical connection per VLAN, one-arm routing, three-layer switching.
One physical connection per VLAN: A separate interface is assigned to each VLAN on the router, and a physical link is used to connect to the Layer two switch. When the host between the VLANs needs to communicate, the data is routed through the router three layers and forwarded to the host within the destination VLAN, so that the VLAN can communicate with each other.
Single-arm routing: Only one physical link connection is used between the switch and the router. On the switch, configure the port connected to the router as a trunk-type port and allow the associated VLAN frames to pass. A sub-interface needs to be created on the router, logically dividing the physical link of the connected router into multiple lines. A sub-interface represents a logical link that belongs to a VLAN.
Three-layer switching: Configure the Vlanif interface on a three-layer switch to enable inter-VLAN routing. If there are multiple VLANs on the network, you need to configure a vlanif interface for each VLAN and configure an IP address for each vlanif interface. The default gateway set by the user is the IP address of the Vlanif interface in the layer three switch.
Inter-VLAN Routing: One physical connection per VLAN, one-arm routing, three-layer switching