Read the most specific matching route before comparing metrics
A router has a default route, 10.0.0.0/8 and 10.4.0.0/16. Which network entry handles 10.4.2.9 if all three are installed?
Read the most specific matching route before comparing metrics
Read a routing table twice. First decide which routes a device installs for each prefix. Then, for an actual destination, find the longest installed match. A shared virtual gateway address can keep hosts’ default next hop stable when the active gateway changes.
In the transcript
The routing walkthrough decodes routing-table entries, including the source of the route, network prefix and forwarding information.
Work through the decision
A router has a default route, 10.0.0.0/8 and 10.4.0.0/16. Which network entry handles 10.4.2.9 if all three are installed?
Check your reasoning
The /16 matches the most leading bits, so it wins this forwarding lookup. Administrative distance and protocol metrics help select competing routes to the same prefix before forwarding. Check the return path separately.
Routing Technologies · video start · Read the instructor’s transcript
Decisions and tradeoffs
- Longest prefix match
- Among installed matching routes the most specific prefix wins, even when a less specific route has a lower numeric metric.
- Administrative distance
- On platforms using this preference, route sources for the same prefix are ranked before installation.
- Routing metric
- A routing protocol’s metric ranks candidate paths within that protocol, such as OSPF cost.
- Default route
- The zero-length prefix provides a next hop when a more specific installed route does not match.
Trace the same connection in both directions
A branch with many private clients and one public address can use port address translation. Return traffic matches a state entry by address and port. A first-hop redundancy protocol solves a different problem by presenting one virtual gateway address to the LAN. Tagged router subinterfaces can serve separate VLANs on one physical link.
BGP exchanges routing information between autonomous systems and can apply policy. OSPF is a link-state interior protocol. EIGRP is an advanced distance-vector interior protocol. A static route can suit a single-exit branch. Compare routes from different sources only after establishing which destination prefix they describe.
Practice the guide skills
- Compare static routes with BGP, EIGRP and OSPF in their intended domains.
- Walk a prefix lookup, then compare route preferences for the same destination network.
- Trace NAT and port address translation on return traffic.
- Identify a virtual first-hop address and the function of routed subinterfaces.
Official objectives for this lesson
Videos and transcripts for objective 2.1
Related lesson · Trace the effective network route
Read the most specific matching route before comparing metrics quiz
Answer 3 questions. Check each answer for an explanation.