Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Router

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

When to use this

Use it when checking a router's routing, NAT and VPN roles at the edge.

First 30 seconds

1. Routers forward between networks by IP, run routing protocols, NAT, VPN, QoS.

2. WAN edge role.

3. Check RIB and FIB.

4. Secure management.

5. Monitor CPU and interfaces.

Operational verification

packet → route lookup → forward/NAT/VPN

Context & applicabilityCommon mistakes · platform/version boundaries
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 · Cisco IOS XE
Key commandshow ip route
Scope / prerequisiteUse it when checking a router's routing, NAT and VPN roles at the edge.
Show · 1
What next?3 suggested next steps
Child topics (this level)5
Catalog command links1
Documented command examples3
Evidence0
On this pageJump to a specific section
Documented examples · Cisco IOS / IOS XE

Commands for this reference

Read-only examples. Replace placeholders and confirm syntax, address family and VRF on the actual platform/version.

show ip interface brief

Identify the intended interface, primary IPv4 address and interface/line-protocol state.

show ip route <destination>

Read the winning prefix, route source, next hop and outgoing interface in the correct VRF.

show ip cef <prefix> detail

Compare the resolved forwarding action, next hop and interface with the chosen route.

Technical sources · checked 11 October 2026Documentation review is separate from device execution and collected Evidence.
Verification

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 route

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

Subject-specific reference · not observed execution

Verification & Troubleshooting

Focused checks for this Topic. Stored verification and troubleshooting material remains available below.

4 focused checksScope → observe → prove the owning boundary → repeat the original test

Check 1 — Establish interface scope

show ip interface brief: Identify the intended interface, primary IPv4 address and interface/line-protocol state. Inspect a down interface before interpreting the higher-layer path; up/up alone does not prove delivery.

Check 2 — Read the destination route

show ip route <destination>: Read the winning prefix, route source, next hop and outgoing interface in the correct VRF. If the next hop is indirect, repeat the route lookup for that next hop.

Check 3 — Compare local forwarding

show ip cef <prefix> detail: Compare the resolved forwarding action, next hop and interface with the chosen route. Use RIB/FIB/CEF to inspect adjacency and platform-specific forwarding; a software entry alone is not a hardware or traffic test.

Check 4 — Verify the original flow

Repeat the original source/destination test after the identified local prerequisite is healthy. Inspect policy, downstream forwarding and return routing where the observation diverges.

More detailAdditional checks3 sections

Longer notes behind the focused checks above. Start with the checks; use these when you need more detail.

Layered verification and original-test closure

Router — Verify the exact prefix and next hop in RIB/FIB, observe egress counters or a capture for the test packet, and show the return path before calling the router healthy.

Verification and output interpretation

Verify interface state, RIB, CEF/adjacency and the specific service boundary relevant to the claim. A route table shows control-plane selection; CEF shows local programming; neither alone shows the remote/application path. Verify the state owned by the device and then the next dependency. Use controlled before/after counters where possible and correlate identities such as interface, VLAN, prefix, MAC, client or session. Do not infer remote state from a local green indicator. When a role spans several functions, verify each function separately rather than collapsing the result into a single healthy/unhealthy label.

Observation → implication → next check

Router — If traffic fails, bind the test to VRF/source/destination, confirm route selection, then FIB/adjacency and egress policy. If local pings work but transit traffic fails, inspect forwarding/policy rather than re-reading the RIB.

Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • 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.
Key checks
  • show ip route — routing
  • show ip interface brief — interfaces
  • show ip nat translations — NAT
ReferenceWhat it is1 section · depth on demand

What it is

Routers, Layer-2/Layer-3 switches, next-generation firewalls, IPS, access points and controllers provide distinct forwarding, policy and radio roles; PoE couples endpoint power to the access port.

ReferenceWhy it matters1 section · depth on demand

When to use it

Use it to identify which device owns a decision, which tables and state it maintains, and where traffic or endpoint power can fail.

ReferenceHow it works1 section · depth on demand

Operational mechanics and ownership

Router — A router makes a Layer-3 forwarding decision from the destination address, selected route and adjacency/next-hop resolution; control-plane reachability and data-plane forwarding are related but distinct. The routing protocols and RIB select a route, while CEF/FIB and adjacency state program forwarding. Interface policy, ACLs, NAT and VRFs can change packet handling after a route exists.

ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

