A Layer 3 core switch processes an incoming packet destined for host . The switch's active routing table contains four candidate routes:
- Route 1: via OSPF (Administrative Distance: 110, Metric: 20)
- Route 2: via iBGP (Administrative Distance: 200, Metric: 100)
- Route 3: via Static Route (Administrative Distance: 1, Metric: 0)
- Route 4: via EIGRP External (Administrative Distance: 170, Metric: 15)
Which route will the switch select to forward the packet, and what is the primary decision rule applied?
- Route 4 (), because longest prefix match takes precedence over administrative distance and metric.Cevap
- BRoute 3 (), because static routes have the lowest administrative distance of all candidate routes.
- CRoute 1 (), because OSPF is an interior gateway protocol with a lower administrative distance than EIGRP External or iBGP.
- DRoute 2 (), because it matches the destination host address range while maintaining standard dynamic routing metrics.
Cevap
The switch will select Route 4 () because longest prefix match is the primary rule for Layer 3 forwarding decisions.
The router uses the Longest Prefix Match (LPM) rule as the absolute first criterion when making forwarding decisions. Subnet mask () has 26 network bits, making it more specific than , , or . Because Route 4 covers and has the longest prefix length, it is selected immediately regardless of its higher Administrative Distance.
Adım Adım Çözüm
Anahtar Kavram
Longest Prefix Match (LPM) Routing Table Logic