Switch Virtual Interfaces

svi-operation

What is SVI (Switch Virtual Interface)?

A Switch Virtual Interface (SVI) is a logical Layer 3 interface configured on a multilayer switch to enable inter-VLAN routing. It allows devices in different VLANs to communicate with each other without using an external router. In other words, Inter VLAN Routing, Routing between VLANs can be achieved by SVIs (Switch Virtual Interfaces). Here, we need to have a Multi Layer Switch. Layer 2 switches can also have SVI, but only one. This is the default switch management SVI created for VLAN 1.

 


Want to configure SVI on a Cisco device? Check the Step-by-Step SVI Configuration Guide.


 

For Inter VLAN Routing, firstly, we need to use “ip routing” command on the multi layer switch that our VLANs reside. After this command, we can create a Switch Virtual Interface for each VLAN on the switch and we can assign an IP address to this SVI (Switch Virtual Interfaces). Then, At the multi layer switch, routing will be done and the communication between these VLANs will be provided.

 

switch-virtual-interfaces

SVI (Switch Virtual Interfaces)

 


How SVI Works (Inter-VLAN Routing): SVI Operation Steps

In a Multilayer switch, each VLAN is associated with an SVI. When a device in one VLAN wants to communicate with another VLAN, the traffic is sent to its default gateway (SVI). The switch routes the traffic internally and forwards it to the destination VLAN.

 

How SVI Works? What are the steps of SVI Operation? For Switch Virtual Interface (SVI) Operation, think about the below figure.

 

How SVI Works - SVI Operation Steps, SVI inter VLAN routing diagram on multilayer switch

How SVI Works – Switch Virtual Interface Operation Steps

By default devices in different VLANs can not communicate. But with the help of a layer 3 device (a router, a multi layer switch), they can communciate. Here, a PC in VLAN 2 will communicate with a PC in VLAN 4 with Switch Virtual Interfaces. The SVI Operation steps for this communiation will be like below:

  1. Traffic originates from a device in VLAN 2
  2. The packet is sent to the default gateway (SVI of VLAN 2)
  3. The multilayer switch performs Layer 3 routing
  4. The packet is forwarded to the SVI of VLAN 4
  5. The traffic is delivered to the destination device in VLAN 4

 


SVI Configuration (Step-by-Step)

We have learned how SVI works and SVI operation steps one by one. How about Cisco SVI Configuration. Now, let’s talk about Cisco SVI Configuration Step By Step. We will follow the below steps for Cisco Switch Virtual Interface Configuration. 

  1. Creating VLANs
  2. Creating Switch Virtual Interfaces (SVIs)
  3. Enabling IP Routing
  4. SVI Verification 

 


Creating VLANs (Virtal LANs)

To create VLANs, we will use vlan vlan-id command. Here, we will create vlan 2 and vlan 4 on Cisco switch.

 


Switch# configure terminal
Switch(config)# vlan 2
Switch(config)># vlan 4

 


Creating Switch Virtual Interfaces (SVIs)

After creting VLANs on Cisco switch, it is time to configure SVIs on Cisco switch. We will create Switch Virtual Interfaces with interface vlan vlan-id command. After that we will assign an ip address from the subnet of that VLAN with ip address ip-address subnet-mask command. VLAN 2 is using 192.168.2.0/24 block and VLAN 4 is using 192.168.4.0/24 block.  We will give the first addresses in these block to SVIs. Then, we will open the interface with no shutdown command.

 


Switch(config)# interface vlan 2
Switch(config-if)# ip address 192.168.2.1 255.255.255.0
Switch(config-if)# no shutdown
Switch(config-if)# interface vlan 4
Switch(config-if)# ip address 192.168.4.1 255.255.255.0
Switch(config-if)# no shutdown

 


Enabling IP Routing on Layer 3 Switch

After configuring VLANs and SVIs, it is time to add the most important command of this SVI configuration example. We will enable ip routing with ip routing command under the global configuration mode.

 


Switch(config)# ip routing

 


SVI Verification

To verify Cisco SVI Configuration, you can use the below SVI verification commands:

 


Switch# show ip interface brief
Switch# show ip route
Switch# show vlan brief

 

After the verification, our SVI Configuration is ready! You can also learn SVI configuration with real CLI examples here: SVI (Switch Virtual Interfaces) Configuration

 


SVI vs Router-on-a-Stick

After learning what SVI is and how it works, now let’s compare it with another Inter VLAN Routing solution with Router-on-Stick scenarios. Below, you can find a comparison table as SVI vs Router-on-Stick.

 

Feature SVI (Switch Virtual Interface) Router-on-a-Stick
Where routing happens Inside Layer 3 switch On router
Performance High (hardware-based) Lower (CPU-based)
Scalability High Limited
Configuration Simple More complex (subinterfaces)
Bottleneck Very low High (single trunk link)
Cost Higher Lower

Key Point:  SVI provides high performance and scalability, making it ideal for enterprise networks.
Router-on-a-Stick is a cost-effective solution suitable for small networks and lab environments.

 


Frequently Asked Questions

What is an SVI?

SVI is a virtual Layer 3 interface on a switch used for inter-VLAN routing.

 


Do I need a router for inter-VLAN routing with SVI?

No, a multilayer switch can perform routing internally.

 


Why is “ip routing” required in SVI Configuration?

It enables Layer 3 routing functionality on the switch.

 


To learn detailed SVI Configuraiton on Cisco devices, check also Step-by-Step SVI Configuration Guide.


 

Lesson tags: SVI, Switch Virtual Interface, inter vlan routing
Back to: CCNP Enterprise 350-401 ENCOR v1.1 > VLANs

Leave a Reply

Your email address will not be published. Required fields are marked *

CCNP Enterprise 350-401 ENCOR v1.1

Collapse
Expand