Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Switching · Layer 3 Switch

Direct answer

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.

When to use this

Use it when checking normal Layer 2 forwarding inside VLANs on a Layer 3 switch.

First 30 seconds

1. L3 switches also switch at L2 within VLANs.

2. Same rules as L2 switches.

3. STP still needed on L2 parts.

4. Mix L2 and L3 carefully.

5. Limit L2 spans.

Operational verification

frame within VLAN → MAC lookup → forward

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • SVIs down because no access or trunk port in that VLAN is up (autostate).
  • STP root not on the L3 switch, giving suboptimal paths.
  • Forgetting ip routing, so the switch does not route between VLANs.
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 · IOS/IOS XE · Cisco IOS XE
Key commandshow vlan brief
Scope / prerequisiteUse it when checking normal Layer 2 forwarding inside VLANs 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 Checks Verify boundary
show vlan brief
show interfaces trunk
show mac address-table vlan 10
show spanning-tree vlan 10
show ip interface brief | include Vlan

Confirm the VLAN exists, is allowed on the trunks, the host's MAC is learned and the SVI is up/up.

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 switch frames within a VLAN in hardware.
  • MAC tables and VLANs work as on any Layer 2 switch.
  • Switching and routing share the same ASICs.
Key checks
  • show mac address-table — L2 switching
  • show vlan brief — VLANs
ReferenceWhat it is1 section · depth on demand

Layer 2 inside the L3 switch

Within a VLAN the Layer 3 switch behaves exactly like a Layer 2 switch: MAC learning, flooding, STP and trunking all still apply. Routing is only used when traffic leaves the VLAN through an SVI or routed port.

So a host that cannot reach its gateway on an L3 switch is still a Layer 2 problem first: access VLAN, trunk allowed VLANs, STP state and MAC table.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Switching on a Layer 3 switch

A Layer 3 switch still switches: within each VLAN, frames are forwarded by MAC address exactly as on a Layer 2 switch. Cisco's Catalyst 9300 interface guide shows how the same switch mixes port types: Layer 2 switch ports (access or trunk), Layer 3 routed ports, SVIs and EtherChannels, chosen per interface with switchport or no switchport.

Forwarding decision on a Layer 3 switch

DestinationAction
Same VLANLayer 2 lookup in the MAC table; frame bridged
Another VLAN or networkRouted: frame addressed to the SVI's MAC, IP lookup in the FIB, rewritten towards the next hop
Unknown unicast in a VLANFlooded within that VLAN only

Port modes on a Catalyst 9300 (interface guide)

ModeConfigurationTypical use
Access portswitchport mode accessHosts, APs in local mode
Trunk portswitchport mode trunkAccess switches, FlexConnect APs, servers
Routed portno switchport + ip addressUplinks to the core or WAN routers
Port-channelchannel-group (L2) or interface port-channel with no switchport (L3)Bundled uplinks
DIST1# show interfaces status | include trunk|routed
Te1/0/1   to-ACC-2F-01       connected    trunk        full    10G SFP-10GBase-SR
Te1/0/2   to-ACC-2F-02       connected    trunk        full    10G SFP-10GBase-SR
Te1/0/48  to-CORE1           connected    routed       full    10G SFP-10GBase-LR
DIST1# show mac address-table count vlan 110
DIST1# show ip cef 10.120.0.25
10.120.0.0/24
  attached to Vlan120
DIST1# show platform software fed switch active ifm interfaces vlan

Hardware forwarding

Both bridging and routing happen in hardware (ASICs with MAC, FIB and adjacency tables), which is why a Layer 3 switch routes between VLANs at line rate. Tables are finite: check the platform's limits for MAC entries, routes and ACL entries in large designs.

Licensing (interface guide)

Full routing needs Network Advantage; Network Essentials supports static routing and RIP only.

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

Switching on a Layer 3 switch is the same MAC-based forwarding within a VLAN; traffic between VLANs goes through the SVI (routing).

Troubleshoot by deciding first: is the destination in the same VLAN (check MAC table) or another subnet (check routing/ARP on the SVI)?

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 → Switching. 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?