Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Layer 3 Switch

Direct answer

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.

When to use this

Use it when a switch must route between VLANs or run routing protocols.

First 30 seconds

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.

Operational verification

VLAN/SVI or routed port → hardware routing → forward

Context & applicabilityCommon mistakes · platform/version boundaries
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
Key commandip routing
Scope / prerequisiteUse it when a switch must route between VLANs or run routing protocols.
Show · 1Reference · 1
What next?3 suggested next steps
Child topics (this level)4
Catalog command links2
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

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 route

Look 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.

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 Verification and output interpretation Verify boundary

Verify VLAN/SVI state, routed interfaces, RIB and CEF. For an SVI, line protocol depends on VLAN/port activity; for a routed port, verify Layer-3 addressing and neighbor/route resolution directly.

Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • 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.
ReferenceHow it works1 section · depth on demand
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

TypeCreated withUse
SVIinterface vlan <id>Default gateway for a VLAN; inter-VLAN routing
Routed portno switchport on a physical portPoint-to-point links to other Layer 3 devices
Layer 3 port-channelinterface port-channel <n> with no switchportBundled 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)

PointDetail
Network AdvantageFull routing
Network EssentialsStatic routing and RIP only
Converting a port to Layer 3Can reset its previous configuration; the port shuts down and re-enables briefly
Routed portsNo MAC address configuration

Design use

LayerRole of the Layer 3 switch
DistributionGateways (SVIs) for access VLANs, often with HSRP or VRRP
CoreRouted ports between distribution and core
Routed accessSVIs on the access switch itself; routed uplinks remove STP from uplinks

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.

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.

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

Architecture/protocol mechanics and state model

A Layer-3 switch combines Ethernet switching with routed interfaces/SVIs and hardware forwarding. The same platform can therefore own MAC/VLAN state and RIB/CEF state, but those are distinct planes and should be verified separately.

Limits and common misconceptions

An SVI up/up does not show upstream routing; a route in the RIB does not show the access VLAN is healthy; and hardware forwarding success on one VRF/VLAN says nothing about another context.

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
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. 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%
Embedded reference data

Quick lookup tables

Layer 3 Switch · operational reference

Compact state/design/evidence reference for fast lookup.

BoundaryEvidence
VLAN/MACLayer 2
SVI/routed portLayer 3 attachment
RIBRoute choice
CEFProgrammed forwarding
Confirmation

Confirm action

Continue?