An administrator reviews the following IPv4 routing table snippet on a Cisco router:
text
Gateway of last resort is 172.20.10.1 to network 0.0.0.0
B 10.100.0.0/16 [200/0] via 172.20.10.2, 04:12:30
O IA 10.100.16.0/20 [110/35] via 192.168.20.2, 01:05:18, GigabitEthernet0/1
D 10.100.20.0/22 [90/156160] via 192.168.30.2, 00:18:42, GigabitEthernet0/2
C 192.168.20.0/24 is directly connected, GigabitEthernet0/1
L 192.168.20.1/32 is directly connected, GigabitEthernet0/1
A packet arrives at the router addressed to . Which TWO statements correctly describe how the routing table components are evaluated to forward this packet? (Select TWO.)
- The router selects the route for 10.100.20.0/22 because it provides the longest prefix match (/22) for the destination IP address.Answer
- The routing entry for 10.100.20.0/22 indicates an administrative distance of 90 and a metric of 156160.Answer
- CThe router selects the route for 10.100.16.0/20 because the OSPF cost metric of 35 is lower than the EIGRP metric of 156160.
- DThe router selects the BGP route for 10.100.0.0/16 because BGP routes take precedence over EIGRP and OSPF regardless of prefix length.
Answer
The router selects the route for 10.100.20.0/22 based on the longest prefix match rule, and the routing entry defines an administrative distance of 90 with a metric of 156160.
When evaluating incoming packets for forwarding, Cisco routers determine all matching routes and choose the route with the longest subnet mask (most specific prefix). The address 10.100.21.50 matches three entries, but 10.100.20.0/22 has the longest prefix length (/22). Furthermore, Cisco routing tables present protocol metadata in the bracketed structure [Administrative Distance / Metric], which identifies an administrative distance of 90 and a metric value of 156160 for the EIGRP route.
Step-by-Step Solution
Key Concept
Routing Table Component Interpretation and Longest Prefix Match Selection