The router: forwarding between IP networks

A router forwards packets between networks using its routing table. Cisco's IOS XE basic IP routing guide covers the core mechanisms: static routes, default routes and the gateway of last resort, administrative distance for choosing between sources, and equal-cost parallel paths (four by default for most routing protocols, six for static routes, one for BGP).

What a router does

FunctionDetail
Route lookupLongest prefix match in the routing table
Route sourcesConnected, static, dynamic protocols (OSPF, EIGRP, BGP)
Source preferenceAdministrative distance: connected 0, static 1, eBGP 20, EIGRP 90, OSPF 110, iBGP 200
Default routeip route 0.0.0.0 0.0.0.0 <next-hop> sets the gateway of last resort
Edge servicesNAT, VPN, QoS, ACLs, DHCP
R1(config)# ip route 0.0.0.0 0.0.0.0 203.0.113.1
R1(config)# ip route 10.50.0.0 255.255.0.0 10.0.0.2
R1# show ip route
Gateway of last resort is 203.0.113.1 to network 0.0.0.0

S*    0.0.0.0/0 [1/0] via 203.0.113.1
      10.0.0.0/8 is variably subnetted, 4 subnets, 3 masks
C        10.0.0.0/30 is directly connected, GigabitEthernet0/0/1
L        10.0.0.1/32 is directly connected, GigabitEthernet0/0/1
S        10.50.0.0/16 [1/0] via 10.0.0.2
O        10.60.0.0/16 [110/2] via 10.0.0.2, 00:12:41, GigabitEthernet0/0/1

Behaviour from the guide

PointDetail
Static route removalRemoved when its interface goes down or no valid next hop exists
Floating staticA static route with a higher distance is overridden by a dynamic route
OSPF defaultOSPF doesn't propagate a static default; use default-information originate
RedistributionMetrics don't translate between protocols; filter to avoid loops

Router versus Layer 3 switch

Both route. Routers offer WAN interfaces, deeper feature sets (VPN, NAT at scale, rich QoS) and larger routing tables; Layer 3 switches route between VLANs at line rate with many Ethernet ports. In a campus, Layer 3 switches route internally and routers sit at the WAN and Internet edge.

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

A router forwards packets between IP networks based on the destination address and its routing table. It separates broadcast domains, chooses the best path using administrative distance and metrics, and rewrites the Layer 2 header at each hop.

Router functionExample
RoutingStatic, OSPF, EIGRP, BGP
WAN connectivityEthernet handoffs, cellular, MPLS
Edge servicesNAT/PAT, DHCP, ACLs
VPNIPsec site-to-site, FlexVPN
QoSShaping and queuing on WAN links

On Catalyst platforms a Layer 3 switch performs most routing in hardware; routers remain the choice at WAN and internet edges.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Architecture/protocol mechanics and state model

A router owns Layer-3 interfaces and forwarding decisions between IP prefixes. Its useful operational model is ingress interface/VRF → RIB selection → CEF/adjacency → egress interface, with NAT/VPN or policy as optional additional boundaries. Network devices should be modeled by the state they own: physical/link attachment, Layer-2 or Layer-3 tables, policy/security state, and the handoff to adjacent systems. A device role label is useful for navigation, but operational evidence must identify the concrete table, interface, session or power state that owns the claim. Local success is not automatically adjacent-dependency or end-to-end success.

Limits and common misconceptions

Router reachability to a destination does not show transit traffic will use the same source/VRF/policy. Management-plane success is also not forwarding-plane evidence. A powered or reachable device can still have a broken forwarding or policy function; a forwarding table can be correct while a remote application fails; and management reachability can remain available during data-plane failure.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration intent

Document interface/VRF ownership, dynamic/static routing responsibilities, WAN handoffs, NAT/VPN/security boundaries and failure domains. Avoid treating the router as a generic box when multiple routing contexts or services coexist. Design and configuration should make interface roles, routing/switching/security boundaries, management ownership and redundancy dependencies explicit. Prefer one canonical operational view for each important state and keep product-specific extras secondary. Shared power, uplink, controller or upstream dependencies should be visible because duplicate components can still share one failure domain.

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 → Router. 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%
Embedded reference data

Quick lookup tables

Router · operational reference

Compact state/design/evidence reference for fast lookup.

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

Confirm action

Continue?