Switching and VLANsIntermediate23 min read

What Is SVI in Networking?

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security

This page mentions older exam versions. See the Current Exam Context and Legacy Exam Context sections below for the updated mapping.

On This Page

Quick Definition

An SVI (Switch Virtual Interface) is a virtual interface created on a switch to act as the default gateway for devices in a VLAN. It lets the switch route traffic between different VLANs on its own, removing the need for a separate router. Think of it as the switch’s way of becoming the router for each VLAN it manages.

Commonly Confused With

SVIvsRouted Port

A routed port is a physical switchport configured as a Layer 3 interface (using 'no switchport'), while an SVI is a logical interface tied to a VLAN. Routed ports are used to connect the switch to a router or another Layer 3 device without VLAN tagging, whereas SVIs are used for inter-VLAN routing and management.

If you have a router connected to a switch, you might configure the switch port as a routed port (e.g., interface GigabitEthernet0/1, 'no switchport', then assign an IP). If you have multiple VLANs on the switch, you create SVIs for each VLAN.

A subinterface is created on a physical interface (e.g., GigabitEthernet0/1.10) and is used on a router for router-on-a-stick. SVIs are created directly on the switch and do not depend on a physical interface. Subinterfaces require an external router; SVIs work on the multilayer switch itself.

In a router-on-a-stick setup, you have one physical link from the router to the switch, and you create subinterfaces on the router for each VLAN. With SVIs, the switch handles routing internally.

SVIvsAccess Port vs Trunk Port

Access ports assign a single VLAN to a connected device, while trunk ports carry multiple VLANs between switches. SVIs are separate from port types; they operate at Layer 3, while access/trunk are Layer 2 concepts. However, SVIs depend on active ports in the VLAN, which can be access or trunk.

An access port in VLAN 10 allows the SVI for VLAN 10 to come up. A trunk port carrying VLAN 10 also helps bring up the SVI for VLAN 10, even if no access port is assigned.

Must Know for Exams

SVIs are a central topic in several major IT certification exams. In the Cisco CCNA (200-301), SVIs appear under the objectives 'Configure and verify VLANs and inter-VLAN routing' and 'Configure and verify Layer 2 and Layer 3 interfaces.' You can expect multiple-choice questions that ask you to identify the correct command to create an SVI, interpret the output of 'show ip interface brief' to determine which SVIs are up/up, or compare SVIs with routed ports and subinterfaces.

In simulation questions (often called 'lab sims'), you might be given a topology with two VLANs and asked to configure inter-VLAN routing using an SVI. You will need to create the VLANs, assign switchports, create the SVI with the correct IP address, enable the SVI (no shutdown), and verify connectivity with ping. Mistakes like forgetting to assign an IP to the SVI or not having any active ports in the VLAN will cause the SVI to show as down/down.

In the CCNA exam, SVIs are also tested in the context of management access: you may be asked to configure an SVI for VLAN 1 (or a management VLAN) and enable remote access via SSH. In the CompTIA Network+ (N10-008), SVIs are covered under the objective 'Compare and contrast routing technologies' (specifically, 'Layer 3 switch' vs. 'router').

Network+ questions often ask: 'Which device can perform inter-VLAN routing without a separate router?' The answer is a Layer 3 switch using SVIs. In the CCNP Enterprise (ENCOR 350-401), SVIs are examined in greater depth, including their use with first-hop redundancy protocols (HSRP, VRRP), routing protocol configuration on SVIs, and advanced troubleshooting.

You might see a scenario where two switches are configured with HSRP on the same VLAN SVI, and you must identify why one switch is not becoming active. In the AWS Advanced Networking Specialty exam, SVIs are less directly tested but appear in the context of connecting on-premises networks to AWS using a Layer 3 switch (e.g.

, with BGP on an SVI). In all these exams, the most common question pattern is scenario-based: 'A network administrator has configured VLAN 10 and VLAN 20 on a switch and assigned ports accordingly. Hosts in VLAN 10 can ping each other but cannot ping hosts in VLAN 20.

