Correct Route Selection Order
Correct Route Selection Order
-
Longest Prefix Match (Most Specific Route)
- The router first chooses the route with the longest subnet mask (highest prefix length).
-
Example:
10.1.0.0/16
10.1.1.0/24Destination:
10.1.1.50-
/24is chosen because it is more specific than/16.
-
-
Administrative Distance (AD)
- If multiple routes have the same prefix length, the router selects the route with the lowest AD.
-
Common AD values:
Route Source AD Connected 0 Static 1 EIGRP Summary 5 eBGP 20 EIGRP Internal 90 OSPF 110 IS-IS 115 RIP 120 EIGRP External 170 iBGP 200
-
Metric
- If the routes come from the same routing protocol (same AD), the router chooses the route with the lowest metric.
-
Examples:
- RIP → Hop Count
- OSPF → Cost
- EIGRP → Composite Metric
- IS-IS → Cost
Comments
Post a Comment