Use it when a switch must route between VLANs or run routing protocols.
Layer 3 Switch
A Layer 3 switch switches within VLANs and also routes between them in hardware, using SVIs or routed ports, and can run routing protocols like a router.
1. A Layer 3 switch routes in hardware between VLANs and links.
2. SVIs and routed ports.
3. ip routing required.
4. Runs routing protocols.
5. TCAM template matters.
VLAN/SVI or routed port → hardware routing → forward
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip routingPrimary Commands
Configuration and operational commands for this Topic.
Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
How to read the output
show ip routeLook first: route source/code, prefix, next hop, outgoing interface
Healthy: Expected prefix is installed with intended next hop/source.
Warning: Route absent, unexpected protocol/AD/metric, recursive next hop or wrong exit.
Does not prove: RIB presence does not prove FIB programming or packet delivery.
Verification & 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.
Subtopics
Go one level deeper into this subject.
A Layer 3 switch still performs Layer 2 switching within each VLAN, learning MACs and forwarding frames, and only routes traffic that leaves the VLAN.
Subtopic SVIA switched virtual interface (SVI, interface vlan <id>) is a Layer 3 interface for a VLAN, used as that VLAN's default gateway or for management; it is up only when the VLAN has an active port.
Subtopic Routed portsA routed port is a physical switch port configured with no switchport so it behaves like a router interface with its own IP address and no VLAN or STP participation.
Subtopic RoutingA 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.
- A Layer 3 switch combines switching and routing in hardware.
- It routes between VLANs using SVIs or routed ports.
- Common at distribution and core layers.
show ip interface brief— SVIs and routed portsshow ip route— routing tableshow sdm prefer— template
ReferenceHow it works1 section · depth on demand
How it works
Path: Networking → Network Devices → Layer 3 Switch. Local intent: Layer 3 Switch: Switching, SVI, Routed ports, Routing.
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
The Layer 3 switch: switching within VLANs, routing between them
A Layer 3 switch combines both functions in hardware. Cisco's Catalyst 9300 interface guide describes the Layer 3 interface types: SVIs (one per VLAN) for inter-VLAN routing, routed ports created with no switchport that belong to no VLAN and run no Layer 2 protocols such as DTP or STP, and Layer 3 port-channels. Routing is enabled with ip routing.
Interface types for routing
| Type | Created with | Use |
|---|---|---|
| SVI | interface vlan <id> | Default gateway for a VLAN; inter-VLAN routing |
| Routed port | no switchport on a physical port | Point-to-point links to other Layer 3 devices |
| Layer 3 port-channel | interface port-channel <n> with no switchport | Bundled routed uplinks |
DIST1(config)# ip routing
DIST1(config)# interface Vlan110
DIST1(config-if)# ip address 10.110.0.1 255.255.255.0
DIST1(config-if)# no shutdown
DIST1(config)# interface TenGigabitEthernet1/0/48
DIST1(config-if)# no switchport
DIST1(config-if)# ip address 10.0.1.1 255.255.255.252
DIST1(config)# router ospf 1
DIST1(config-router)# network 10.0.0.0 0.255.255.255 area 0
DIST1# show ip interface brief | exclude unassigned
Interface IP-Address OK? Method Status Protocol
Vlan110 10.110.0.1 YES manual up up
Vlan120 10.120.0.1 YES manual up up
TenGigabitEthernet1/0/48 10.0.1.1 YES manual up up
Licensing and behaviour (interface guide)
| Point | Detail |
|---|---|
| Network Advantage | Full routing |
| Network Essentials | Static routing and RIP only |
| Converting a port to Layer 3 | Can reset its previous configuration; the port shuts down and re-enables briefly |
| Routed ports | No MAC address configuration |
Design use
| Layer | Role of the Layer 3 switch |
|---|---|
| Distribution | Gateways (SVIs) for access VLANs, often with HSRP or VRRP |
| Core | Routed ports between distribution and core |
| Routed access | SVIs on the access switch itself; routed uplinks remove STP from uplinks |
Documented example, not captured output.
Quick reference
A Layer 3 (multilayer) switch combines switching with hardware routing: SVIs, routed ports, routing protocols, ACLs and QoS at line rate. It replaces the router-on-a-stick design for inter-VLAN routing.
ip routing
show ip route
show platform hardware fed switch active fwd-asic resource tcam utilization ! Catalyst 9000
sdm prefer … ! TCAM template (some platforms)
Hardware tables (routes, ACL entries) are finite — check TCAM utilisation before adding large ACLs or route tables.
Architecture/protocol mechanics and state model
Limits and common misconceptions
ReferenceConfiguration & state1 section · depth on demand
Design and configuration intent
Define which boundaries remain Layer 2, which SVIs act as gateways, where routed links begin and which routing protocols/policies own reachability. Avoid stretching VLANs simply because routing is available on the same chassis.
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. 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%Quick lookup tables
Layer 3 Switch · operational reference
Compact state/design/evidence reference for fast lookup.
| Boundary | Evidence |
|---|---|
| VLAN/MAC | Layer 2 |
| SVI/routed port | Layer 3 attachment |
| RIB | Route choice |
| CEF | Programmed forwarding |