What is the most likely cause?' Answer: 'No SVI configured for inter-VLAN routing' or 'SVI is down because no ports are active in one VLAN.' Memorizing the 'interface vlan <id>' command and knowing that the SVI requires an active port in the VLAN to come up are essential exam takeaways.

Simple Meaning

Imagine you live in a large apartment building where every floor is a separate VLAN. People on the same floor can knock on each other’s doors easily (that’s Layer 2 switching). But if someone on floor two wants to send a package to someone on floor five, they can’t just walk through the hallway-they need a central mailroom that understands addresses and decides where each package should go.

In networking, that mailroom is a router. An SVI is like assigning a special mailbox (a virtual interface) for each floor right inside the building’s own management office. The switch itself becomes that mailroom.

It creates a logical gateway IP address for each VLAN, and when devices in one VLAN want to talk to devices in another VLAN, the switch receives the traffic on the SVI for the source VLAN, looks up the destination, and routes it out through the SVI of the destination VLAN. This is called inter-VLAN routing, and it happens entirely inside the switch without needing a separate physical router. SVIs are also used to manage the switch remotely-you assign an IP address to the SVI for the management VLAN, and then you can telnet or SSH into that IP to configure the switch.

Without an SVI, the switch would be invisible at Layer 3; you could only manage it through a direct console cable. An SVI is a virtual helper that gives a switch routing intelligence and makes VLANs reachable from the outside world.

Full Technical Definition

A Switch Virtual Interface (SVI) is a logical Layer 3 interface created on a multilayer switch (a switch that can perform both Layer 2 switching and Layer 3 routing). Each SVI is associated with a specific VLAN and serves as the default gateway for hosts within that VLAN. When a host in one VLAN sends traffic to a host in another VLAN, it forwards the packet to its default gateway-the SVI IP address.

The switch then examines the packet’s destination IP, performs a routing table lookup, and forwards the packet out through the SVI of the destination VLAN. This process is known as inter-VLAN routing. SVIs are created using the command "interface vlan <vlan-id>" in Cisco IOS or similar syntax in other vendors.

Once created, the SVI must be assigned an IP address and subnet mask, and the corresponding VLAN must exist on the switch with at least one access port assigned to it (or a trunk carrying that VLAN) for the SVI to become active (line protocol up). SVIs support standard Layer 3 features such as routing protocols (OSPF, EIGRP, static routes), ACLs, HSRP/VRRP for redundancy, and DHCP relay. They also support ICMP (ping, traceroute) for testing.

In a typical enterprise network, a management VLAN (often VLAN 1 or a dedicated VLAN) uses an SVI for remote administration via SSH or SNMP. Multiple SVIs can be created on the same switch, one per VLAN, effectively turning the switch into a router with many logical interfaces. However, each SVI consumes memory and CPU cycles, so best practices recommend limiting the number of SVIs to what is necessary.

The SVI line protocol state depends on the existence of at least one active port in the associated VLAN. If no ports are active in the VLAN, the SVI will show as administratively up but line protocol down. SVIs are distinct from routed ports (which are physical ports configured as Layer 3) and from subinterfaces (which are logical divisions of a physical interface).

On modern multilayer switches, SVIs are the preferred method for inter-VLAN routing over the older router-on-a-stick model because they provide higher performance and lower latency (traffic does not have to leave the switch). In exam contexts, understanding the difference between an SVI and a routed port is common, as is knowing when to use each. SVIs are also critical for implementing first-hop redundancy protocols like HSRP, where two switches share a virtual IP that serves as the default gateway for a VLAN.

Real-Life Example

Think of a large office building with separate departments on different floors. The Marketing department is on the first floor, Engineering on the second, and HR on the third. Each floor has its own internal phone system-people on the same floor can call each other directly using just the extension.

That’s Layer 2 switching within a VLAN. But if someone in Marketing needs to send a message to someone in Engineering, they can’t just use the floor’s internal phone; they have to go through the company’s main telephone exchange. In a traditional setup, you’d have a separate phone exchange (an external router) attached to the building.

