Examine the following Cisco router IP routing table output:
text
R1# show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
Gateway of last resort is not set
172.24.0.0/16 is subnetted, 4 subnets
S 172.24.0.0/16 [1/0] via 10.10.10.1
D 172.24.16.0/24 [90/307200] via 10.10.20.1
O 172.24.16.64/26 [110/40] via 10.10.30.1
R 172.24.16.80/28 [120/2] via 10.10.40.1
Router R1 receives an IP packet destined for . Which next-hop IP address will router R1 select to forward this packet?
- 10.10.40.1Cevap
- B10.10.10.1
- C10.10.20.1
- D10.10.30.1
Cevap
10.10.40.1
When a router makes a forwarding decision, it evaluates matching routes using Longest Prefix Match (LPM) as the top priority criterion. Because matches (range .80–.95), the route has the longest prefix length (28 bits) among all candidates. Thus, next-hop 10.10.40.1 is selected regardless of RIP having a higher Administrative Distance (120) than Static (1), EIGRP (90), or OSPF (110).
Adım Adım Çözüm
Anahtar Kavram
Longest Prefix Match (LPM) precedence in Cisco IPv4 routing lookup decision logic
Tahmini Süre:2m 0s