An edge routing gateway processes an incoming packet addressed to . The gateway's active routing table contains four operational routes that encompass this destination address:
- Route 1: learned via EIGRP (Administrative Distance: , Metric: , Next-Hop Interface: eth1)
- Route 2: configured as a Static Route (Administrative Distance: , Metric: , Next-Hop Interface: eth2)
- Route 3: learned via OSPF (Administrative Distance: , Metric: , Next-Hop Interface: eth3)
- Route 4: learned via eBGP (Administrative Distance: , Metric: , Next-Hop Interface: eth4)
Which next-hop interface will the router select to forward this packet, and what is the primary routing rule governing this decision?
- AThe router forwards the packet out eth2 because the static route has the lowest administrative distance (AD 1), overriding dynamic routing protocol entries.
- The router forwards the packet out eth1 because 10.50.12.96/29 provides the longest prefix match (/29), which takes precedence over administrative distance and metric during route selection.Answer
- CThe router forwards the packet out eth3 because OSPF presents the lowest metric value (4) among the matching internal routing protocols.
- DThe router forwards the packet out eth4 because eBGP is an exterior gateway protocol with a lower administrative distance (AD 20) than internal dynamic protocols.
Answer
The router selects eth1 as the next-hop interface because 10.50.12.96/29 offers the longest prefix match (/29), which overrides administrative distance and metric considerations.
The correct response identifies eth1 as the next-hop interface because the router evaluates path selection using the Longest Prefix Match (LPM) algorithm first. The destination IP address 10.50.12.99 falls within the subnet range of 10.50.12.96/29 (10.50.12.96 to 10.50.12.103). Because /29 is the longest and most specific subnet mask among all matching routing table entries (/29 vs /28, /24, and /16), the router selects this route immediately without comparing administrative distance or metric values.
Step-by-Step Solution
Key Concept
Longest Prefix Match (LPM) Precedence