But with an SVI, the building’s own telephone control room (the switch) is upgraded to include a virtual phone line for each floor. The control room assigns a specific phone number (IP address) to each floor. When Marketing dials Engineering, the call goes to the control room, which recognizes the Marketing phone number (SVI for VLAN 10) and routes the call to the Engineering phone number (SVI for VLAN 20).

All of this happens inside the building, without any call leaving the premises. If the building manager wants to call the control room from outside to check on the system, they dial the general office number-which is the management SVI. Without that virtual line, the control room would be unreachable from outside.

This analogy also explains why SVI state depends on active ports: if Engineering’s floor is empty (no active devices), the virtual phone line for Engineering goes dead (line protocol down), even though the control room is still configured. In real network troubleshooting, you’d check that at least one device is connected to the VLAN to bring the SVI up.

Why This Term Matters

SVIs matter because they allow network administrators to segment traffic into VLANs for security and performance while still enabling communication between those segments-all without adding extra hardware. In practical IT, you often need separate VLANs for different types of traffic: voice, data, management, guest Wi-Fi, and so on. Without SVIs, each VLAN would be isolated, and users in different VLANs could not share resources like printers, servers, or internet access.

An external router (router-on-a-stick) could do inter-VLAN routing, but it creates a bottleneck and adds latency because all traffic must leave the switch, traverse a single link, and come back. SVIs eliminate that bottleneck by routing inside the switch using its high-speed backplane. This is especially important in modern networks where bandwidth demands are high (e.

g., video conferencing, large file transfers). SVIs also simplify management. You can assign an IP address to a single virtual interface and manage the entire switch remotely-no console cables required.

SVIs enable advanced features like VLAN-based access control lists (VACLs) and QoS policies, allowing granular control over traffic between VLANs. For example, you could allow HTTP traffic from the guest VLAN to the internet but block it from reaching the internal server VLAN. In a multi-site environment, SVIs also participate in routing protocols, meaning the switch can dynamically learn routes to remote networks and forward traffic intelligently.

From a career perspective, understanding SVIs is fundamental for anyone working with Cisco or other enterprise switches. Troubleshooting inter-VLAN connectivity is one of the most common real-world tasks, and knowing how to verify SVI status (with "show ip interface brief" or "show interfaces vlan <id>") is a daily skill. Finally, SVIs are a core component of network redundancy designs with HSRP/VRRP, ensuring that if one switch fails, another takes over the virtual gateway IP seamlessly.

Without SVIs, achieving high availability for VLAN gateways would be much more complex.

How It Appears in Exam Questions

Exam questions about SVIs typically fall into three patterns: configuration, troubleshooting, and conceptual comparison. In configuration questions, you might be given a partially completed switch configuration and asked to identify the missing command to enable inter-VLAN routing. For example, 'Which command configures an SVI for VLAN 10 with IP address 192.

168.10.1/24?' The correct answer is: 'interface vlan 10' followed by 'ip address 192.168.10.1 255.255.255.0' and 'no shutdown'. A trap answer might be 'interface fastEthernet 0/1.10' (that’s a subinterface for router-on-a-stick, not an SVI).

In troubleshooting questions, you might see a 'show ip interface brief' output where an SVI is listed as 'down/down'. The question asks why, and the options include 'The VLAN does not exist', 'The SVI is not assigned an IP address', 'No ports are assigned to the VLAN', or 'The switch is not a multilayer switch'. The correct answer is typically that no ports are active in that VLAN.

Another common pattern: a host in VLAN 10 can ping its default gateway (the SVI IP) but cannot ping a host in VLAN 20. The issue might be that the destination VLAN’s SVI is missing a route back (if using static routes) or that an ACL is applied to the SVI blocking traffic. Questions may also ask about the default gateway: 'What address should be configured as the default gateway on a host in VLAN 10?'

The answer is the IP address of the SVI for VLAN 10. In conceptual questions, you might be asked to differentiate between an SVI and a routed port. For example, 'Which interface type is used to route traffic between VLANs on a multilayer switch?'

