Study FAQ
What does inter-VLAN routing need from an SVI or a router subinterface?
Also asked as 2
- How do an SVI and an 802.1Q router subinterface serve as gateways between VLANs?
- Which gateway and forwarding checks tell me whether inter-VLAN routing is working?
Answer
Hosts in different VLANs need a Layer 3 gateway in each VLAN. A multilayer switch can provide one switched virtual interface (SVI) per routed VLAN. An external router can instead use an 802.1Q trunk with a subinterface for each routed VLAN. Each gateway address must be reachable at Layer 2 in its own VLAN and be inside that VLAN’s IP subnet.
A host sending to another subnet addresses the Ethernet frame to its local gateway. The gateway removes that frame, selects a route, and sends a new frame toward the destination. To verify the design, confirm the host’s VLAN, mask, and default gateway before you check the gateway interface and routing. For an SVI, verify the VLAN exists and has at least one eligible Layer 2 port up and forwarding for the VLAN under the usual autostate behavior. Confirm that IP routing is enabled on a routing-capable switch. For router subinterfaces, confirm the physical link is up and the encapsulated VLAN ID matches the switch trunk.
Test the local gateway from the host, then test a destination in another VLAN. If local gateway access works but the remote test fails, inspect the route, any path policy, and the return path.
References
Full explanation
VLANs, 802.1Q Trunks, and Inter-VLAN Connectivity
Study guide · 200-301
Read the full explanation