Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

SVI · Layer 3 Switch

Direct answer

An SVI used for inter-VLAN routing is the Layer 3 gateway interface for hosts in its VLAN on a multilayer switch.

When to use this

Use it to provide a routed gateway per VLAN and to connect those VLAN subnets through the local routing table.

First 30 seconds

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.

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Key commandshow interfaces vlan <id>
Scope / prerequisiteUse it to provide a routed gateway per VLAN and to connect those VLAN subnets through the local routing table.
Show · 2Reference · 1
What next?3 suggested next steps
Catalog command links3
Evidence1
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

How 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 route

Look 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.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Troubleshooting inter-VLAN routing on SVIs Narrow the fault
SymptomCommandLook forNext check
SVI downshow interfaces vlan 10Vlan10 is up, line protocol is upVLAN missing, no forwarding port in the VLAN, or shutdown
No routing between VLANsshow ip routeC routes for 10.10.10.0/24 and 10.10.20.0/24ip routing missing on the switch
Host cannot reach its gatewayshow ip arp vlan 10 / show mac address-table vlan 10Host MAC and ARP entryHost VLAN, gateway address and mask
One direction failsshow ip interface vlan 20Inbound/outbound ACLsReturn 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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • show ip interface brief | include Vlan — SVI status
  • show interfaces vlan <vlan> — line protocol
  • show 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

ItemPurpose
IP address in the VLAN's subnetHosts' gateway, or a real address with an FHRP virtual IP
ip helper-addressDHCP relay to a central server
FHRP (HSRP or VRRP)Gateway redundancy across two switches
ACLs where neededPolicy 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 switchSubinterfaces on a router
ForwardingHardware, at line rateRouter CPU or forwarding engine
Uplink usageNone for routing between local VLANsTraffic 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Confirmation

Confirm action

Continue?