Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Routing · Layer 3 Switch

Direct answer

A Layer 3 switch routes between its SVIs and routed ports in hardware once ip routing is enabled, and can run static routes, OSPF, EIGRP or BGP.

When to use this

Use it when checking routes and routing protocols on a Layer 3 switch.

First 30 seconds

1. L3 switches run static and dynamic routing.

2. Enable ip routing.

3. Licence may limit protocols.

4. Hardware tables limit scale.

5. Verify FIB programming.

Operational verification

routing protocols → RIB → hardware FIB

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • ip routing not enabled.
  • SVI down because no access/trunk port in that VLAN is up.
  • Hosts using the wrong default gateway (SVI address not configured as gateway in DHCP).
  • TCAM exhaustion with many routes on access switches (check SDM template).
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE · IOS/IOS XE
Key commandip address 10.10.10.1 255.255.255.0
Scope / prerequisiteUse it when checking routes and routing protocols on a Layer 3 switch.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Configuration and checks Verify boundary
ip routing
interface Vlan10
 ip address 10.10.10.1 255.255.255.0
router ospf 1
 network 10.0.0.0 0.255.255.255 area 0

Documented example, not captured output. Without ip routing, the switch acts as a host on each SVI. Check with show ip route, show ip interface brief (SVI up/up needs the VLAN active with a forwarding port) and platform TCAM usage (show platform hardware fed switch active fwd-asic resource tcam utilization).

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • Layer 3 switches run routing protocols like routers.
  • They route between SVIs and routed ports in hardware.
  • Enable with ip routing.
Key checks
  • show ip route — routes
  • show ip protocols — routing protocols running
ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

Routing on a Layer 3 switch: SVIs and routed ports with ip routing enabled

A Catalyst switch routes between its Layer 3 interfaces in hardware. The Catalyst 9300 interface guide lists two kinds: SVIs (interface vlan <id>, one per VLAN) and routed ports (no switchport). Global ip routing must be on.

C9300(config)# ip routing
C9300(config)# interface Vlan20
C9300(config-if)# description Users floor 2
C9300(config-if)# ip address 10.20.0.1 255.255.255.0
C9300(config-if)# ip helper-address 10.10.50.10
C9300(config-if)# no shutdown
C9300(config)# ip route 0.0.0.0 0.0.0.0 10.255.0.2
C9300# show ip route summary
C9300# show ip interface brief | include Vlan|Te1/1
Vlan20                 10.20.0.1       YES manual up                    up
C9300# show platform software fed switch active ip route summary

SVI behaviour (documented)

PointDetail
CreationEntering interface vlan <id> creates the SVI
VLAN 1 SVICannot be deleted
Line stateDown until at least one port in the VLAN is up (autostate)
Autostate controlswitchport autostate exclude on a port, or no autostate on the SVI

Licensing

Network Advantage supports full routing. Network Essentials supports only static routing and RIP.

Checks when inter-VLAN routing fails

SymptomCheck
SVI down/downVLAN exists (show vlan brief) and at least one port in it is up
Hosts can't reach their gatewayHost VLAN and IP mask; SVI IP; access port VLAN
Same-switch VLANs can't reach each otherip routing missing (show running-config | include ip routing)
Remote subnets unreachableRoutes on the switch and the return route on the next hop
Works in software, slow in hardwareTCAM or FIB exhaustion (show platform hardware fed switch active fwd-asic resource tcam utilization)

Design note

Routing at the access or distribution switch keeps VLANs small and moves the failure domain boundary close to the users. Use routed uplinks and summarise each building's subnets towards the core.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Hardware limits

L3 switches route in hardware (TCAM). Check resource use:

show sdm prefer
show platform hardware fed switch active fwd-asic resource tcam utilization

When TCAM is full, routes or ACL entries fall back to software or are not installed. Change the SDM template if needed (requires reload).

Quick reference

A Layer 3 switch routes between its own VLANs automatically and uses routing protocols or static routes to reach the rest of the network. In campus designs it typically runs the same interior routing protocol as the core, with user-facing VLAN interfaces kept passive so they do not form unnecessary neighbourships.

Routing on Layer 3 switches: connected SVIs and routed ports, static routes or OSPF/EIGRP/BGP towards the core/WAN.

interface Te1/1/1
 no switchport
 ip address 10.255.1.1 255.255.255.252
 ip ospf network point-to-point
router ospf 1
 router-id 10.255.0.11
 passive-interface default
 no passive-interface Te1/1/1
 network 10.0.0.0 0.255.255.255 area 0

Make user SVIs passive so routing protocols do not form adjacencies with hosts.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Network Devices → Layer 3 Switch → Routing. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Confirmation

Confirm action

Continue?