An enterprise edge router receives an IP packet destined for host address . The router's active routing table contains four candidate routes:
| Protocol Source | Destination Subnet | Administrative Distance | Metric | Next Hop |
|---|---|---|---|---|
| Static | 1 | 0 | Null0 | |
| eBGP | 20 | 100 | ||
| OSPF | 110 | 20 | ||
| RIPv2 | 120 | 2 |
Which route will the router select to forward the packet, and why?
- The RIPv2 route (), because Longest Prefix Match takes precedence over Administrative Distance.Cevap
- BThe Static route (), because static routes have the lowest Administrative Distance.
- CThe eBGP route (), because exterior gateway protocols are prioritized over interior gateway protocols.
- DThe OSPF route (), because it offers the optimal balance between prefix specificity and Administrative Distance.
Cevap
The router will select the RIPv2 route () because Longest Prefix Match (LPM) is the absolute first criterion used in IP routing decisions, taking precedence over Administrative Distance and metric.
When a router receives a packet, it evaluates all matching routing table entries using the Longest Prefix Match (LPM) rule first. Because has the longest subnet mask (/28 = 28 matching bits) among all matching candidate routes, it is chosen immediately. Administrative Distance (AD) and metrics are only evaluated to select a winner when two or more routes advertise identical destination prefix lengths.
Adım Adım Çözüm
Anahtar Kavram
Longest Prefix Match (LPM) Rule