Inter-VLAN Routing with Layer 3 Switch SVI
Configure Switch Virtual Interfaces on a multilayer switch, enable IPv4 routing, bridge 802.1Q trunks, and verify line-rate routing between VLANs.
In a busy multi-building enterprise campus, hundreds of employees stream video calls, query database records, and transfer multi-gigabyte engineering files simultaneously.
When traffic reaches this scale, legacy Router-on-a-Stick designs buckle under the pressure. Pushing every inter-VLAN frame back and forth over a single router cable creates a severe bottleneck that slows down the entire company.
To eliminate this bottleneck, modern campus networks deploy Layer 3 Multilayer Switches. In this lab, we configure Switch Virtual Interfaces (SVIs) on a Cisco Catalyst 3560, enable hardware wire-speed IP routing, and establish a routed uplink to an upstream ISP.
The Bandwidth Bottleneck: Router-on-a-Stick vs Multilayer SVI
In a Router-on-a-Stick topology, packets traveling between VLAN 10 and VLAN 20 must travel out the switch, climb up the router link, and turn around to travel back down the exact same cable.
This hairpin turn forces high-volume department traffic to compete for shared cable bandwidth. As traffic surges, the router CPU spikes, packet queues fill up, and users experience latency spikes.
Figure 1. Physical Trunk Bottleneck vs Internal SVI Wire-Speed Routing
Figure 1 contrasts this physical limitation with a Multilayer Switch. Instead of routing traffic through an external cable, a Layer 3 switch moves packets across its internal switching fabric using Application-Specific Integrated Circuits (ASICs).
Traffic between VLANs flows directly through internal silicon at speeds exceeding 32 Gbps, completely bypassing external cable constraints.
What is a Switch Virtual Interface (SVI)?
A Switch Virtual Interface is a logical Layer 3 gateway created directly inside switch memory for a specific VLAN.
To host workstations, an SVI looks and behaves exactly like a physical router port. When you assign 192.168.10.254 to interface Vlan 10, every computer in VLAN 10 points to that IP address as their default gateway.
Because the SVI lives inside the core switch chassis, routing decisions occur instantly without leaving the backplane.
The Hidden Cisco Switch Trap: The Global Routing Switch
Junior network engineers often encounter a confusing puzzle on new Catalyst switches. They configure several SVIs with valid IP addresses, but client computers still cannot ping across VLANs.
Cisco Catalyst multilayer switches ship from the factory with IPv4 routing turned completely off. Out of the box, the device operates strictly as a standard Layer 2 switch.
Figure 2. Cisco IOS Multilayer Switch IP Routing State Machine
As shown in Figure 2, you must wake up the Layer 3 forwarding engine by entering a single command in global configuration mode: ip routing.
This command initializes the Cisco Express Forwarding (CEF) table. Once enabled, the switch populates its hardware forwarding database and begins routing packets between active SVIs at wire speed.
Keep the SVI Autostate rule in mind: an SVI will remain down until at least one physical port belonging to that VLAN is active and forwarding.
Two Roles in One Chassis: Switched Trunks vs Routed Ports
In an enterprise campus core, a multilayer switch manages two very different traffic directions:
- Downlink toward Access Switches: The connection from MLS to distribution switch S1 uses an 802.1Q trunk port carrying multiple VLAN tags (VLAN 10, 20, 30, and Native VLAN 99).
- Uplink toward Internet Service Provider: When connecting to an upstream WAN router, you do not need VLAN tags or Spanning Tree loops. You only need a point-to-point IP link.
Figure 3. Downlink Switched Trunk vs Uplink Routed Port Interface Duality
Figure 3 demonstrates how to create a Routed Port on a Cisco switch. By navigating to interface GigabitEthernet0/2 and typing no switchport, we disable Layer 2 switching on that single physical port.
The port converts directly into a true router interface, allowing you to assign a public IP address (209.165.200.225/30) to communicate with the ISP gateway.
Campus Addressing and Interface Plan
Here is the complete network mapping for the core multilayer switch, distribution switch, and connected workstations:
| Device | Interface / SVI | IP Address | Subnet Mask | Network Role |
|---|---|---|---|---|
| MLS | VLAN 10 | 192.168.10.254 | 255.255.255.0 | Sales Department SVI Gateway |
| MLS | VLAN 20 | 192.168.20.254 | 255.255.255.0 | Finance Department SVI Gateway |
| MLS | VLAN 30 | 192.168.30.254 | 255.255.255.0 | Engineering SVI Gateway |
| MLS | Gi0/2 | 209.165.200.225 | 255.255.255.252 | Routed Port to ISP WAN |
| S1 / S2 / S3 | VLAN 99 | 192.168.99.1 - .3 | 255.255.255.0 | Switch Management SVIs |
| PC0 / PC3 | Fa0 (VLAN 10) | .10.1 / .10.2 | 255.255.255.0 | Sales Workstations |
| PC1 / PC4 | Fa0 (VLAN 20) | .20.1 / .20.2 | 255.255.255.0 | Finance Workstations |
| PC2 / PC5 | Fa0 (VLAN 30) | .30.1 / .30.2 | 255.255.255.0 | Engineering Workstations |
Step-by-Step Configuration on Core MLS
Follow these commands on the Catalyst 3560 Multilayer Switch to build the gateways and routed uplink:
Create VLANs and Activate Global IP Routing
Define the VLAN numbers in the local database and activate hardware packet routing across the switch chassis.
MLS(config)# vlan 10
MLS(config-vlan)# vlan 20
MLS(config-vlan)# vlan 30
MLS(config-vlan)# vlan 99
MLS(config-vlan)# exit
MLS(config)# ip routing
Configure Switch Virtual Interfaces (SVI Gateways)
Assign the default gateway IPv4 addresses to the virtual interfaces for each department network.
MLS(config)# interface Vlan 10
MLS(config-if)# ip address 192.168.10.254 255.255.255.0
MLS(config)# interface Vlan 20
MLS(config-if)# ip address 192.168.20.254 255.255.255.0
MLS(config)# interface Vlan 30
MLS(config-if)# ip address 192.168.30.254 255.255.255.0
MLS(config)# interface Vlan 99
MLS(config-if)# ip address 192.168.99.254 255.255.255.0
Configure Routed Port Uplink to ISP
Disable Layer 2 switching on port Gi0/2 and configure the point-to-point public transit IP address.
MLS(config)# interface GigabitEthernet0/2
MLS(config-if)# no switchport
MLS(config-if)# ip address 209.165.200.225 255.255.255.252
MLS(config-if)# no shutdown
Verification and End-to-End Traffic Matrix
To verify that the multilayer switch has successfully installed all gateways into its hardware table, run show ip route on MLS:
MLS# show ip route connected
C 192.168.10.0/24 is directly connected, Vlan10
C 192.168.20.0/24 is directly connected, Vlan20
C 192.168.30.0/24 is directly connected, Vlan30
C 192.168.99.0/24 is directly connected, Vlan99
C 209.165.200.224/30 is directly connected, GigabitEthernet0/2
Figure 4. Hierarchical Campus End-to-End Packet Forwarding Matrix
Figure 4 visualizes the complete end-to-end packet flow. When PC0 in VLAN 10 pings PC4 in VLAN 20, the packet travels up through access switch S2 and distribution switch S1.
At the core MLS, the packet hits SVI 10, routes across the internal backplane directly into SVI 20, and descends down to PC4 with zero external cable contention. Outbound internet queries seamlessly exit through the Gi0/2 routed uplink directly to the ISP.
Discussion & Community Notes
Ask questions, share configuration solutions, or discuss this practice lab.
