Switching and VLANsIntermediate21 min read

What Is Switched Virtual Interface in Networking?

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security
On This Page

Quick Definition

A Switched Virtual Interface, or SVI, is a special virtual port inside a managed switch that lets it talk to devices in different VLANs. It acts like a router's interface but lives inside the switch software. This allows one switch to handle both switching and routing for many VLANs. You configure an IP address on the SVI so devices can send traffic to other networks through the switch.

Commonly Confused With

Switched Virtual InterfacevsRouted Port

A routed port is a physical switch port configured in Layer 3 mode, acting like a router interface. Unlike an SVI, which is virtual and tied to a VLAN, a routed port is tied to a specific physical connector and does not carry VLAN tags. Routed ports are used for point-to-point links between switches or routers, while SVIs are used for inter-VLAN routing.

If you plug a cable from a switch to a router, you might configure a routed port on the switch. If you want hosts in VLAN 10 to talk to hosts in VLAN 20, you would use an SVI.

Switched Virtual InterfacevsVLAN Interface (Access Port)

An access port is a physical switch port assigned to a single VLAN, used to connect end devices. It operates at Layer 2 only. An SVI, on the other hand, is a virtual Layer 3 interface that does not connect directly to end devices but provides routing between VLANs. The access port is where the host plugs in; the SVI is where the host's default gateway lives.

Port 1 is an access port in VLAN 10, connecting a PC. The SVI for VLAN 10 provides the PC's gateway IP. The port and the SVI are different things.

Switched Virtual InterfacevsTrunk Port

A trunk port is a physical port that carries traffic for multiple VLANs using 802.1Q tagging. It connects switches to each other or to routers. An SVI is not a port; it is a logical interface for routing. Trunk ports allow VLANs to extend across switches, while SVIs enable communication between those VLANs.

A trunk port between two switches carries VLAN 10 and VLAN 20 traffic. Each switch has SVIs for VLAN 10 and VLAN 20 to allow inter-VLAN routing locally.

Must Know for Exams

Switched Virtual Interface is a core topic in several major IT certification exams, especially those focusing on networking. In the Cisco CCNA exam (200-301), SVIs are tested directly under the 'Configure and verify VLANs and inter-VLAN routing' objective. Candidates must understand how to create an SVI, assign it an IP address, and ensure it is in the 'up/up' state. Exam questions often ask you to identify why a host cannot ping its default gateway, and the answer frequently involves an SVI being administratively down or misconfigured. The CCNA also tests the difference between an SVI and a routed port, as well as when to use each.

For CompTIA Network+, while SVIs are not named explicitly, the concept of 'default gateway' and 'inter-VLAN routing' is covered. Questions may describe a scenario where a switch is performing routing between VLANs, and you need to know that the gateway IP must be configured on the switch itself. In more advanced exams like CCNP Enterprise (ENCOR 350-401), SVIs are used in the context of first-hop redundancy protocols (HSRP, VRRP, GLBP), and you may need to configure virtual IPs on SVIs. The Cisco DevNet Associate exam also touches on SVIs when discussing network automation, as you might need to use APIs to create or modify SVIs.

Question types include multiple-choice scenarios where you must select the correct configuration command (e.g., 'interface vlan 10'), simulation questions where you actually configure an SVI, and troubleshooting questions that show a 'show ip interface brief' output with an SVI in 'down/down' state. Learners often mistake an SVI for a physical interface, so exam traps focus on the fact that an SVI is not connected to any physical cable. Instead, its status depends on the VLAN being present on the switch and at least one port in that VLAN being in the 'up/up' state. Understanding this dependency is often the key to solving exam problems correctly.

Simple Meaning

Imagine you live in a large apartment building with many separate units. Each unit is like a VLAN, a separate group of devices that cannot talk to other units without help. Normally, if someone in unit 1 wants to send a message to unit 2, they would have to go outside the building, walk to a central post office, and then have the mail delivered back, that is like using an external router.

But what if you could put a small post office right inside the building lobby? That post office would be a single desk that can accept messages from any unit and pass them to any other unit. That desk is the Switched Virtual Interface (SVI).

