Wiki3 · IP Connectivity · exam tip

Longest Prefix Match

Also: most specific routemost specific matchlongest match

When several routes match a destination, the router uses the most specific one (longest prefix length), regardless of administrative distance or metric. For 10.1.1.5, a 10.1.1.0/24 route beats 10.0.0.0/8 and 0.0.0.0/0.

NetworkChuck0

Not taught as a topic in NetworkChuck Free CCNA. Mentioned fewer than twice, if at all.

Jeremy's IT Lab3

  1. Day 12 The Life of a Packet

    Longest Prefix MatchAt each hop the router looks up the packet's destination IP and uses the most specific matching route, e.g. 192.168.4.0/24 via 192.168.12.2 on R1.

    7:50It looks up the destination in its routing table. The most specific match is this entry for the 192.168.4.0/24 network, which specifies a next hop of 192.168.12.2.
    Said 3×
  2. Day 24 Dynamic Routing

    Longest Prefix MatchRoutes with different prefix lengths are different destinations, so AD and metric are not compared between them; the router forwards using the most specific matching route (longest prefix), e.g. a /28 OSPF route over a /22 static route.

    40:23…route because it has the highest administrative distance. B, the OSPF route because it is the route with the longest prefix match.
    Said 3×
  3. Day 11 Part 1 Routing Fundamentals

    Longest Prefix MatchWhen several routes match a destination, the router uses the most specific matching route, which is the one with the longest prefix length. A /32 local route beats a /24 connected route for the router's own address.

    18:40…ble. This first packet is destined for 192.168.1.1, and when R1 checks its routing table it will see that the most specific match is this one, to 192.168.1.1/32.
    Said 2×

Related terms

Flashcards that test it