Sections:
Overview:
How Longest Prefix Match Works
Scenario: In this scenario, we will compare three routes and determine which route is the longest prefix match for a given destination IP address
Routes
Destination IP
Step 1: Convert Routes to Binary
Step 2: Convert Destination IP to Binary
Step 3: Choose the Route with the most matching bits (0s and 1s) to the destination IP
Based on the calculation the longest prefix match route for destination IP 192.168.1.130 is 192.168.1.128/25
Lab Topology
Scenario: In this lab scenario, I have added routers 4 - 8 for the longest prefix match concept lab
Configuration
Notes: