Switched virtual interfaces
Move the gateway into the switch
A switched virtual interface (SVI) is a logical interface associated with a VLAN. On a multilayer switch that supports IP forwarding, an SVI can be a gateway for that VLAN. Keep A and B’s addresses from the previous lesson but replace R and S with one multilayer switch M. VLAN 10 has gateway 192.0.2.1 and VLAN 20 has gateway 198.51.100.1. Remove the external router from this alternative topology; do not duplicate its gateway addresses.
Switching versus routing
Within a VLAN, M forwards ordinary frames according to Layer 2 information. When A sends to its gateway MAC for a remote subnet, M performs a Layer 3 lookup and constructs the outgoing Ethernet frame in VLAN 20. TTL is decremented even though no separate router box is visible. Many switches accelerate forwarding in hardware, but supported features, exceptions and performance depend on the platform. The two designs implement the same IP gateway roles; the internal SVI design avoids the external trunk for this local exchange.
SVI prerequisites
The following static Catalyst 9300 IOS XE 17.x-style excerpt assumes the VLANs exist and their host ports are operational. Enable IP routing where required. On the referenced Catalyst family, SVI line state normally depends on VLAN and eligible active member-port state; autostate settings can alter that dependency. An administratively enabled interface is not necessarily operational. An SVI used only for switch management is not proof of transit forwarding. Check feature support and actual route and interface state.
ip routinginterface Vlan10 ip address 192.0.2.1 255.255.255.0 no shutdowninterface Vlan20 ip address 198.51.100.1 255.255.255.0 no shutdownRouted physical ports
A routed port is a physical Layer 3 interface, rather than a Layer 2 access or trunk member. A separate uplink on M could use 203.0.113.1/30 with a peer at 203.0.113.2/30. The following independent excerpt illustrates the Cisco distinction. It does not configure the peer or routes beyond that link. Changing a switchport to a routed port can interrupt traffic and remove prior Layer 2 settings; never do it on a live network for practice.
interface GigabitEthernet1/0/48 no switchport ip address 203.0.113.1 255.255.255.252Choose a design by constraints
An external router can be useful with an existing Layer 2-only switch or separate routing requirements. An SVI design is often convenient with a capable multilayer switch, but neither approach automatically supplies redundancy or a firewall. Compare failure domains, forwarding capacity, required policies, feature support and operational cost. For a small office with an existing routing-capable switch and high local inter-VLAN demand, explain why SVIs may be a reasonable choice. Keep the actual capacity claim unmeasured.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Switched virtual interfaces — knowledge check
Apply the chapter topology and reason from forwarding evidence.
What is an SVI associated with?
Which condition is required for inter-VLAN routing on the illustrated Catalyst?
Why might a configured SVI remain down?
Which Cisco command converts a supported switchport into a routed port?
What is a reason to consider SVIs for local inter-VLAN traffic?