Answer: SVI. Or 'Which interface type is used to connect a Layer 3 switch directly to a router without VLAN tagging?' Answer: routed port. In more advanced exams, you may see a scenario with HSRP: two switches have SVIs for VLAN 10 with IPs 192.

168.10.2 and 192.168.10.3, and a virtual IP 192.168.10.1. The question might ask which command configures the virtual IP on the SVI. The correct answer is 'standby 1 ip 192.168.10.1' under the SVI interface.

Finally, some questions test the understanding of SVI state dependencies: 'What must be true for an SVI to be in up/up state?' The SVI must have an IP address assigned, the VLAN must exist in the VLAN database, and at least one switchport (access or trunk) must be active in that VLAN. In CCNA simulations, you may be asked to configure all of this from scratch, including creating VLANs, assigning ports, creating the SVI, and verifying with ping.

Practise SVI Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

You are the network technician for a small company with two departments: Sales (VLAN 10) and Support (VLAN 20). The company uses a single Cisco Catalyst 2960 switch (a multilayer switch). Currently, all devices are in the default VLAN 1, and everyone can communicate, but the boss wants to separate traffic for security.

You create VLAN 10 and VLAN 20, and you assign the Sales computers to ports in VLAN 10 and Support computers to ports in VLAN 20. Now both groups can only talk within their own VLAN-they cannot ping each other. The boss complains that the Support team needs to access a shared database server that is physically connected to a port in VLAN 10.

You need to enable inter-VLAN routing. Since the switch is a Layer 3 switch, you decide to configure SVIs. First, you check that VLANs exist: 'show vlan brief' confirms VLAN 10 (Sales) and VLAN 20 (Support) are present.

Next, you enter global configuration mode and type: 'interface vlan 10', then 'ip address 192.168.10.1 255.255.255.0', and 'no shutdown'. You do the same for VLAN 20: 'interface vlan 20', 'ip address 192.

168.20.1 255.255.255.0', 'no shutdown'. Now the switch has two virtual interfaces. You configure the Sales computers with default gateway 192.168.10.1 and the Support computers with default gateway 192.

168.20.1. The database server (in VLAN 10) keeps its original gateway 192.168.10.1. Now when a Support computer sends a packet to the database server, it goes to its default gateway (192.

168.20.1), the switch routes it through the SVI for VLAN 10, and the packet reaches the server. The boss is happy. To verify, you use 'show ip interface brief' and see both VLAN10 and VLAN20 are up/up.

You then ping from a Support PC to the database server’s IP-success. This scenario reflects exactly how SVIs are used in real small-to-medium networks to provide inter-VLAN routing without extra hardware. You also set up SSH access to the switch by configuring an SVI for the management VLAN (say VLAN 1) with a management IP, so you can manage the switch remotely.

Common Mistakes

Assuming an SVI works without an IP address assigned.

An SVI must have an IP address to act as a gateway or management interface. Without an IP, it cannot route traffic or be reached remotely.

Always assign an IP address and subnet mask to the SVI using the 'ip address' command under the 'interface vlan' configuration mode.

Forgetting to use 'no shutdown' on the SVI.

By default, SVIs may be administratively down. The SVI will show as 'down/down' until you enable it with 'no shutdown'.

After configuring the SVI, always issue the 'no shutdown' command on that interface.

Confusing SVI with a subinterface.

A subinterface (e.g., GigabitEthernet0/1.10) is created on a physical interface and used for router-on-a-stick, not for a VLAN on a switch. SVIs are created with 'interface vlan <id>' and are purely logical.

Use 'interface vlan <id>' for SVIs on a multilayer switch. Use subinterfaces only on routers or switches that do not support SVIs (older models).

Thinking an SVI will come up even if no ports are active in the VLAN.

An SVI requires at least one active port (access or trunk) in the associated VLAN to be in 'up/up' state. If no devices are connected to that VLAN, the SVI remains 'up/down' or 'down/down'.

Ensure at least one switchport is assigned to the VLAN and is connected to an active device, or use a trunk port carrying that VLAN.

