Use it as the gateway for several VLANs in a campus, or when routing between VLANs on a multilayer switch fails.
Layer 3 Switch · Inter-VLAN Routing
A Layer 3 switch routes between VLANs in hardware using an SVI per VLAN, and can also use routed ports (no switchport) towards other routers.
1. show running-config | include ip routing — enabled?
2. show ip interface brief — every SVI and routed port up/up?
3. show ip route — all VLAN subnets connected, default route present if needed.
4. SVI down → show vlan brief, show interfaces trunk.
5. Ping between hosts in different VLANs.
each host reaches its own gateway → gateway interfaces up → both subnets connected → routing enabled → no ACL blocks → hosts in different VLANs reach each other
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.
Step 1 Known-good, broken state and proof boundary Verify boundary
Path: Networking → Inter-VLAN Routing → Layer 3 Switch. Local intent: Layer 3 Switch: SVI.
Step 2 Verification and output interpretation Verify boundary
Confirm ip routing/routing capability is active, each SVI is up/up and connected routes exist. Use show ip route and show ip cef for actual destination forwarding decisions, then inspect ARP entries for hosts in the source/destination VLANs. Verify VLAN and trunk state independently so a healthy RIB is not mistaken for healthy endpoint attachment. On redundant designs, check first-hop active/standby state and upstream route symmetry as separate concerns. Throughput or application success is beyond the SVI/RIB evidence and may require policy or endpoint validation.
Step 3 Observation-driven branch tree Narrow the fault
Path: Networking → Inter-VLAN Routing → Layer 3 Switch. Local intent: Layer 3 Switch: SVI.
Subtopics
Go one level deeper into this subject.
ip routing must be enabled; without it the switch behaves as a host with SVIs. Each SVI needs its VLAN to exist and at least one forwarding port. A routed port has no VLAN; it takes an IP address directly.
show ip interface brief— gateway interfaces up/up with addresses.show ip route connected— each VLAN subnet present as a connected route.show ip arp vlan <id>— hosts resolved in each VLAN.show running-config | include ip routing— routing enabled on a Layer 3 switch.show ip interface vlan <id> | include access list— ACLs on the SVI.
ReferenceHow it works1 section · depth on demand
How it works
Path: Networking → Inter-VLAN Routing → Layer 3 Switch. Local intent: Layer 3 Switch: SVI.
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
A Layer 3 switch routes between VLANs in hardware
A Layer 3 switch combines switching and routing in one device. The Catalyst 9300 interface guide describes two kinds of Layer 3 interfaces: SVIs, which represent a VLAN, and routed ports, which are physical ports in Layer 3 mode (no switchport) without VLAN membership or Layer 2 protocols such as DTP and STP.
C9300(config)# ip routing
C9300(config)# interface Vlan20
C9300(config-if)# ip address 10.20.0.1 255.255.255.0
C9300(config)# interface TenGigabitEthernet1/1/8
C9300(config-if)# no switchport
C9300(config-if)# ip address 10.255.0.1 255.255.255.252
C9300(config)# router ospf 1
C9300(config-router)# network 10.0.0.0 0.255.255.255 area 0
C9300# show interfaces TenGigabitEthernet1/1/8 switchport
Name: Te1/1/8
Switchport: Disabled
Documented details
| Topic | Detail |
|---|---|
no switchport | Shuts down and re-enables the interface; previous Layer 2 configuration may be lost |
| Interface limits | No fixed limit on SVIs and routed ports; hardware resources decide |
| Combined VLANs and SVIs | 1005 in total |
| At hardware exhaustion | A new routed port stays a switchport; extended VLANs are rejected |
| Licensing | Network Essentials: static routing and RIP only; Network Advantage for full routing |
Design: where Layer 3 starts
| Design | Layer 2/3 boundary | Effect |
|---|---|---|
| Layer 2 access | Distribution switches (SVIs + FHRP) | VLANs span access-to-distribution; STP needed there |
| Routed access | Access switches (SVIs locally, routed uplinks) | No STP between switches; each VLAN confined to one access switch |
Routed uplinks
Routed point-to-point links between distribution and core use routing for redundancy and load sharing (ECMP) instead of spanning tree. Both links forward, and failure detection is fast with BFD or carrier-delay tuning.
Documented example, not captured output.
Quick reference
A Layer 3 switch routes between VLANs in hardware using SVIs, and can also use routed ports for point-to-point links. Routing is enabled with ip routing.
ip routing
interface Vlan20
ip address 10.20.0.1 255.255.255.0
interface Vlan30
ip address 10.30.0.1 255.255.255.0
interface Gi1/0/48
no switchport
ip address 10.255.0.1 255.255.255.252
Documented example, not captured output.
Hardware routing capacity depends on TCAM; very large routing tables may need a different SDM template or a router.
State model and protocol mechanics
In a multilayer-switch design, each routed VLAN normally has an SVI with an IP gateway address. When an endpoint sends traffic to another subnet, the switch receives the frame in the source VLAN, routes the IP packet using the RIB/CEF, rewrites Layer-2 headers and forwards it into the destination VLAN. Connected routes for the SVI subnets appear automatically when the interfaces are operational. Hardware forwarding means most packets are switched using programmed forwarding tables after control-plane resolution, but the logical route and adjacency state remain the authoritative interpretation layer. The switch can also route to upstream networks using routed ports, SVIs or dynamic/static routing. First-hop redundancy may add a virtual gateway while each switch retains its own SVI identity.
Limits and common misconceptions
A Layer-3 switch does not collapse Layer 2 and Layer 3 into one state machine. VLAN membership, STP, SVI line protocol, ARP/ND, RIB and CEF can fail independently. Hardware forwarding being enabled does not mean every route is installed or every adjacency resolved. A working connected route does not show an ACL permits traffic, and a virtual first-hop address can be healthy while one physical SVI is not. Treat local inter-VLAN forwarding and upstream routing as separate path segments. Redundant gateway state and STP root placement can influence path efficiency, but neither changes the fundamental requirement that the correct connected route, adjacency and policy exist for each VLAN.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Create the required VLANs, configure one SVI per routed subnet, enable IP routing and assign intentional gateway addressing. Ensure access/trunk topology provides active Layer-2 membership for each SVI and configure upstream routing so non-local destinations have a path. Use routed uplinks where they simplify failure domains, and apply ACL/policy at the Layer-3 boundary where appropriate. If redundant switches share gateway responsibility, coordinate HSRP/VRRP with STP and routing design so traffic does not take unnecessary Layer-2 detours. Keep management-only SVIs separate from user/data gateway roles when possible.
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 Switching → VLAN → Inter-VLAN Routing → 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 and interpretation boundaries for fast lookup.
| Layer-3-switch object | Role |
|---|---|
| VLAN | Layer-2 domain |
| SVI | Layer-3 gateway |
| RIB | Route selection |
| CEF/adjacency | Hardware forwarding resolution |