Cisco 300-410: BGP Policy, Scalability and Path Selection — Study Guide

Part of the Cisco CCNP Enterprise 300-410 ENARSI — Study Guide. Practice with verified answers in the Cisco exam hub, or take timed practice tests on ExamRoll.io.

Overview

Border Gateway Protocol (BGP) governs interdomain routing policy and scalable distribution of reachability. Designing resilient sessions, understanding next-hop and update behavior, and applying policy with full awareness of the best-path algorithm are foundational. At scale, iBGP relies on route reflectors or confederations, while advanced tools such as conditional advertisement, default-origination, multipath, and dampening refine behavior. This section details the operational mechanics, design trade-offs, and failure modes you must anticipate, and provides a systematic troubleshooting approach for both missing prefixes and unexpected path selection.

Session Design and Neighbor Establishment

Next-Hop Processing and Best-Path Selection

BGP best-path selection on Cisco platforms (high to low significance):

  1. Weight (Cisco-only, local to router; higher is preferred). Defaults: 32768 for locally injected routes, 0 otherwise.
  2. Local Preference (intra-AS; higher is preferred). Default 100; propagated in iBGP.
  3. Locally originated (network/aggregate/redistribute) preferred over learned.
  4. AS-path length (shorter is preferred). Prepending increases perceived distance.
  5. Origin code (IGP < EGP < Incomplete).
  6. MED (lower is preferred). Compared only among paths from the same neighboring AS unless bgp always-compare-med is enabled; bgp deterministic-med ensures consistent MED comparison across peers.
  7. Prefer eBGP over iBGP.
  8. Lowest IGP metric to BGP next hop (hot-potato).
  9. Prefer oldest route to reduce churn (if enabled, subject to dampening/multipath).
  10. Tie-breakers: minimum cluster-list length, lowest originator-ID, lowest neighbor BGP router-ID, and finally lowest neighbor IP address.

Design notes and pitfalls:

Policy Tools: Attributes, Communities, and Filtering

Short, targeted configuration examples:

Scaling iBGP and Advanced Behaviors

Systematic troubleshooting (missing prefixes and wrong paths):

  1. Verify BGP session health: show ip bgp summary; if flapping, inspect CoPP and TCP/179 reachability.
  2. Confirm policy admission: show ip bgp neighbors x received-routes/advertised-routes; ensure soft-reconfiguration or route refresh when needed.
  3. Validate next-hop: show ip bgp and show ip route [vrf NAME] ; fix IGP/recursion before tuning attributes.
  4. Check filters: prefix-lists, as-path access-lists, and communities; confirm neighbor send-community.
  5. Inspect attributes: weight/local-pref/AS-path/origin/MED; enable deterministic/always-compare MED where appropriate.
  6. Examine RIB-failure and specificity: a connected/static/IGP route with lower AD or a more-specific route will override BGP.
  7. Confirm scale mechanisms: on RRs, watch for path hiding and cluster-list loops; on confeds, validate no-export-subconfed usage.

Practical Problem Scenario

Acme Manufacturing operates AS 65010 with two ISPs: ISP-A (low delay) and ISP-B (backup). Acme runs iBGP across three core routers with two route reflectors and advertises 203.0.113.0/24. After adding an outbound route-map on the ISP-B edge, remote sites report increased latency and some paths prefer ISP-B unexpectedly.

Approach:

  1. Confirm session and policy health

    • show ip bgp summary and show policy-map control-plane to ensure no BGP flaps due to CoPP. Rationale: unstable control plane produces churn that masks policy effects.
  2. Verify next-hop reachability

    • show ip bgp 203.0.113.0/24 and show ip route . Rationale: next-hop recursion must succeed before attributes matter.
  3. Inspect outbound policy on ISP-B

    • show run | sec router bgp; review neighbor … route-map OUT out. Rationale: broad route-maps can inadvertently modify all announced prefixes, including locally originated ones.
  4. Constrain AS-path prepending to targeted NLRI

    • ip prefix-list ACME-PUB permit 203.0.113.0/24
    • route-map B-PREPEND permit 10 match ip address prefix-list ACME-PUB set as-path prepend 65010 65010 65010
    • route-map B-PREPEND permit 20
    • neighbor 198.51.100.2 route-map B-PREPEND out Rationale: Specific matching limits prepending to the intended prefix and avoids altering attributes of other announcements. The explicit permit 20 ensures unmatched routes are not dropped.
  5. Prefer ISP-A globally for outbound traffic

    • route-map SETLP permit 10 set local-preference 200
    • neighbor 203.0.113.1 route-map SETLP in Rationale: LOCAL_PREF influences egress choice across the entire AS (higher is better) and is the cleanest lever to prefer the low-delay ISP.
  6. Ensure communities propagate intended behavior

    • ip community-list standard AVOID-B permit 65010:90
    • route-map TAG-B permit 10 match ip address prefix-list ACME-PUB set community 65010:90 additive
    • neighbor 198.51.100.2 send-community Rationale: Tagging allows downstream policy decisions (for example, RR-based preference) and requires send-community to propagate.
  7. Validate RR behavior and avoid path hiding

    • On both RRs, confirm unique cluster-ids and client assignments; enable bgp additional-paths send receive select best 2 where supported. Rationale: In a multi-exit environment, RRs can hide a better path. Additional-paths or careful client topology reduces suboptimality.
  8. Verify outcomes and install state

    • show ip bgp 203.0.113.0/24 to confirm weight/local-pref/AS-path/MED; confirm eBGP over iBGP selection and IGP metric to next hop.
    • show ip bgp rib-failure to ensure the chosen path installs in the RIB. Rationale: Confirms that both the control and data planes reflect the intended design.

This sequence corrects the unintended AS-path changes (ensuring external ASes see Acme’s prefix at the desired distance), enforces ISP-A preference via LOCAL_PREF, preserves policy visibility with communities, and validates next-hop and installation so the final forwarding matches the design.


EIGRP Design · All domains · Route Redistribution and Policy-Based Routing

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product