Refer to the following partial IPv4 routing table output from a Cisco router:
text
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 4 subnets, 4 masks
O 10.88.164.32/28 [110/50] via 192.168.12.2, 00:14:22, GigabitEthernet0/0/1
D 10.88.164.0/25 [90/307200] via 192.168.23.3, 01:45:10, GigabitEthernet0/0/2
S 10.88.160.0/20 [1/0] via 192.168.34.4, 12:00:05, GigabitEthernet0/0/3
R 10.88.164.32/29 [120/2] via 192.168.45.5, 00:00:18, GigabitEthernet0/0/4
A packet with destination IP address arrives at the router. Which two statements correctly describe how the router processes and forwards this packet?
- The router forwards the packet via next-hop 192.168.45.5 out interface GigabitEthernet0/0/4.Cevap
- Longest prefix match is evaluated prior to administrative distance and routing protocol metric.Cevap
- CThe router forwards the packet via next-hop 192.168.34.4 because static routes take precedence due to an administrative distance of 1.
- DThe router forwards the packet via next-hop 192.168.23.3 because EIGRP routes are preferred over RIP and OSPF routes.
Cevap
The router forwards the packet via next-hop 192.168.45.5 out GigabitEthernet0/0/4, because longest prefix match is evaluated before administrative distance and metric.
When a router receives an IP packet, it searches its routing table for routes that enclose the destination IP address. If multiple routes match, the router strictly selects the route with the longest prefix mask (most specific network mask). Here, 10.88.164.32/29 matches 10.88.164.37 with 29 bits of match, which is longer than /28, /25, or /20. Therefore, the router forwards the packet to 192.168.45.5 via GigabitEthernet0/0/4. Administrative distance and metrics are never considered across different prefix lengths.
Adım Adım Çözüm
Anahtar Kavram
Router Forwarding Decision Logic & Longest Prefix Match (LPM)
Tahmini Süre:2m 0s