{"id":169394,"date":"2026-06-21T21:12:01","date_gmt":"2026-06-21T18:12:01","guid":{"rendered":"https:\/\/computingforgeeks.com\/?p=169394"},"modified":"2026-06-21T21:12:01","modified_gmt":"2026-06-21T18:12:01","slug":"cisco-layer3-switch-inter-vlan-svi","status":"publish","type":"post","link":"https:\/\/computingforgeeks.com\/cisco-layer3-switch-inter-vlan-svi\/","title":{"rendered":"Configure Inter-VLAN Routing with a Layer 3 Switch (SVI)"},"content":{"rendered":"<p>Router-on-a-stick gets inter-VLAN routing working, but it routes in software and squeezes every packet between VLANs through one trunk cable. A Layer 3 switch does the same job in hardware, on the same box the VLANs already live on, with nothing to hairpin. The gateways move off an external router and onto the switch itself as switched virtual interfaces, and the bottleneck disappears.<\/p>\n\n<p>This guide configures inter-VLAN routing on a Layer 3 switch with SVIs, end to end on Cisco IOS: enabling IP routing, building one SVI gateway per VLAN, and verifying that traffic routes between VLANs through the switch. Every command and all output come from a real lab. It is the production answer to the design in the <a href=\"https:\/\/computingforgeeks.com\/cisco-router-on-a-stick-inter-vlan-routing\/\">router-on-a-stick<\/a> guide, so if you have not seen that yet, the comparison at the end will make more sense after you have.<\/p>\n\n<p><em>Verified June 2026 on a Cisco IOS 15.2 Layer 3 switch with hosts in two VLANs.<\/em><\/p>\n\n<h2>Why a Layer 3 switch beats router-on-a-stick<\/h2>\n\n<p>In router-on-a-stick, a separate router holds the VLAN gateways on subinterfaces, and all inter-VLAN traffic travels up the trunk to that router and back down. One link carries it all, and a software router does the work. A Layer 3 switch already has every VLAN terminated on its ports, so it can route between them internally, in the switching hardware, at line rate. No external router, no trunk to hairpin over, far more throughput. The trade-off is cost: a Layer 3 switch is pricier than a plain router plus a Layer 2 switch, which is why both designs still have a place.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1440\" height=\"620\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/svi-topo.png\" alt=\"Layer 3 switch topology with SVIs as gateways for VLAN 10 and VLAN 20 hosts, routing inside the switch\" class=\"wp-image-169386\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/svi-topo.png 1440w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/svi-topo-300x129.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/svi-topo-1024x441.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/svi-topo-768x331.png 768w\" sizes=\"auto, (max-width: 1440px) 100vw, 1440px\" \/><\/figure>\n\n\n<p>The lab is deliberately small: one Layer 3 switch and two hosts, one per VLAN. Notice there is no router in the picture at all.<\/p>\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Device<\/th><th>Interface<\/th><th>Address<\/th><th>Role<\/th><\/tr><\/thead><tbody>\n<tr><td>SW1<\/td><td>Vlan10 (SVI)<\/td><td>10.10.10.1\/24<\/td><td>VLAN 10 gateway<\/td><\/tr>\n<tr><td>SW1<\/td><td>Vlan20 (SVI)<\/td><td>10.20.20.1\/24<\/td><td>VLAN 20 gateway<\/td><\/tr>\n<tr><td>SW1<\/td><td>Gi0\/1<\/td><td>access VLAN 10<\/td><td>Port to Host10<\/td><\/tr>\n<tr><td>SW1<\/td><td>Gi0\/2<\/td><td>access VLAN 20<\/td><td>Port to Host20<\/td><\/tr>\n<tr><td>Host10<\/td><td>Gi0\/0<\/td><td>10.10.10.10\/24<\/td><td>VLAN 10, gateway 10.10.10.1<\/td><\/tr>\n<tr><td>Host20<\/td><td>Gi0\/0<\/td><td>10.20.20.20\/24<\/td><td>VLAN 20, gateway 10.20.20.1<\/td><\/tr>\n<\/tbody><\/table><\/figure>\n\n<p>The two hosts are routers acting as end devices, each with an address and a default route to its SVI. Here is the lab running in GNS3:<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1120\" height=\"560\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/svi-gns3.png\" alt=\"GNS3 canvas of a Layer 3 switch with SVIs routing between two VLAN hosts\" class=\"wp-image-169387\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/svi-gns3.png 1120w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/svi-gns3-300x150.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/svi-gns3-1024x512.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/svi-gns3-768x384.png 768w\" sizes=\"auto, (max-width: 1120px) 100vw, 1120px\" \/><\/figure>\n\n\n<p>The full switch and host configs are in the <a href=\"https:\/\/github.com\/c4geeks\/ccna-labs\/tree\/main\/l3-switch-svi\" target=\"_blank\" rel=\"noopener\">companion lab repo<\/a> if you want to load them directly.<\/p>\n\n<h2>Step 1: Enable IP routing<\/h2>\n\n<p>This is the step everyone forgets. A multilayer switch ships with routing turned off, so it behaves as a pure Layer 2 device until you tell it otherwise. One global command flips it on:<\/p>\n\n\n<pre class=\"wp-block-code code\"><code>configure terminal\nip routing<\/code><\/pre>\n\n\n<p>Without <code>ip routing<\/code>, you can build SVIs all day and the switch still will not forward a single packet between them. If inter-VLAN routing is not working and the config looks right, this is the first thing to check.<\/p>\n\n<h2>Step 2: Create the VLANs and access ports<\/h2>\n\n<p>The Layer 2 design is unchanged from any switched network. Create the <a href=\"https:\/\/computingforgeeks.com\/cisco-vlans-configuration-guide\/\">VLANs<\/a>, then put each host port in its VLAN as an access port:<\/p>\n\n\n<pre class=\"wp-block-code code\"><code>vlan 10\n name SALES\nvlan 20\n name ENGINEERING\ninterface GigabitEthernet0\/1\n switchport mode access\n switchport access vlan 10\ninterface GigabitEthernet0\/2\n switchport mode access\n switchport access vlan 20<\/code><\/pre>\n\n\n<p>In a real network the access switches connect to this Layer 3 switch over <a href=\"https:\/\/computingforgeeks.com\/cisco-trunking-802-1q-configuration\/\">802.1Q trunks<\/a> carrying every VLAN. The switch terminates those VLANs on its SVIs, which is the next step.<\/p>\n\n<h2>Step 3: Create the SVIs<\/h2>\n\n<p>An SVI is a virtual Layer 3 interface tied to a VLAN, and its IP address becomes the default gateway for every host in that VLAN. Create one per routed VLAN:<\/p>\n\n\n<pre class=\"wp-block-code code\"><code>interface Vlan10\n ip address 10.10.10.1 255.255.255.0\n no shutdown\ninterface Vlan20\n ip address 10.20.20.1 255.255.255.0\n no shutdown<\/code><\/pre>\n\n\n<p>One behaviour catches people out. An SVI&#8217;s line protocol comes up only when its VLAN has at least one member port that is up and in the spanning-tree forwarding state (this is autostate). A freshly built SVI with no connected host ports in its VLAN, or one whose only port is STP-blocked, will sit in the down state even though the configuration is correct. Connect a host, or bring up a forwarding port in that VLAN, and the SVI comes up. With Host10 and Host20 plugged into Gi0\/1 and Gi0\/2, both SVIs are up.<\/p>\n\n<h2>Step 4: Verify the routing<\/h2>\n\n<p>The proof that this is now a router is the routing table. Each VLAN subnet should appear as a connected route out its SVI:<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2200\" height=\"550\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-route.png\" alt=\"SW1 show ip route showing both VLAN subnets directly connected via Vlan10 and Vlan20 SVIs\" class=\"wp-image-169388\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-route.png 2200w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-route-300x75.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-route-1024x256.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-route-768x192.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-route-1536x384.png 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-route-2048x512.png 2048w\" sizes=\"auto, (max-width: 2200px) 100vw, 2200px\" \/><\/figure>\n\n\n<p>Both subnets show as <code>C<\/code> (connected) out Vlan10 and Vlan20. Because each is directly attached, the switch routes between them with no protocol or static route needed. For a fuller breakdown of these codes, see the guide on reading <a href=\"https:\/\/computingforgeeks.com\/cisco-ip-routing-table-explained\/\">the routing table<\/a>. To confirm the SVI itself, look at the interface:<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2200\" height=\"782\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-int.png\" alt=\"SW1 show interfaces vlan 10 SVI up as Ethernet SVI with its IP, and show vlan brief with access ports\" class=\"wp-image-169389\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-int.png 2200w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-int-300x107.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-int-1024x364.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-int-768x273.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-int-1536x546.png 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-int-2048x728.png 2048w\" sizes=\"auto, (max-width: 2200px) 100vw, 2200px\" \/><\/figure>\n\n\n<p>Vlan10 is up with line protocol up, the hardware type is Ethernet SVI, and the address is the gateway you configured. The VLAN brief confirms Host10 sits in SALES (VLAN 10) and Host20 in ENGINEERING (VLAN 20).<\/p>\n\n<h2>Step 5: Verify traffic crosses VLANs<\/h2>\n\n<p>A clean routing table is necessary but not sufficient. The real test is a host in one VLAN reaching a host in another, with a traceroute to show the path:<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"2200\" height=\"690\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-host.png\" alt=\"Host10 cross-VLAN ping success and traceroute showing the SVI as the first hop on the Layer 3 switch\" class=\"wp-image-169390\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-host.png 2200w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-host-300x94.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-host-1024x321.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-host-768x241.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-host-1536x482.png 1536w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/wm-svi-host-2048x642.png 2048w\" sizes=\"auto, (max-width: 2200px) 100vw, 2200px\" \/><\/figure>\n\n\n<p>The ping from Host10 in VLAN 10 to Host20 in VLAN 20 succeeds at 100 percent, and the traceroute shows a single hop before the destination: 10.10.10.1, the Vlan10 SVI. That first hop is the switch itself doing the routing. Compare that with router-on-a-stick, where the same first hop would be a separate router reached over a trunk. Here, the gateway and the router are the same device.<\/p>\n\n<h2>Router-on-a-stick versus a Layer 3 switch<\/h2>\n\n<p>Both designs solve the same problem, so the choice comes down to scale, throughput, and what hardware you already own:<\/p>\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Factor<\/th><th>Router-on-a-stick<\/th><th>Layer 3 switch (SVIs)<\/th><\/tr><\/thead><tbody>\n<tr><td>Routing done by<\/td><td>External router, in software<\/td><td>The switch, in hardware (ASICs)<\/td><\/tr>\n<tr><td>Gateway lives on<\/td><td>Router subinterfaces<\/td><td>SVIs on the switch<\/td><\/tr>\n<tr><td>Inter-VLAN path<\/td><td>Up and back over one trunk<\/td><td>Internal to the switch<\/td><\/tr>\n<tr><td>Throughput<\/td><td>Limited by the single trunk<\/td><td>Line rate, no shared bottleneck<\/td><\/tr>\n<tr><td>Best for<\/td><td>Few VLANs, labs, small sites<\/td><td>Many VLANs, production, heavy east-west traffic<\/td><\/tr>\n<tr><td>Cost<\/td><td>Cheap (router + L2 switch)<\/td><td>Higher (multilayer switch)<\/td><\/tr>\n<\/tbody><\/table><\/figure>\n\n<p>The rule of thumb: reach for router-on-a-stick when you have a handful of VLANs and a spare router, and move the gateways onto a Layer 3 switch the moment VLAN count or inter-VLAN traffic grows. The commands you just ran are the ones production networks actually use.<\/p>\n\n<h2>Test yourself on Layer 3 switch routing<\/h2>\n\n<p>Eight questions on SVIs, enabling routing, and the difference from router-on-a-stick. Each answer is doc-checked or verified on the lab above.<\/p>\n\n<div class=\"cfg-quiz\" data-quiz=\"{\n  &quot;id&quot;: &quot;l3-svi&quot;,\n  &quot;title&quot;: &quot;Layer 3 switch inter-VLAN routing (SVI) quiz&quot;,\n  &quot;objective&quot;: &quot;3.x Configure and verify inter-VLAN routing with a Layer 3 switch (SVIs)&quot;,\n  &quot;intro&quot;: &quot;Eight questions on inter-VLAN routing with a Layer 3 switch: what an SVI is, enabling routing, creating the per-VLAN gateways, why it beats router-on-a-stick, and how to verify it. Every answer is doc-checked or verified on a real Layer 3 switch lab.&quot;,\n  &quot;questions&quot;: [\n    {\n      &quot;q&quot;: &quot;What is a switched virtual interface (SVI)?&quot;,\n      &quot;options&quot;: [\n        &quot;A physical routed port on a switch&quot;,\n        &quot;A virtual Layer 3 interface for a VLAN that acts as the gateway for hosts in that VLAN&quot;,\n        &quot;A trunk port&quot;,\n        &quot;A loopback on the switch&quot;\n      ],\n      &quot;answer&quot;: 1,\n      &quot;explanation&quot;: &quot;An SVI (&lt;code&gt;interface vlan 10&lt;\/code&gt;) is a virtual Layer 3 interface tied to a VLAN. Its IP address is the default gateway for every host in that VLAN, and the switch routes between SVIs internally.&quot;,\n      &quot;validated&quot;: &quot;lab&quot;\n    },\n    {\n      &quot;q&quot;: &quot;What must you enable before a Layer 3 switch will route between VLANs?&quot;,\n      &quot;options&quot;: [\n        &quot;spanning-tree&quot;,\n        &quot;ip routing&quot;,\n        &quot;switchport trunk&quot;,\n        &quot;no switchport on every port&quot;\n      ],\n      &quot;answer&quot;: 1,\n      &quot;explanation&quot;: &quot;Multilayer switches ship with routing disabled. The global command &lt;code&gt;ip routing&lt;\/code&gt; turns on Layer 3 forwarding so the switch will route between its SVIs. Without it, the SVIs exist but no inter-VLAN traffic is forwarded.&quot;,\n      &quot;validated&quot;: &quot;lab&quot;\n    },\n    {\n      &quot;q&quot;: &quot;How do you create the gateway for VLAN 10 on a Layer 3 switch?&quot;,\n      &quot;options&quot;: [\n        &quot;interface GigabitEthernet0\/1 then ip address&quot;,\n        &quot;interface Vlan10, ip address 10.10.10.1 255.255.255.0, no shutdown&quot;,\n        &quot;vlan 10 then ip address&quot;,\n        &quot;ip route 10.10.10.0&quot;\n      ],\n      &quot;answer&quot;: 1,\n      &quot;explanation&quot;: &quot;Create the SVI with &lt;code&gt;interface Vlan10&lt;\/code&gt;, give it the gateway IP, and bring it up with &lt;code&gt;no shutdown&lt;\/code&gt;. The VLAN itself must already exist in the VLAN database.&quot;,\n      &quot;validated&quot;: &quot;lab&quot;\n    },\n    {\n      &quot;q&quot;: &quot;When does a VLAN&#039;s SVI come up (line protocol up)?&quot;,\n      &quot;options&quot;: [\n        &quot;Always, as soon as it is configured&quot;,\n        &quot;When the VLAN exists, the SVI is no shutdown, and at least one port in that VLAN is up and in the spanning-tree forwarding state&quot;,\n        &quot;Only when a trunk is configured&quot;,\n        &quot;Only after ip routing is disabled&quot;\n      ],\n      &quot;answer&quot;: 1,\n      &quot;explanation&quot;: &quot;An SVI stays down until its VLAN has at least one member port that is up and forwarding (autostate). So a fresh SVI with no connected host ports, or one whose only port is STP-blocked, shows down even though the config is correct. Bring up a forwarding port in the VLAN and the SVI comes up.&quot;,\n      &quot;validated&quot;: &quot;doc&quot;\n    },\n    {\n      &quot;q&quot;: &quot;Why is a Layer 3 switch preferred over router-on-a-stick at scale?&quot;,\n      &quot;options&quot;: [\n        &quot;It is cheaper than any router&quot;,\n        &quot;It routes between VLANs in hardware with no single-link bottleneck, instead of hairpinning all traffic over one trunk&quot;,\n        &quot;It does not need VLANs&quot;,\n        &quot;It avoids the need for IP addresses&quot;\n      ],\n      &quot;answer&quot;: 1,\n      &quot;explanation&quot;: &quot;Router-on-a-stick sends all inter-VLAN traffic up and back over one trunk and routes in software. A Layer 3 switch routes between SVIs in its switching ASICs at line rate, with no shared-link bottleneck, which is why it is the production choice.&quot;,\n      &quot;validated&quot;: &quot;doc&quot;\n    },\n    {\n      &quot;type&quot;: &quot;numeric&quot;,\n      &quot;q&quot;: &quot;On a Layer 3 switch routing 4 VLANs with SVIs, how many SVIs do you configure? Type the number.&quot;,\n      &quot;answer&quot;: &quot;4&quot;,\n      &quot;hint&quot;: &quot;One gateway per VLAN.&quot;,\n      &quot;placeholder&quot;: &quot;e.g. 2&quot;,\n      &quot;explanation&quot;: &quot;One SVI per VLAN that needs a gateway, so four VLANs means four SVIs (interface Vlan10, Vlan20, and so on). Each SVI is that VLAN&#039;s default gateway.&quot;,\n      &quot;validated&quot;: &quot;doc&quot;\n    },\n    {\n      &quot;type&quot;: &quot;multi&quot;,\n      &quot;q&quot;: &quot;Which statements about Layer 3 switch inter-VLAN routing are correct? Select all that apply.&quot;,\n      &quot;options&quot;: [\n        &quot;Each VLAN subnet appears in show ip route as connected out its SVI (for example, C 10.10.10.0\/24 Vlan10)&quot;,\n        &quot;ip routing must be enabled for the switch to forward between SVIs&quot;,\n        &quot;Hosts use the SVI IP as their default gateway&quot;,\n        &quot;A traceroute between VLANs shows the SVI as the first hop&quot;\n      ],\n      &quot;explanation&quot;: &quot;All four are true. The SVIs show as connected routes, ip routing enables forwarding, the SVI IP is the gateway, and a cross-VLAN traceroute lands on the SVI as hop 1 because the switch itself is doing the routing.&quot;,\n      &quot;validated&quot;: &quot;lab&quot;,\n      &quot;answers&quot;: [\n        0,\n        1,\n        2,\n        3\n      ]\n    },\n    {\n      &quot;type&quot;: &quot;match&quot;,\n      &quot;q&quot;: &quot;Match each command or output to its role on a Layer 3 switch.&quot;,\n      &quot;pairs&quot;: [\n        {\n          &quot;left&quot;: &quot;ip routing&quot;,\n          &quot;right&quot;: &quot;Enables Layer 3 forwarding&quot;\n        },\n        {\n          &quot;left&quot;: &quot;interface Vlan10&quot;,\n          &quot;right&quot;: &quot;Creates the VLAN&#039;s gateway (SVI)&quot;\n        },\n        {\n          &quot;left&quot;: &quot;switchport access vlan 10&quot;,\n          &quot;right&quot;: &quot;Puts a host port in VLAN 10&quot;\n        },\n        {\n          &quot;left&quot;: &quot;show ip route&quot;,\n          &quot;right&quot;: &quot;Shows connected SVI subnets&quot;\n        }\n      ],\n      &quot;explanation&quot;: &quot;ip routing turns on routing, the SVI is the gateway, the access-port command places hosts in a VLAN, and show ip route confirms each VLAN subnet is connected via its SVI.&quot;,\n      &quot;validated&quot;: &quot;lab&quot;\n    }\n  ]\n}\n\" data-quiz-count=\"8\"><div class=\"cfg-quiz-loading\">Loading quiz...<\/div><\/div>\n\n<p>Drill the commands and concepts with the flashcard deck, and grab the same cards as an Anki deck for review on your phone:<\/p>\n\n<div class=\"cfg-fc\" data-fc=\"{\n  &quot;id&quot;: &quot;l3-svi&quot;,\n  &quot;title&quot;: &quot;Layer 3 switch SVI flashcards&quot;,\n  &quot;objective&quot;: &quot;3.x Inter-VLAN routing with a Layer 3 switch (SVIs)&quot;,\n  &quot;intro&quot;: &quot;The Layer 3 switch and SVI concepts worth knowing cold: what an SVI is, enabling routing, building per-VLAN gateways, verification, the autostate rule, routed ports, and when an L3 switch beats router-on-a-stick. Tap a card to flip it, then mark whether you knew it.&quot;,\n  &quot;cards&quot;: [\n    {&quot;front&quot;: &quot;What is an SVI?&quot;, &quot;back&quot;: &quot;A switched virtual interface: a virtual Layer 3 interface bound to a VLAN (interface vlan 10). Its IP is the default gateway for hosts in that VLAN. The switch routes between SVIs internally, so no external router is needed.&quot;},\n    {&quot;front&quot;: &quot;Enable routing on a Layer 3 switch&quot;, &quot;back&quot;: &quot;ip routing (global config). Multilayer switches ship with routing disabled, so without this the SVIs exist but no inter-VLAN traffic is forwarded. It is the single most-forgotten step.&quot;},\n    {&quot;front&quot;: &quot;Create a VLAN gateway (SVI)&quot;, &quot;back&quot;: &quot;vlan 10 (create the VLAN) -&gt; interface Vlan10 -&gt; ip address 10.10.10.1 255.255.255.0 -&gt; no shutdown. The IP becomes the default gateway for every host in VLAN 10.&quot;},\n    {&quot;front&quot;: &quot;Put host ports in their VLAN&quot;, &quot;back&quot;: &quot;interface range \/ interface GigabitEthernet0\/1 -&gt; switchport mode access -&gt; switchport access vlan 10. Access ports tie the physical host ports to the VLAN whose SVI is their gateway.&quot;},\n    {&quot;front&quot;: &quot;The SVI autostate rule&quot;, &quot;back&quot;: &quot;An SVI&#039;s line protocol comes up only when its VLAN exists, the SVI is no shutdown, AND at least one port in that VLAN is up and in the spanning-tree forwarding state (an access port or a trunk carrying the VLAN). A correctly-configured SVI whose only member port is down or STP-blocked shows down.&quot;},\n    {&quot;front&quot;: &quot;How an SVI subnet appears in the routing table&quot;, &quot;back&quot;: &quot;As a connected route out the SVI: C 10.10.10.0\/24 is directly connected, Vlan10 (plus the L \/32 local). Because both VLAN subnets are directly connected, the switch routes between them.&quot;},\n    {&quot;front&quot;: &quot;Verify the SVI itself&quot;, &quot;back&quot;: &quot;show interfaces vlan 10 shows the SVI up\/up, Hardware is Ethernet SVI, and the Internet address. show ip interface brief lists Vlan10\/Vlan20 with their IPs and status.&quot;},\n    {&quot;front&quot;: &quot;Prove inter-VLAN routing works&quot;, &quot;back&quot;: &quot;Ping from a host in one VLAN to a host in another. A cross-VLAN traceroute shows the SVI IP as the first hop (the switch is the router), then the destination host as the second.&quot;},\n    {&quot;front&quot;: &quot;Layer 3 switch vs router-on-a-stick&quot;, &quot;back&quot;: &quot;ROAS routes in software and hairpins all inter-VLAN traffic over one trunk (a bottleneck). A Layer 3 switch routes between SVIs in hardware (ASICs) at line rate with no shared-link limit. ROAS suits a few VLANs; the L3 switch is the production answer.&quot;},\n    {&quot;front&quot;: &quot;SVI vs routed port&quot;, &quot;back&quot;: &quot;An SVI (interface vlan 10) is a virtual Layer 3 interface for a whole VLAN. A routed port is a physical port taken out of switching with no switchport and given an ip address, used for point-to-point uplinks. Both are Layer 3, but the SVI serves a VLAN of hosts.&quot;},\n    {&quot;front&quot;: &quot;Default gateway for hosts behind an L3 switch&quot;, &quot;back&quot;: &quot;The SVI IP for their VLAN. A host in VLAN 10 points at the Vlan10 SVI (10.10.10.1), a host in VLAN 20 at the Vlan20 SVI (10.20.20.1). Same idea as any gateway, but it lives on the switch.&quot;},\n    {&quot;front&quot;: &quot;Do you still need VLANs and access ports with an L3 switch?&quot;, &quot;back&quot;: &quot;Yes. The Layer 2 design is unchanged: VLANs segment the hosts and access\/trunk ports carry them. The L3 switch simply adds the routing (SVIs + ip routing) on the same box instead of an external router.&quot;},\n    {&quot;front&quot;: &quot;Administrative distance of an SVI&#039;s connected route&quot;, &quot;back&quot;: &quot;0, like any connected route. Directly-connected subnets always win over learned routes, which is why the switch routes between its SVIs with no protocol or static route needed.&quot;},\n    {&quot;front&quot;: &quot;Common L3-switch inter-VLAN mistakes&quot;, &quot;back&quot;: &quot;Forgetting ip routing, the SVI left shut, the VLAN not created in the database, no active member port so the SVI stays down (autostate), or hosts pointing at the wrong gateway IP.&quot;},\n    {&quot;front&quot;: &quot;Does a Layer 3 switch replace the trunk uplink design?&quot;, &quot;back&quot;: &quot;Between access switches and the L3 switch you still use trunks to carry multiple VLANs. The L3 switch terminates those VLANs on SVIs and routes between them, removing the separate router and its single trunk that router-on-a-stick needed.&quot;},\n    {&quot;front&quot;: &quot;When is router-on-a-stick still the right choice?&quot;, &quot;back&quot;: &quot;Small sites, labs, or when you only have a plain router and a Layer 2 switch. It teaches 802.1Q tagging well and costs nothing extra. Once VLAN count or east-west traffic grows, move the gateways onto a Layer 3 switch.&quot;}\n  ]\n}\n\" data-fc-anki=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2026\/06\/ccna-l3-svi-flashcards.apkg\"><div class=\"cfg-fc-loading\">Loading flashcards...<\/div><\/div>\n\n<p>With both inter-VLAN routing methods under your belt, the switching and routing halves of the CCNA finally connect: VLANs segment the hosts, and either a router or a Layer 3 switch ties them back together. The next building block is keeping that gateway available when a device fails, which is where first-hop redundancy comes in. For the full sequence, follow the <a href=\"https:\/\/computingforgeeks.com\/quickly-prepare-for-ccna-200-301-exam\/\">CCNA 200-301 study roadmap<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Router-on-a-stick gets inter-VLAN routing working, but it routes in software and squeezes every packet between VLANs through one trunk cable. A Layer 3 switch does the same job in hardware, on the same box the VLANs already live on, with nothing to hairpin. The gateways move off an external router and onto the switch itself &#8230; <a title=\"Configure Inter-VLAN Routing with a Layer 3 Switch (SVI)\" class=\"read-more\" href=\"https:\/\/computingforgeeks.com\/cisco-layer3-switch-inter-vlan-svi\/\" aria-label=\"Read more about Configure Inter-VLAN Routing with a Layer 3 Switch (SVI)\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":169395,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[299,55],"tags":[524,525],"cfg_series":[39888],"class_list":["post-169394","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-networking","tag-ccna","tag-cisco","cfg_series-ccna-200-301"],"_links":{"self":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/169394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/comments?post=169394"}],"version-history":[{"count":1,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/169394\/revisions"}],"predecessor-version":[{"id":169399,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/169394\/revisions\/169399"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media\/169395"}],"wp:attachment":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media?parent=169394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/categories?post=169394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/tags?post=169394"},{"taxonomy":"cfg_series","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/cfg_series?post=169394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}