An enterprise Cisco IOS-XE router displays the following IPv4 routing table entries:
text
Gateway of last resort is not set
172.16.0.0/16 is variably subnetted, 4 subnets, 3 masks
O 172.16.10.0/24 [110/65] via 10.0.0.1, 01:15:22, GigabitEthernet0/1
D 172.16.10.0/25 [90/307200] via 10.0.0.2, 00:45:10, GigabitEthernet0/2
S 172.16.0.0/16 [1/0] via 10.0.0.3
C 172.16.10.128/25 is directly connected, GigabitEthernet0/3
Which two statements correctly describe how the router processes traffic based on these routing table components?
- A packet destined to 172.16.10.50 is forwarded out interface GigabitEthernet0/2 because the /25 EIGRP route represents the longest prefix match.Answer
- A packet destined to 172.16.10.200 is forwarded out interface GigabitEthernet0/3 because the connected subnet 172.16.10.128/25 is the longest prefix match.Answer
- CA packet destined to 172.16.10.50 is forwarded via next-hop 10.0.0.3 because the static route has the lowest Administrative Distance.
- DA packet destined to 172.16.10.200 is forwarded via next-hop 10.0.0.1 because the OSPF route has a lower metric than the connected interface.
Answer
Packets destined to 172.16.10.50 are egressed via GigabitEthernet0/2 due to the /25 EIGRP route being the longest prefix match, and packets destined to 172.16.10.200 are egressed via GigabitEthernet0/3 because the connected /25 route provides the longest prefix match for that address range.
Router forwarding decision logic evaluates routes using the Longest Prefix Match (LPM) rule. For 172.16.10.50, the EIGRP subnet 172.16.10.0/25 (/25 mask length) is longer than the OSPF /24 and static /16 routes. For 172.16.10.200, the directly connected subnet 172.16.10.128/25 (/25 mask length) is longer than the OSPF /24 and static /16 routes. Thus, both statements reflecting LPM selections out GigabitEthernet0/2 and GigabitEthernet0/3 are correct.
Step-by-Step Solution
Key Concept
Longest Prefix Match (LPM) Rule in Cisco IPv4 Forwarding