Free tech learning for everyone, from basics to pro

Routing & SwitchingNetworking SecurityIntermediate

Layer 3 switching in practice: SVIs, routed ports and when to route at the access layer

In short: A Layer 3 switch routes between VLANs in hardware at full speed. SVIs act as the default gateway for VLANs, while routed ports turn a single switch port into a router interface for uplinks. Moving routing down to the access layer removes spanning tree from uplinks and speeds up failover, but limits VLANs to one switch.

Why switches route

Router-on-a-stick sends all inter-VLAN traffic across one trunk to a router, which becomes a bottleneck. A multilayer switch does the routing inside its forwarding hardware (ASICs), using CEF tables programmed from the routing table. Routing between two VLANs on the same switch happens at the same speed as switching.

Routing is not on by default on every model, so the first step is often ip routing. Some platforms also need a suitable SDM template or licence to hold enough routes.

Two ways to route on a multilayer switchSVI (interface Vlan)Gateway for a VLANUp if any port in VLAN is upMany ports share itUsed for user subnetsRouted port (no switchport)Behaves like a router portUp with the physical linkOne port, one subnetUsed for uplinks
Figure 1. Use SVIs for user VLANs and routed ports for links between switches and routers.

SVIs for user VLANs

ip routing
vlan 20
 name STAFF
interface Vlan20
 description Staff gateway
 ip address 10.10.20.1 255.255.255.0
 ip helper-address 10.10.5.10
 no shutdown

An SVI is a virtual interface. Thanks to autostate, it only comes up when the VLAN exists and at least one access or trunk port in that VLAN is up and forwarding. If you create the SVI before any ports are connected, it shows up/down, which is normal. Ports that should not keep an SVI up, such as a monitoring port, can be excluded with switchport autostate exclude.

Routed ports for uplinks

interface TenGigabitEthernet1/1/1
 description Uplink to CORE-1
 no switchport
 ip address 10.0.1.2 255.255.255.252
 ip ospf network point-to-point
!
router ospf 1
 router-id 10.255.0.21
 passive-interface default
 no passive-interface TenGigabitEthernet1/1/1
 network 10.0.0.0 0.255.255.255 area 0

no switchport removes the port from Layer 2. It no longer belongs to any VLAN or runs spanning tree, and its state follows the physical link directly, so failure detection is fast. A routed port is a better choice than a trunk plus SVI for switch-to-switch links that only need routing.

Design choice: where to route

  • Layer 2 access, Layer 3 distribution: the classic design. VLANs can span several access switches, but uplinks are trunks, spanning tree blocks one of them, and you need HSRP or VRRP for the gateway.
  • Routed access: each access switch is the gateway for its own VLANs, and uplinks are routed ports running OSPF or EIGRP. Both uplinks are used through ECMP, there is no spanning tree on uplinks and no FHRP, and failover takes well under a second. The trade-off is that a VLAN cannot stretch beyond one access switch or stack, unless you add an overlay such as VXLAN or Cisco SD-Access.

Checking it

show ip interface brief shows SVIs and routed ports with their status. show interfaces g1/0/1 switchport confirms whether a port is Layer 2 or Layer 3. show ip route and show ip cef confirm the routing, and on Catalyst 9000 show platform software fed switch active ip route shows what is programmed in hardware.

Real-world example: faster failover in a hospital

A hospital's access switches had trunk uplinks with HSRP at the distribution layer. A distribution switch failure caused about 30 seconds of disruption while spanning tree and HSRP converged, long enough to drop video calls with remote specialists. Moving each ward's switch stack to routed access with OSPF and BFD cut the same failure to under a second.

Practice

Why might a new SVI show as up/down?
Autostate keeps it down until the VLAN exists and at least one port in that VLAN is up and forwarding.
What does no switchport do on a Catalyst switch port?
It turns the port into a Layer 3 routed port with its own IP address, outside any VLAN and spanning tree.
Name one advantage and one limitation of routed access designs.
Advantage: both uplinks used with fast failover and no spanning tree or FHRP on uplinks. Limitation: VLANs cannot span multiple access switches without an overlay.

Key takeaways

  • Multilayer switches route between VLANs in hardware.
  • SVIs are VLAN gateways; routed ports are router-style interfaces for uplinks.
  • Enable ip routing, and remember SVI autostate.
  • Routed access gives fast failover but keeps VLANs local to one switch.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: