Black Friday sale: an extra 40% off every course until Monday, November 30.New Year sale: an extra 30% off every course until Friday, January 1.Memorial Day sale: an extra 25% off every course until Monday, May 31.SysAdmin Day sale: an extra 25% off every course until Sunday, August 1.Back to School sale: an extra 25% off every course until Sunday, August 22.Labor Day sale: an extra 25% off every course until Monday, September 6.Black Friday sale: an extra 40% off every course until Monday, November 29.New Year sale: an extra 30% off every course until Saturday, January 1.Choose your certification →

Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

4.2.1. Longest Prefix Match

The router always prefers the most specific route (longest prefix). For each packet it strips the incoming frame to read the destination IP, collects every route whose prefix contains that address, picks the longest, and then builds a new Layer 2 frame (new source and destination MAC) for the chosen next hop.

Example: Destination 192.168.1.50

  • Route A: 192.168.0.0/16 (covers .50 ✓)
  • Route B: 192.168.1.0/24 (covers .50 ✓) ← Selected (more specific)
  • Route C: 10.0.0.0/8 (doesn't cover .50 ✗)
See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder•26 professional certifications earned