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

3.1.2. Route Selection and Address Translation

When multiple routes exist to the same destination, routers select based on this hierarchy:

  1. Longest prefix match (most specific): /26 beats /24, regardless of anything else
  2. Administrative distance (AD): Lower = more trusted (used when prefixes are equal)
  3. Metric: Lower = better (used when AD is equal)
Administrative Distance Values:
SourceADTrust Level
Connected0Directly attached—absolute trust
Static1Administrator configured—high trust
EIGRP90Cisco dynamic routing
OSPF110Standard dynamic routing
RIP120Legacy protocol—low trust

⚠️ Exam Trap: Prefix length always wins. A /26 route is used over a /24 route even if the /24 has lower AD. The exam tests whether you understand this hierarchy—don't be fooled by attractive-looking AD values when prefix lengths differ.

Address Translation:
TypeFunctionUse Case
NATTranslates one IP to another (1:1)Map internal server to public IP
PATMaps many internal IPs to one external IP using portsHome routers, office internet access

PAT (Port Address Translation), also called NAT overload, is what most home and office routers use. Internal devices share one public IP, differentiated by source port numbers.

Alvin Varughese
Written byAlvin Varughese
Founder15 professional certifications