Use it to provide a routed gateway per VLAN and to connect those VLAN subnets through the local routing table.
SVI · Layer 3 Switch
An SVI used for inter-VLAN routing is the Layer 3 gateway interface for hosts in its VLAN on a multilayer switch.
1. An SVI is a routed interface for a VLAN on a Layer 3 switch.
2. Up only if the VLAN exists and has an active port (autostate).
3. Requires ip routing.
4. Acts as the VLAN gateway.
5. Check HSRP if used.
VLAN exists + active port → SVI up → connected route → inter-VLAN routing
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show interfaces vlan <id>Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show interfaces vlan <id>ReferenceDisplay the status of an SVI.
Use when: Verify whether an SVI is actually operational, especially when inter-VLAN routing or management fails.
Quick note: If SVI line protocol is down, inspect VLAN existence and active Layer 2 member/trunk state.
Cisco IOS / IOS XE · mixed · verifiesshow ip interface briefShowCompact IPv4 interface/address/protocol state.
Use when: Use as the prior manifest-approved bounded observation/validation surface for this exact Topic.
Quick note: Restores exact/ ownership only; this authored guidance is not observed production Evidence.
Cisco IOS XE · state · verifiesshow ip routeShowIPv4 RIB routes and selected next hops.
Use when: Use at the Network Troubleshooting, Ping, Traceroute and Debugging boundary after prerequisite state is verified.
Quick note: Operational guidance. One successful probe does not prove all sources, packet sizes, protocols, directions or times are healthy.
Cisco IOS XE · mixed · verifiesHow to read the output
show interfaces vlan <id>Look first: line/protocol state, errors/discards, rate, duplex/speed, last input/output
Healthy: State and counters align with expected traffic and physical conditions.
Warning: CRC/input errors, drops, resets, queue drops or unexpected negotiation.
Does not prove: An interface counter is a symptom until correlated with path/time/workload.
show ip routeLook first: route source/code, prefix, next hop, outgoing interface
Healthy: Expected prefix is installed with intended next hop/source.
Warning: Route absent, unexpected protocol/AD/metric, recursive next hop or wrong exit.
Does not prove: RIB presence does not prove FIB programming or packet delivery.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Troubleshooting inter-VLAN routing on SVIs Narrow the fault
| Symptom | Command | Look for | Next check |
|---|---|---|---|
| SVI down | show interfaces vlan 10 | Vlan10 is up, line protocol is up | VLAN missing, no forwarding port in the VLAN, or shutdown |
| No routing between VLANs | show ip route | C routes for 10.10.10.0/24 and 10.10.20.0/24 | ip routing missing on the switch |
| Host cannot reach its gateway | show ip arp vlan 10 / show mac address-table vlan 10 | Host MAC and ARP entry | Host VLAN, gateway address and mask |
| One direction fails | show ip interface vlan 20 | Inbound/outbound ACLs | Return route on the far host or firewall |
Step 2 Common mistakes Narrow the fault
- SVI shut down by default on some platforms (
no shutdown). - VLAN does not exist in the VLAN database.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
The SVI IP prefix must match the host subnet and the SVI must be operational. Duplicate addressing, wrong masks or an inactive VLAN can break routing while configuration looks superficially present.
show ip interface brief | include Vlan— SVI statusshow interfaces vlan <vlan>— line protocolshow ip route connected— SVI subnets
ReferenceWhy it matters1 section · depth on demand
How an SVI routes between VLANs
Each VLAN gets one SVI with an address in that VLAN's subnet, and hosts use it as their default gateway. A packet from VLAN 10 to VLAN 20 arrives on SVI 10, the switch routes it (CEF lookup), rewrites the MAC addresses and sends it out of SVI 20 into VLAN 20, all in hardware.
Compared with router-on-a-stick, there is no single trunk bottleneck and no external router; the trade-off is that routing policy now lives on the switch. The SVI state follows autostate: the VLAN must exist and have at least one forwarding port.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
The SVI as the Layer 3 switch's gateway for a VLAN
On a Layer 3 switch, the SVI is the hosts' default gateway for their VLAN. The Catalyst 9300 interface guide describes it as the VLAN's interface to the routing function, one per VLAN, created the first time interface vlan <id> is entered.
C9300(config)# vlan 20
C9300(config-vlan)# name USERS
C9300(config)# ip routing
C9300(config)# interface Vlan20
C9300(config-if)# ip address 10.20.0.2 255.255.255.0
C9300(config-if)# standby version 2
C9300(config-if)# standby 20 ip 10.20.0.1
C9300(config-if)# ip helper-address 10.10.50.20
C9300(config-if)# no shutdown
C9300# show interfaces Vlan20 | include line protocol|Hardware|Internet
Vlan20 is up, line protocol is up
Hardware is Ethernet SVI, address is a4bb.6d33.4444 (bia a4bb.6d33.4444)
Internet address is 10.20.0.2/24
What a gateway SVI usually needs
| Item | Purpose |
|---|---|
| IP address in the VLAN's subnet | Hosts' gateway, or a real address with an FHRP virtual IP |
ip helper-address | DHCP relay to a central server |
| FHRP (HSRP or VRRP) | Gateway redundancy across two switches |
| ACLs where needed | Policy between VLANs |
Line state (documented)
The guide says an SVI isn't active until it is associated with a physical port. switchport autostate exclude on a Layer 2 port keeps that port from counting towards the SVI's state, and no autostate on the SVI disables the mechanism entirely.
Layer 3 switch versus external router
| SVI on the switch | Subinterfaces on a router | |
|---|---|---|
| Forwarding | Hardware, at line rate | Router CPU or forwarding engine |
| Uplink usage | None for routing between local VLANs | Traffic between VLANs crosses the trunk twice |
Limits
The guide lists a combined total of 1005 VLANs and SVIs on the switch, and notes that Network Essentials licensing supports only static routing and RIP on these interfaces.
Documented example, not captured output.
Quick reference
An SVI (Switched Virtual Interface) is a Layer 3 interface for a VLAN on a multilayer switch, typically the default gateway for that VLAN.
ip routing
interface Vlan20
ip address 10.0.20.1 255.255.255.0
ip helper-address 10.0.0.60
no shutdown
show ip interface brief | include Vlan
The SVI is up/up only if the VLAN exists and at least one port in that VLAN is up/forwarding (autostate). autostate exclude on monitoring ports prevents them from keeping the SVI up.
ReferenceConfiguration & state1 section · depth on demand
Configuration example (Cisco IOS XE)
ip routing
!
interface Vlan10
ip address 10.10.10.1 255.255.255.0
no shutdown
interface Vlan20
ip address 10.10.20.1 255.255.255.0
no shutdown
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Switching → VLAN → Inter-VLAN Routing → Layer 3 Switch → SVI. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%