Diagram
A decision tree that selects a VPC route by longest prefix match first, then lowest priority number, then ECMP split for ties.
How the Routing Table Selects Between Overlapping Routes
How the VPC routing table selects a route is a two-level decision that compares destination specificity first and numerical priority second. Destination specificity means how closely a route destination matches the packet destination IP, with the longest and most exact match winning. Only when two or more applicable routes have the same destination does numerical priority decide, with the higher-priority route winning.
Subnet routes always have the most specific destinations in the table because each subnet has at least one route whose destination matches its primary range. Subnet routes therefore protect paths to VMs and internal load balancers and cannot be overridden by another route even with higher priority. When custom static routes overlap with the same destination prefix, routes with the same priority distribute traffic across next hops using 5-tuple hash-based Equal-Cost Multi-Path (ECMP), while routes with different priorities create a preferred path and a redundant backup path.
Domain 3 of 4
119 practice questions
Practice this DomainLast updated