Pcornel
Networking · Switching › VLAN

SVI

Cheat sheet · https://pcornel.dk/topic.php?topic=586

Back to the Topic

Answer

An SVI (interface vlan <id>) is a Layer 3 interface for a VLAN on a switch. It is the hosts' default gateway on a Layer 3 switch, or the management address on a Layer 2 switch.

Remember

An SVI is up/up only if the VLAN exists and at least one port in that VLAN (access or trunk, forwarding in STP) is up. no shutdown is needed. On a Layer 3 switch, ip routing must be enabled for traffic to be routed between SVIs.

First checks

  • show ip interface brief | include Vlan — SVI status and address.
  • show interfaces vlan <id> — line protocol and why it is down.
  • show vlan brief — VLAN exists with active ports.
  • show interfaces trunk — VLAN forwarding on a trunk.
  • show ip arp vlan <id> — hosts resolved on the SVI.

Commands

show ip interface brief
Compact IPv4 interface/address/protocol state.
ip routing
Enable IPv4 routing on a Layer 3 switch.
no shutdown
Enable an administratively shut down interface.
ip address <address> <mask>
Assign an IPv4 address and mask to an interface.
ipv6 address <prefix>/<length>
Assign a static IPv6 address and prefix length.
interface vlan <id>
Create or enter a switched virtual interface (SVI) for a VLAN.
show interfaces vlan <id>
Display the status of an SVI.
show ip route
gateway reachable, remote VLAN fails

Verify in this order

VLAN exists → at least one port in the VLAN up and forwarding → SVI up/up → address configured → hosts resolve the gateway with ARP → traffic routed

Where it usually breaks

physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path

SVI · operational reference

SVI layerCanonical evidence
VLANVLAN active/present
SVIInterface up/up + IP
NeighborARP/ND entries
RoutingConnected route + CEF

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=586

Confirmation

Confirm action

Continue?