Creating an SVI for a VLAN that does not exist in the VLAN database.

The SVI will be created but will remain in 'down/down' state because the switch does not recognize the VLAN.

First create the VLAN using 'vlan <id>' in global configuration mode, then create the SVI.

Exam Trap — Don't Get Fooled

{"trap":"In a CCNA simulation, you are asked to configure inter-VLAN routing. You create VLANs, assign ports, and then configure 'interface vlan 10' with an IP address. The SVI shows as 'up/down'.

The question asks why the SVI is not 'up/up'.","why_learners_choose_it":"Learners often think the SVI is down because the IP address is wrong or because the switch is not a multilayer switch. They overlook the most common cause: the VLAN has no active ports."

,"how_to_avoid_it":"Remember the SVI line protocol (the second 'up/down') is tied to the VLAN’s port status. Always verify that at least one port is assigned to the VLAN and is connected/active. Use 'show vlan brief' to confirm active ports.

If you see no ports listed for that VLAN, assign one or use a trunk port carrying the VLAN."

Step-by-Step Breakdown

1

Create the VLAN

Before creating an SVI, the VLAN must exist in the switch’s VLAN database. Use the 'vlan <id>' command in global configuration mode. This ensures the switch recognizes the VLAN and can associate the SVI with it.

2

Assign ports to the VLAN

For the SVI to become active (up/up), at least one switchport must be assigned to the VLAN, either as an access port or as a trunk port carrying the VLAN. Without an active port, the SVI remains line protocol down.

3

Enter interface VLAN configuration mode

Use the command 'interface vlan <vlan-id>' to enter interface configuration mode for the SVI. This creates the logical interface if it does not already exist.

4

Assign an IP address to the SVI

Configure an IP address and subnet mask using 'ip address <ip> <mask>'. This IP serves as the default gateway for hosts in that VLAN and allows the switch to route traffic to/from that VLAN.

5

Enable the SVI with 'no shutdown'

By default, SVIs are administratively down. Use 'no shutdown' to bring the interface up. Without this step, the SVI will remain in a down state even if the VLAN has active ports.

6

Configure routing or default routes

For inter-VLAN routing to work, the switch must have a route to the destination VLAN. If all VLANs are directly connected via SVIs, the switch automatically adds routes. However, for traffic to reach external networks, you may need a default route (e.g., 'ip route 0.0.0.0 0.0.0.0 <next-hop>').

7

Verify the SVI status

Use commands like 'show ip interface brief' to verify the SVI shows 'up/up'. If it shows 'up/down', the VLAN likely has no active ports. Also use 'show vlan brief' to confirm active ports in the VLAN.

Practical Mini-Lesson

In real-world network engineering, configuring SVIs is a routine task, but it requires attention to detail. The first thing to know is that SVIs are only available on multilayer switches (Layer 3 capable). On a pure Layer 2 switch (like a Cisco 2960, which is actually a multilayer switch but may have IP routing disabled by default), you can still create SVIs, but you must enable IP routing with the 'ip routing' global command if you want inter-VLAN routing.

Without 'ip routing', the switch will act as a Layer 2 device and the SVI can only be used for management-hosts in VLAN A cannot ping hosts in VLAN B via the SVI. So always check that IP routing is enabled. Next, consider the SVI’s role in high availability.

In production networks, you often run HSRP or VRRP on SVIs to provide a virtual default gateway. For example, two switches each have an SVI for VLAN 10 with IPs 192.168.10.2 and 192.

168.10.3, and you configure a virtual IP 192.168.10.1. Hosts use the virtual IP as gateway, and if one switch fails, the other takes over. Configuration is done under the same SVI interface: 'standby 1 ip 192.

168.10.1' (Cisco proprietary HSRP) or 'vrrp 1 ip 192.168.10.1' (standard VRRP). Another practical point: ACLs and QoS policies can be applied directly to SVIs. For instance, you might apply an ACL to the SVI for the guest VLAN that permits only HTTP and HTTPS traffic out to the internet and denies all other traffic.

This is a powerful security tool. However, applying ACLs to SVIs consumes CPU resources, so use them judiciously. A common troubleshooting scenario: users in VLAN 20 cannot reach the server in VLAN 10.

You start by pinging the SVI IP of VLAN 20 from a client-if that fails, check the client’s default gateway configuration and the SVI’s IP. If ping to the gateway works but ping to the server fails, then test ping from the switch itself (using the SVI of VLAN 20) to the server IP. If that fails, the issue is either the server’s firewall or a misconfigured ACL on the SVI for VLAN 10 (or a missing route back).

Always look at the ACLs first. Also, remember that SVIs can be used for routing protocols like OSPF. You simply enable OSPF on the SVI with 'network <network> <wildcard> area <area>' or 'ip ospf <process-id> area <area>'.

This allows the switch to dynamically exchange routes with other routers. SVIs are not just a memorization topic for exams-they are a daily tool for network administrators. Mastering SVI configuration, verification (show ip interface brief, show ip route, show vlan), and troubleshooting will serve you well in any networking role.

Memory Tip

SVI stands for Switch Virtual Interface: think of a Virtual Interface (the 'VI' part) that turns a Switch into a Router for each VLAN.

Covered in These Exams

Current Exam Context

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

Legacy Exam Context

Older materials may mention these exam versions, but learners should use the current objectives for their target exam.

N10-008N10-009(current version)

Related Glossary Terms

Frequently Asked Questions

Can I create an SVI on any switch?

No, only multilayer switches (Layer 3 capable) support SVIs. Pure Layer 2 switches cannot route traffic and do not create SVIs for inter-VLAN routing, though some allow a single management SVI for remote access.

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

They are the same thing. In Cisco terminology, a VLAN interface is an SVI. Both refer to the logical interface created with 'interface vlan <number>'.

Do I need to enable IP routing to use an SVI for inter-VLAN routing?

Yes, on most multilayer switches, you must issue the 'ip routing' global command. Without it, the SVI will only serve as a management interface and will not route between VLANs.

My SVI shows 'up/down'. What does that mean?

The first 'up' means the interface is administratively enabled. The second 'down' means the line protocol is down because no active ports are in the associated VLAN. Assign a port to the VLAN or ensure a trunk carries the VLAN.

Can I have multiple SVIs for the same VLAN?

No, each VLAN can have only one SVI. However, you can use HSRP or VRRP on that single SVI to achieve redundancy by configuring two switches with the same virtual IP.

How many SVIs can I create on a switch?

It depends on the switch model and memory. Cisco Catalyst 2960 switches support up to 255 SVIs, but practical limits are lower due to CPU and memory constraints. Best practice is to only create SVIs for VLANs that actually need routing or management access.

Is an SVI the same as a routed port?

No. A routed port is a physical port configured as a Layer 3 interface. An SVI is a virtual interface tied to a VLAN. Routed ports do not belong to any VLAN and are used for point-to-point connections.

Summary

A Switch Virtual Interface (SVI) is a foundational concept in modern networking, especially for certifications like CCNA and Network+. It is a logical interface on a multilayer switch that provides a default gateway for a VLAN and enables inter-VLAN routing without additional hardware. Understanding SVIs is critical because they are used everywhere-from small office networks to large enterprise deployments-to segment traffic, improve security, and simplify management.

The key points to remember are: SVIs require an existing VLAN with active ports, an IP address, and the 'no shutdown' command to become operational. They are different from routed ports and subinterfaces, and they can be used with routing protocols, ACLs, and first-hop redundancy protocols. In exams, expect configuration and troubleshooting questions that test your ability to bring an SVI up, verify its status, and diagnose why it might be down.

The most common mistake is forgetting that the SVI needs at least one active port in the VLAN to show 'up/up'. In practice, mastering SVIs gives you the ability to design efficient, scalable networks. As you prepare for your certification, practice creating SVIs in a lab environment, experiment with 'ip routing' and 'no ip routing', and observe the SVI state changes.

This hands-on experience will make abstract concepts concrete and help you succeed both on the exam and in your IT career.