Use it when a VLAN gateway on a switch is down or unreachable.
SVI · Layer 3 Switch
A switched virtual interface (SVI, interface vlan <id>) is a Layer 3 interface for a VLAN, used as that VLAN's default gateway or for management; it is up only when the VLAN has an active port.
1. SVIs are virtual L3 interfaces per VLAN.
2. Up when VLAN exists with an active port.
3. Act as default gateways.
4. FHRP for redundancy.
5. Check autostate.
VLAN active → SVI up → gateway
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip address 10.10.10.1 255.255.255.0Verification & 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 Verification & troubleshooting Narrow the fault
| Symptom | Command | Look for | Next check |
|---|---|---|---|
| SVI down/down | show ip interface brief and show vlan brief | VLAN exists and has an active port | Create the VLAN, activate a port in it, or check the trunk allowed list and STP state |
| SVI up but hosts cannot route | show ip route | ip routing enabled; connected routes for each SVI | Host gateway and mask; show ip arp vlan <id> |
| One VLAN cannot reach another | show ip route <dest> | Connected route via the other SVI | ACLs on the SVI (show ip interface vlan <id>) |
Step 2 Common mistakes Narrow the fault
- SVI down because no active port in the VLAN.
- Forgetting
ip routingon the switch.
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.
- An SVI is a virtual Layer 3 interface for a VLAN on a switch.
- It acts as the default gateway for hosts in that VLAN.
- The SVI is up only if the VLAN has an active port or trunk.
show interfaces vlan <vlan>— SVI stateshow ip interface brief | include Vlan— up/up
ReferenceWhat it is1 section · depth on demand
What it is
A switched virtual interface (interface vlan <id>) is the Layer 3 interface of a VLAN on a multilayer switch, normally the default gateway for hosts in that VLAN. Routing between SVIs happens in the switch hardware once ip routing is enabled.
An SVI is up/up only when autostate is satisfied: the VLAN exists in the VLAN database and at least one access or trunk port carrying that VLAN is up and in STP forwarding. Without such a port the SVI stays down/down even with a correct IP address.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
SVI: the switch virtual interface
An SVI is the Layer 3 interface of a VLAN on a switch. Cisco's Catalyst 9300 interface guide describes SVIs as virtual VLAN interfaces for inter-VLAN routing or for reaching the switch by IP, one per VLAN; an SVI is created the first time you enter interface vlan <id>, and VLAN 1's SVI can't be deleted.
When an SVI is up
The interface guide states that an SVI doesn't become active until it's associated with a physical port. With autostate, the SVI is up when at least one port in the VLAN is up and forwarding (an access port in the VLAN, or a trunk carrying it in STP forwarding state).
| Setting | Effect |
|---|---|
switchport autostate exclude on a port | That port doesn't count when deciding the SVI's state |
no autostate on the SVI | SVI state no longer follows the VLAN's ports |
Gateway SVIs
DIST1(config)# ip routing
DIST1(config)# vlan 120
DIST1(config)# interface Vlan120
DIST1(config-if)# description VOICE gateway
DIST1(config-if)# ip address 10.120.0.2 255.255.255.0
DIST1(config-if)# standby 120 ip 10.120.0.1
DIST1(config-if)# standby 120 priority 110
DIST1(config-if)# standby 120 preempt
DIST1(config-if)# ip helper-address 10.20.0.10
DIST1(config-if)# no shutdown
DIST1# show interfaces Vlan120 | include line protocol|Internet address
Vlan120 is up, line protocol is up
Internet address is 10.120.0.2/24
DIST1# show standby brief | include Vl120
Vl120 120 110 P Active local 10.120.0.3 10.120.0.1
Common SVI problems
| Symptom | Cause |
|---|---|
| SVI up/down | No active port in the VLAN, or the VLAN missing from all trunks |
| SVI administratively down | no shutdown missing (SVIs are often created shut) |
| Hosts can't reach other VLANs | ip routing missing, or hosts use the wrong gateway |
| No DHCP for clients | ip helper-address missing on the SVI |
Management SVIs on Layer 2 switches
A pure Layer 2 switch usually has one SVI for management, plus ip default-gateway, which the routing guide describes as the default gateway used when IP routing is disabled.
Documented example, not captured output.
Quick reference
An SVI is the routed interface for a VLAN on a Layer 3 switch, usually acting as the default gateway for that VLAN. Good SVI design includes clear descriptions, a redundant gateway address shared between two switches, and the services that belong at the gateway, such as DHCP relay.
SVI design on Layer 3 switches:
interface Vlan20
description Users-Floor2
ip address 10.0.20.2 255.255.255.0
standby 20 ip 10.0.20.1
standby 20 priority 110
standby 20 preempt
ip helper-address 10.0.0.60
no ip redirects
no ip proxy-arp
With FHRP, clients use the virtual IP; each switch has its own real IP. Disable ip redirects when FHRP is used to avoid ICMP redirects to real addresses.
ReferenceConfiguration & state1 section · depth on demand
Configuration example (Cisco IOS XE)
ip routing
!
vlan 10
name USERS
!
interface Vlan10
ip address 10.10.10.1 255.255.255.0
no shutdown
!
interface GigabitEthernet1/0/10
switchport mode access
switchport access vlan 10
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 Network Devices → 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%