The SVI is not a physical desk or a real port; it is a logical function created in the building's management office (the switch's operating system). For each unit, there is one SVI. When a device in unit 1 wants to talk to unit 2, it sends the message to its own SVI, which then forwards it to the SVI for unit 2, which finally delivers it inside unit 2.

The SVI is the reason a single switch can act as both a switch and a router for many VLANs, without needing extra hardware. In technical terms, the SVI is a virtual Layer 3 interface that you create on a switch. You give it an IP address and subnet mask, and that IP becomes the default gateway for all devices inside that VLAN.

When devices send traffic outside their VLAN, the switch uses the SVI to route the packets to the correct destination VLAN. This is how modern networks keep different departments or security zones separate while still allowing controlled communication between them.

Full Technical Definition

A Switched Virtual Interface (SVI) is a logical Layer 3 interface on a multilayer switch that provides IP connectivity to a specific VLAN. Unlike a physical router interface, an SVI does not correspond to a hardware port; instead, it exists entirely within the switch's software and is associated with a VLAN by its VLAN ID. When you create an SVI for VLAN 10, for example, the switch can route packets between VLAN 10 and any other VLAN that also has an SVI configured. This is the foundation of inter-VLAN routing on modern enterprise switches.

From a protocol standpoint, an SVI participates in the same routing and switching processes as a physical interface. The switch maintains a routing table that includes the SVI's IP network as a directly connected route. When a packet arrives on a port in VLAN 10 and is destined for an IP address in VLAN 20, the switch performs a Layer 3 forwarding decision. It looks up the destination IP in its routing table, finds the SVI for VLAN 20 as the next-hop interface, and then forwards the packet out of that SVI. The switch rewrites the Layer 2 header, replacing the source and destination MAC addresses with those of the SVI interfaces. This is called routing in hardware, often leveraging application-specific integrated circuits (ASICs) for wire-speed performance.

Standards and protocols that involve SVIs include IEEE 802.1Q for VLAN tagging, which ensures that frames are correctly identified as belonging to a specific VLAN as they traverse trunk links. Routing protocols like OSPF, EIGRP, or BGP can be enabled on an SVI just as on a physical interface, allowing the switch to exchange routing information with other Layer 3 devices. Hot Standby Router Protocol (HSRP) or Virtual Router Redundancy Protocol (VRRP) can also be configured on SVIs to provide first-hop redundancy. Access control lists (ACLs) and quality of service (QoS) policies can be applied directly to an SVI to filter traffic or prioritize certain flows. In many network designs, the SVI is the default gateway for all hosts in a VLAN, and it is common to see one SVI per VLAN on a Layer 3 switch. In larger environments, SVIs are used in conjunction with routed ports (physical interfaces in Layer 3 mode) to create a scalable, hierarchical network.

Real-Life Example

Think of a large office building with several departments: Sales, Engineering, and HR. Each department has its own floor, and people on one floor cannot easily visit another floor because the elevators require a special key. This is like VLANs isolating traffic. Now, the building management decides to put a single information desk in the lobby that can accept messages from any floor and pass them to any other floor. That desk is the SVI. The desk does not have a physical mailbox for each person; instead, it has a directory that lists each floor and the person who manages messages there. When someone from Sales wants to send a package to someone in Engineering, they bring it to the lobby desk. The desk checks its directory, finds the Engineering floor manager, and forwards the package. The floor manager then delivers it to the correct person.

