Definition

Static routes are forwarding instructions configured by an administrator. A router automatically learns its connected subnets from active configured interfaces, but a connection to a neighbor does not automatically reveal the networks behind that neighbor.

Reading the workbook’s table

TypeDestinationNext-hop fieldCost
C10.0.0.8/3010.0.0.90
S192.168.20.0/2410.0.0.101

Added example: the connected entry shows this router’s own interface in the workbook’s Next hop column; it means direct delivery through that interface. The static entry names the neighboring router on the shared link. This column convention is not universal across router software.

The destination column contains a network prefix, not its gateway’s host address. An interface 192.168.1.70/27 creates destination 192.168.1.64/27. Next-hop and final-destination addresses are different: a packet for a distant computer keeps that computer’s destination IP while routers hand it to successive neighbors.

Physical attachment alone is insufficient: if two IP subnets share an Ethernet LAN and a router has an address in only one, only that subnet is automatically connected under the workbook’s model. Configuring an address in the second subnet adds its connected route.

Build a routing table

  1. List every destination subnet, including router links.
  2. Mark subnets configured on this router’s active interfaces as C.
  3. Find minimum-cost paths to remote destinations; add link weights.
  4. Record the first neighbor’s reachable IP as the static next hop, not the final router or destination computer.
  5. Simplify compatible remote entries using IPv4 Route Aggregation and Routing Loops. Retain connected entries.
  6. Trace requests and replies independently; both need working routes.

A shortest-path tree records the minimum-cost paths from one starting router. Repeat the calculation for each router. It does not remove physical cables and is not Ethernet Spanning Tree Protocol. The workbook mentions Dijkstra for larger graphs; the session used small manual path comparisons rather than a full algorithm walkthrough.

Example: A-B costs 2, B-C costs 1, C-D costs 3. On the chain, A reaches D via B at total cost 6; B reaches D via C at cost 4. When a direct A-C link costs 5, A instead reaches C through B at cost 3.

Cost versus prefix

Forwarding uses the longest matching destination prefix. A matching /24 beats a /23 even if the /24 has a higher recorded cost. The workbook compares costs between alternative routes to the same destination prefix. It uses a simplified scalar cost, normally zero for connected networks. Do not generalize this to every platform’s administrative distance, metric, or route-selection behavior.

Static configuration does not automatically discover remote changes. If a LAN interface changes within the same prefix, an upstream route to that prefix through an unchanged neighbor can remain valid. If the neighbor’s link address changes, update the next hop. If the destination subnet changes, update its explicit route; a suitable default can already cover the new destination without change, provided no conflicting more-specific route wins.

Failures and backup paths

A higher-cost alternative provides a possible backup, but it activates only if the preferred route is withdrawn or otherwise becomes unusable to the local router. A remote failure may leave the preferred static route active. If one router falls back toward a neighbor that still points back at it, packets loop until TTL expires. TTL limits packet lifetime; it does not fix the table.

Dynamic routing exchanges information and recalculates paths; static routing can also be paired with additional failure tracking. Repair requires compatible forwarding decisions, not merely a physically available alternate cable. Exercise 13 explores these limitations. Its claim that dynamic routing is the only solution is too broad when additional static-route tracking mechanisms are allowed.

Routing, ARP and Ethernet

For ordinary Ethernet delivery in these exercises:

Destination IP -> routing lookup -> reachable next hop and interface
               -> ARP cache/resolution -> next-hop MAC -> outgoing frame

The IP destination remains the distant computer’s address; the outgoing frame’s destination MAC is the next local recipient. Each router rebuilds link-layer delivery for its next link.

  • Correct route, wrong cached MAC: frame may reach the wrong interface or be discarded. Correct/remove the erroneous mapping so the proper mapping can be learned. Increasing route cost does not repair ARP.
  • Wrong or unreachable next-hop IP: an ARP entry alone does not make the next hop reachable or replace a route. In the workbook, next hops are directly reachable neighbors; real implementations can also support recursive next-hop resolution when an applicable route exists.
  • A real IP existing elsewhere is insufficient: the router needs a valid forwarding path to it.
  • The example where a bad MAC maps back to another interface of the same router can cause repeated forwarding until TTL expires, under the workbook’s assumed shared-LAN behavior. Real interface, bridge and switch behavior must be checked rather than treating this outcome as universal.

Source

Fulvio Risso, Exercises on Static IP Routing and Route Aggregation, 23 February 2018, local 01d - IP Static Routing.pdf, PDF pages 6-19; Exercises 13-14 on pages 31-32 and solutions pages 58-61. Worked small examples and qualifications are added study explanations. Workbook-derived notes licensed CC BY-NC-SA 3.0: https://creativecommons.org/licenses/by-nc-sa/3.0/. Original PDF and figures remain local.