Use it when checking normal Layer 2 forwarding inside VLANs on a Layer 3 switch.
Switching · Layer 3 Switch
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.
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.
frame within VLAN → MAC lookup → forward
Context & applicabilityCommon mistakes · platform/version boundaries
- 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.
Operational reference
Fast context before you go deeper.
show vlan briefVerification & 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 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 · 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 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.
show mac address-table— L2 switchingshow 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
| Destination | Action |
|---|---|
| Same VLAN | Layer 2 lookup in the MAC table; frame bridged |
| Another VLAN or network | Routed: frame addressed to the SVI's MAC, IP lookup in the FIB, rewritten towards the next hop |
| Unknown unicast in a VLAN | Flooded within that VLAN only |
Port modes on a Catalyst 9300 (interface guide)
| Mode | Configuration | Typical use |
|---|---|---|
| Access port | switchport mode access | Hosts, APs in local mode |
| Trunk port | switchport mode trunk | Access switches, FlexConnect APs, servers |
| Routed port | no switchport + ip address | Uplinks to the core or WAN routers |
| Port-channel | channel-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.
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)?
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 → 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%