What is a Switch Virtual Interface?

Getting into the world of Layer 3 switches, one of the first few concepts that we get to know is the SVI (Switch Virtual Interface).

It is a virtual interface, meaning, it’s logical, no physical port is related to it, although it works as one, both Layer 2 & Layer 3.

An SVI is usually the gateway for end devices belonging to that broadcast domain defined by the VLAN.

It performs Layer 3 routing for packets that belong to the VLAN, meaning we can configure most of the Layer 3 features (IP, ACL, QoS, etc.) on these interfaces.

Why would I use an SVI?

These virtual interfaces have multiple functions; the most important ones are listed down below:

  • Provide network connectivity to the switch.
  • Routing between VLANs by providing a default gateway.
  • Supports routing protocols
  • Faster than a layer 3 physical port.

Cisco IOS & SVI

Cisco Catalyst switches (both Layer 2 and Layer 3) have a default SVI for VLAN 1 and it acts as the management VLAN for that switch.

Configure an IP address on this interface to enable remote access to the switch via Telnet or SSH.

Each SVI automatically maps to its corresponding VLAN—for example, interface VLAN 1 maps only to VLAN 1.

For an SVI to be displayed as up/up it is necessary that:

  • That the VLAN exists in the VLAN database of the switch.
  • At least one port (trunk or access) is active for that VLAN.
  • That the SVI is not administratively down.

How to configure an SVI

First things first, to configure an SVI, we have to create the VLAN first.

We can confirm if the VLAN is or is not already in the VLAN database by running the command show vlan brief and show vlan id <VLAN>.

If the VLAN is not created yet, simply run the command VLAN<#> in the configuration mode and it will be created (see below).

VLAN and SVI configuration.

Don’t forget to run the command “ip routing” if it’s the first time you’re configuring it with an SVI.

Run the show vlan brief command again to confirm VLAN creation and verify its assignment to a switchport.

How to configure an access switchport with a new VLAN.

Run the show vlan brief command again to see it has been created and assigned to a switchport.

Run the show ip interface brief command and you should see something like this (Status and Protocol should be up).

Done! You can now use the VLAN 10 SVI to enable network communication.

Now you understand what a Switch Virtual Interface (SVI) is, how it functions, and how to configure it on Cisco devices.

Feel free to leave a comment to contribute to this post.

More info on Cisco SVI.