Use it when checking routes and routing protocols on a Layer 3 switch.
Routing · Layer 3 Switch
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.
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.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip address 10.10.10.1 255.255.255.0Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- Layer 3 switches run routing protocols like routers.
- They route between SVIs and routed ports in hardware.
- Enable with
ip routing.
show ip route— routesshow 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)
| Point | Detail |
|---|---|
| Creation | Entering interface vlan <id> creates the SVI |
| VLAN 1 SVI | Cannot be deleted |
| Line state | Down until at least one port in the VLAN is up (autostate) |
| Autostate control | switchport 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
| Symptom | Check |
|---|---|
SVI down/down | VLAN exists (show vlan brief) and at least one port in it is up |
| Hosts can't reach their gateway | Host VLAN and IP mask; SVI IP; access port VLAN |
| Same-switch VLANs can't reach each other | ip routing missing (show running-config | include ip routing) |
| Remote subnets unreachable | Routes on the switch and the return route on the next hop |
| Works in software, slow in hardware | TCAM 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.
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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%