Pcornel
Networking · Network Devices

Router

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

Back to the Topic

Answer

A router forwards packets between IP networks using its routing table, connects LANs to WANs and the internet, and often adds NAT, ACLs, VPN and QoS.

Remember

  • A router forwards packets between networks based on IP addresses and its routing table.
  • It separates broadcast domains.
  • Routers also provide NAT, VPN and QoS at the edge.

First checks

  • show ip route — routing
  • show ip interface brief — interfaces
  • show ip nat translations — NAT

Commands

show ip route
IPv4 RIB routes and selected next hops.
ip route 0.0.0.0 0.0.0.0 <next-hop>

Verify in this order

packet → route lookup → forward/NAT/VPN

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

Router · operational reference

LayerEvidence
Interface/VRFAttachment/context
RIBRoute selection
CEF/adjacencyLocal forwarding
Service boundaryNAT/VPN/policy if present

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

Confirmation

Confirm action

Continue?