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.
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?
What does no switchport do on a Catalyst switch port?
Name one advantage and one limitation of routed access designs.
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.
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.