A network administrator issues the `show ip route` command on a Cisco router and observes the following partial routing table output:
text
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 4 subnets, 3 masks
O 10.20.0.0/16 [110/20] via 192.168.12.2, 00:15:10, GigabitEthernet0/0
D 10.20.30.0/24 [90/307200] via 192.168.23.3, 01:42:15, GigabitEthernet0/1
S 10.20.30.128/25 [1/0] via 192.168.34.4, GigabitEthernet0/2
O E2 10.0.0.0/8 [110/20] via 192.168.12.2, 00:05:22, GigabitEthernet0/0
Which TWO statements correctly describe the forwarding behavior and components of this routing table? (Select TWO.)
- A packet destined for 10.20.30.140 is egressed via GigabitEthernet0/2 because 10.20.30.128/25 provides the longest prefix match.Cevap
- BThe route entry for 10.20.30.0/24 indicates an Administrative Distance of 307200 and a routing metric of 90.
- For a packet destined to 10.20.30.150, the router prefers the static route (10.20.30.128/25) over the OSPF route (10.20.0.0/16) primarily due to prefix length rather than administrative distance.Cevap
- DA packet destined for 10.20.30.50 is routed out interface GigabitEthernet0/0 because OSPF has a lower metric than EIGRP.
Cevap
The router forwards a packet destined for 10.20.30.140 out GigabitEthernet0/2 due to the longest prefix match (/25), and it evaluates prefix length prior to Administrative Distance when choosing between 10.20.30.128/25 and 10.20.0.0/16 for host 10.20.30.150.
Routing table lookups prioritize the Longest Prefix Match (most specific subnet mask). For 10.20.30.140, the /25 route matches and is more specific than /24, /16, or /8, directing traffic to GigabitEthernet0/2. Similarly, prefix specificity overrides administrative distance when comparing non-identical prefix lengths such as /25 versus /16.
Adım Adım Çözüm
Anahtar Kavram
Routing Table Components and Longest Prefix Match Determination