Pcornel
Networking · Switching › VLAN › Inter-VLAN Routing

Layer 3 Switch

Cheat sheet · https://pcornel.dk/topic.php?topic=588

Back to the Topic

Answer

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.

Remember

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.

First checks

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

Commands

show ip route
IPv4 RIB routes and selected next hops.
ip routing
Enable IPv4 routing on a Layer 3 switch.
show ip cef

Verify in this order

each host reaches its own gateway → gateway interfaces up → both subnets connected → routing enabled → no ACL blocks → hosts in different VLANs reach each other

Where it usually breaks

physical link → switchport/bundle membership → VLAN/instance state → STP/LAG decision → MAC forwarding → end-to-end frame path

Layer 3 Switch · operational reference

Layer-3-switch objectRole
VLANLayer-2 domain
SVILayer-3 gateway
RIBRoute selection
CEF/adjacencyHardware forwarding resolution

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=588

Confirmation

Confirm action

Continue?