Layer 3 Switch with SVI for CCNA: Inter-VLAN Routing on the Switch

A layer 3 switch routes between VLANs at hardware speed using virtual interfaces (SVIs), one per VLAN. It is faster and more scalable than router-on-a-stick and the standard in campus networks, so the CCNA compares it with both options.

Exam domain: IP Connectivity · Level: Intermediate · Updated on October 17, 2026 · 2 min read

Topology diagram “Layer 3 Switch with SVI for CCNA: Inter-VLAN Routing on the Switch” with 6 devices and 5 links
Topology: Layer 3 Switch with SVI for CCNA: Inter-VLAN Routing on the Switch

Edit this template Download .json

Learning objectives

Devices and addressing

DeviceTypeDetails
InternetWANISP
R1RouterEdge
G0/0 10.0.0.1/30
MSW1L3Layer 3 switch
Gi1/0/1 10.0.0.2/30
SVI 10/20/30
PC1PC / userVLAN 10
192.168.10.10
PC2PC / userVLAN 20
192.168.20.10
PC3PC / userVLAN 30
192.168.30.10

Reference configuration (Cisco IOS)

MSW1

ip routing
vlan 10
vlan 20
vlan 30
interface vlan 10
 ip address 192.168.10.1 255.255.255.0
interface vlan 20
 ip address 192.168.20.1 255.255.255.0
interface vlan 30
 ip address 192.168.30.1 255.255.255.0
interface g1/0/1
 no switchport
 ip address 10.0.0.2 255.255.255.252
ip route 0.0.0.0 0.0.0.0 10.0.0.1
interface g1/0/11
 switchport access vlan 10
interface g1/0/12
 switchport access vlan 20
interface g1/0/13
 switchport access vlan 30

Verification commands

CCNA exam tips

An SVI only comes up if the VLAN exists and at least one port in it is active.

Without the ip routing command a layer 3 switch behaves like a normal switch.

How to use this template

Press “Edit this template”: the editor opens with the topology loaded and ready to change (undo with Ctrl+Z). You can also copy the JSON and paste it into the editor with File ▸ Import JSON…. Then add devices, change IPs and export to PDF, PNG or SVG.

To practice, rebuild the topology in Cisco Packet Tracer, GNS3 or Cisco Modeling Labs and paste the reference configuration on each device. Addresses and names are examples: change them to create your own variants.

JSON template for the editor

This is the full diagram in JSON format. Paste it into the editor (File ▸ Import JSON…) or press the edit button to load it automatically.

Edit this template

Frequently asked questions

What is an SVI?

A virtual VLAN interface with an IP address that acts as the gateway of that VLAN on a layer 3 switch.

What is a routed port?

A port with no switchport that is given an IP directly, like on a router.

CCNA and Cisco are registered trademarks of Cisco Systems, Inc. This site is independent, not affiliated with Cisco and does not provide official exam material: the templates are study examples.

More related pages