In this analogy, the lobby desk is the SVI, and the directory is the routing table. The Sales floor is VLAN 10, the Engineering floor is VLAN 20, and the HR floor is VLAN 30. The SVI is created once per floor, and each SVI has its own IP address (like a phone number for that floor's desk). When a computer in Sales (VLAN 10) wants to send data to a server in Engineering (VLAN 20), it sends the data to its own SVI (the lobby desk). The SVI checks its routing table, sees that the destination is in VLAN 20, and then forwards the data to the SVI for VLAN 20. That SVI then delivers the data to the appropriate device in Engineering. The key point is that the building does not need a separate physical post office for each floor; the single lobby desk handles all inter-floor communication. This is exactly how an SVI works: it is a single logical interface per VLAN that handles all routing to and from that VLAN, saving hardware and simplifying management.

Why This Term Matters

In modern networking, VLANs are essential for segmenting traffic, improving security, and reducing broadcast domains. However, VLANs are isolated by design, meaning devices in different VLANs cannot communicate without a Layer 3 device. Traditionally, this required an external router with one physical interface per VLAN, which was expensive, consumed many ports, and created a single point of failure. The Switched Virtual Interface solves this problem by allowing a single multilayer switch to perform both switching and routing internally. This drastically reduces hardware costs and cabling complexity while increasing performance because routing happens within the switch's backplane instead of over an external link.

For IT professionals, understanding SVIs is critical for designing efficient local area networks. When you configure a switch with multiple VLANs, you must create an SVI for each VLAN that needs to communicate with other VLANs. This is a fundamental skill for network administrators. Without SVIs, you would either need to use a router-on-a-stick configuration (which is slower and creates a bottleneck) or deploy a separate router for each VLAN, which is impractical in large environments. SVIs also support advanced features like inter-VLAN routing, DHCP relay, and network address translation (NAT) when combined with appropriate hardware. They are the backbone of campus and enterprise networks, and knowing how to configure and troubleshoot them is essential for anyone pursuing certifications like CCNA, CCNP, or CompTIA Network+.

How It Appears in Exam Questions

Exam questions about SVIs commonly fall into scenario-based, configuration, and troubleshooting categories. In scenario-based questions, you might be told that a company has multiple VLANs for different departments and needs to enable communication between them. The question will ask which technology to use, and the correct answer is 'Configure a Switched Virtual Interface on the multilayer switch.' These questions test your ability to identify the appropriate solution rather than just recall a definition.

Configuration questions are very direct. A typical prompt might show a switch with VLANs 10 and 20 already created, and then ask you to complete the configuration to allow hosts in VLAN 10 to ping hosts in VLAN 20. You would need to enter global configuration mode, create interface Vlan 10, assign an IP address, and do the same for Vlan 20. The question might also require you to enable the interface with 'no shutdown.' Some exams, like the Cisco CCNA simulation, expect you to type the commands exactly, including 'ip address' and 'no shutdown.' If you forget to bring the interface up, hosts will not be able to reach the gateway, which is a common trick.

Troubleshooting questions often present a 'show ip interface brief' output where an SVI is listed as 'administratively down' or 'down/down.' You might be asked why users in VLAN 20 cannot access the internet. The answer could be that the SVI for VLAN 20 is shut down, or that no access port in VLAN 20 is active. For example, if all ports in VLAN 20 are shut down or disconnected, the SVI will show as 'down/down' because it requires at least one active Layer 2 port in that VLAN. Another common pattern is that the VLAN itself was not created in the switch's VLAN database, so the SVI cannot come up. These questions test your understanding of the dependency chain: VLAN exists, ports are active in that VLAN, SVI is not shutdown, correct IP is configured, and the default gateway on hosts matches the SVI IP.

Practise Switched Virtual Interface Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

A small company has a single 24-port Layer 3 switch and wants to separate its network into two groups: the Sales team and the Engineering team. The Sales team uses VLAN 10 with the network 192.168.10.0/24, and the Engineering team uses VLAN 20 with 192.168.20.0/24. The company needs employees in both VLANs to be able to share files and send emails to each other, but they do not have a separate router. The network administrator decides to use the switch's built-in routing capability by configuring SVIs.

First, the administrator creates the two VLANs on the switch using the command 'vlan 10' and 'vlan 20'. Then, the appropriate switch ports are assigned to each VLAN: ports 1-12 are set as access ports in VLAN 10, and ports 13-24 are set as access ports in VLAN 20. Next, the administrator enters global configuration mode and creates the SVI for VLAN 10 by typing 'interface vlan 10'. An IP address is assigned: 'ip address 192.168.10.1 255.255.255.0'. The same is done for VLAN 20 with IP 192.168.20.1. Both SVIs are enabled with the 'no shutdown' command.

Now, each host in VLAN 10 is configured with a default gateway of 192.168.10.1, and each host in VLAN 20 uses a default gateway of 192.168.20.1. When a user in Sales (IP 192.168.10.50) wants to send a message to a colleague in Engineering (IP 192.168.20.100), the Sales computer sees that the destination IP is not in its own subnet, so it sends the packet to its default gateway (the SVI for VLAN 10). The switch's routing engine examines the destination IP, looks up its routing table, and finds that the network 192.168.20.0/24 is directly connected via the SVI for VLAN 20. The switch then forwards the packet out of the SVI for VLAN 20, rewriting the MAC addresses accordingly. The packet arrives at the Engineering computer. Without any additional hardware, the switch successfully routes traffic between the two VLANs using SVIs.

Common Mistakes

Forgetting to create the VLAN before creating the SVI

The SVI depends on the VLAN being present in the switch's VLAN database. If the VLAN does not exist, the SVI cannot become active (it will stay in a down state).

Always create the VLAN first using 'vlan <vlan-id>' in global configuration mode before configuring the interface Vlan.

Thinking the SVI is a physical port that needs a cable connected

An SVI is a logical interface; it does not correspond to a physical connector. No cable is ever plugged into an SVI. Its status depends on the VLAN having at least one active access or trunk port.

Remember that SVI status is tied to the existence and activity of its associated VLAN. If you see 'down/down', check if the VLAN exists and if any port in that VLAN is up.

Assigning an IP address to the SVI that conflicts with another device's IP

Each SVI must have a unique IP address within the network. A duplicate IP will cause routing issues and connectivity failures.

Plan your IP addressing scheme carefully. Ensure that the SVI IP is the default gateway for that VLAN and is not used elsewhere on the network.

Not enabling the SVI with 'no shutdown'

By default, newly created SVIs are in an 'administratively down' state. Without bringing them up, no traffic can be routed to or from that VLAN.

After configuring the IP address, always enter the 'no shutdown' command for each SVI.

Exam Trap — Don't Get Fooled

{"trap":"An SVI can be in 'up/up' state even if no devices are connected to the VLAN, as long as the VLAN exists.","why_learners_choose_it":"Learners think that the SVI requires active hosts to function, so they assume it would be down without any devices plugged in. However, the switch itself generates the necessary traffic to keep the SVI up."

,"how_to_avoid_it":"Understand that the SVI's 'up/up' status only requires the VLAN to exist and at least one switch port in that VLAN to be in an operational state (not necessarily connected to a host). The SVI is a property of the switch, not of the end devices."

Step-by-Step Breakdown

1

Create the VLANs

Before you can create an SVI, the VLAN must exist in the switch's VLAN database. Use the 'vlan <vlan-id>' command in global configuration mode. This step is critical because the SVI will not come up without a corresponding VLAN.

2

Assign switch ports to the VLANs

Assign physical ports to each VLAN using the 'switchport access vlan <vlan-id>' command. This ensures that devices connected to those ports are part of the correct VLAN. The SVI's status depends on at least one port in the VLAN being active.

3

Enter SVI configuration mode

Use the 'interface vlan <vlan-id>' command from global configuration mode. This creates the SVI if it does not already exist and takes you into interface configuration mode for that logical interface.

4

Configure an IP address on the SVI

Assign an IP address and subnet mask using the 'ip address <ip> <mask>' command. This IP will serve as the default gateway for all hosts in that VLAN. Ensure it is unique and belongs to the VLAN's subnet.

5

Enable the SVI

Use the 'no shutdown' command to bring the SVI administratively up. By default, SVIs are in a shutdown state. If you forget this step, the SVI will remain 'administratively down' and will not route traffic.

6

Verify the SVI status

Use 'show ip interface brief' or 'show interfaces vlan <vlan-id>' to confirm the SVI is in 'up/up' state. If it shows 'down/down', check that the VLAN exists and that at least one port in the VLAN is active. This verification step is essential for troubleshooting.

7

Configure hosts with the correct default gateway

Set each host's default gateway to the IP address of the SVI for its VLAN. Without this, hosts will not send traffic outside their subnet, and inter-VLAN routing will fail. This step completes the configuration.

Practical Mini-Lesson

A Switched Virtual Interface is one of the most important concepts for network professionals to master because it sits at the intersection of Layer 2 and Layer 3 networking. In practice, when you configure a switch to route between VLANs, the SVI is the tool that makes it happen. Professionals need to know that an SVI is not just a feature but a fundamental building block of campus networks. In enterprise environments, you might have hundreds of VLANs, each with its own SVI. These SVIs are used not only for basic routing but also for applying security policies, monitoring traffic, and enabling redundancy protocols.

Understanding the dependency chain is crucial: an SVI requires the VLAN to exist, at least one active Layer 2 port in that VLAN, and the SVI itself must not be shut down. Many troubleshooting calls at help desks are resolved by checking whether the SVI is up or if the VLAN was accidentally deleted. Another practical aspect is that SVIs consume resources on the switch. Each SVI uses a small amount of memory and CPU cycles, so creating SVIs for every possible VLAN without reason can degrade performance. Professionals should create SVIs only for VLANs that need Layer 3 connectivity.

Configuration contexts vary by vendor. On Cisco IOS, you use 'interface vlan <id>' and then assign an IP. On Juniper Junos, you configure a VLAN interface under the 'vlans' hierarchy. On Arista EOS, the syntax is similar to Cisco. Regardless of the platform, the underlying principle is the same. Professionals should also be aware that SVIs can participate in routing protocols. For example, you can enable OSPF on an SVI, allowing the switch to advertise the VLAN's network to other routers. This is how large networks scale.

What can go wrong? Common issues include IP address conflicts (another device using the same IP as the SVI), MTU mismatches (the SVI's MTU may need adjustment for jumbo frames), and spanning-tree topology changes that temporarily cause the SVI to flap. Another subtle issue is that some older switches require you to enable IP routing globally with the 'ip routing' command before SVIs will route traffic. Forgetting this will cause the SVI to be up but not forward packets. Mastering SVIs requires understanding both the configuration steps and the broader network design implications.

Memory Tip

Think of SVI as a 'virtual door' for each VLAN: you need to create the VLAN (the room), assign ports (the entrance), and then open the virtual door (no shutdown) for traffic to pass through.

Covered in These Exams

Current Exam Context

Current exam versions that test this topic — use these objectives when studying.

Related Glossary Terms

Frequently Asked Questions

What is the difference between an SVI and a VLAN interface?

There is no difference; the terms 'Switched Virtual Interface' and 'VLAN interface' are used interchangeably. Both refer to a logical Layer 3 interface on a switch that provides IP connectivity to a specific VLAN.

Can I have multiple SVIs on the same VLAN?

No, you can only have one SVI per VLAN on a given switch. Each VLAN is associated with a single logical interface for routing purposes.

Why does my SVI show 'down/down' even though I configured it?

The SVI shows 'down/down' if the VLAN does not exist in the switch's database, or if there is no active port (access or trunk) in that VLAN. Create the VLAN and ensure at least one port is up.

Do I need a separate router if I use SVIs?

No, a Layer 3 switch with SVIs can handle inter-VLAN routing by itself. You only need an external router for connectivity to other networks, such as the internet.

What is the 'no shutdown' command for an SVI?

The 'no shutdown' command brings the SVI administratively up. Without it, the SVI remains in an 'administratively down' state and cannot route traffic.

Can I apply an ACL to an SVI?

Yes, you can apply access control lists (ACLs) to an SVI to filter traffic coming into or leaving the VLAN. This is a common way to enforce security policies between VLANs.

Summary

The Switched Virtual Interface is a fundamental concept in networking that enables inter-VLAN routing on a single multilayer switch. By creating a logical Layer 3 interface for each VLAN, you allow devices in different broadcast domains to communicate without additional hardware. This simplifies network design, reduces costs, and improves performance. Understanding SVIs is critical for network professionals because they appear across multiple certification exams, including Cisco CCNA, CCNP, and CompTIA Network+.

To configure an SVI, you must first create the VLAN, assign ports to it, then create the interface Vlan, assign an IP address, and bring it up with 'no shutdown'. Common mistakes include forgetting to create the VLAN, not enabling the SVI, or confusing it with a physical port. Exam traps often test the dependency chain: an SVI requires an existing VLAN and at least one active Layer 2 port to be 'up/up'. Mastering SVIs gives you the ability to design scalable, segmented networks that are secure and efficient.

In real-world IT, SVIs are used daily by network administrators to control traffic flow between departments, implement security policies, and provide redundant gateways through protocols like HSRP. Whether you are studying for an exam or managing a production network, the SVI is a tool you will rely on again and again.