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.

Edit this template Download .json
Learning objectives
- Create SVI interfaces as the gateway of each VLAN.
- Enable ip routing and configure a routed port (no switchport).
- Compare SVIs, subinterfaces and routed ports.
Devices and addressing
| Device | Type | Details |
|---|---|---|
| Internet | WAN | ISP |
| R1 | Router | Edge G0/0 10.0.0.1/30 |
| MSW1 | L3 | Layer 3 switch Gi1/0/1 10.0.0.2/30 SVI 10/20/30 |
| PC1 | PC / user | VLAN 10 192.168.10.10 |
| PC2 | PC / user | VLAN 20 192.168.20.10 |
| PC3 | PC / user | VLAN 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
show ip interface briefshow ip routeshow vlan briefping 192.168.30.10
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.
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.