Skip to content

ENARSI course / Control the BGP path · Step 5 of 5

Topic: Advanced BGPSwitch

1.0 Layer 3 Technologies

Advanced BGP Practice Questions

Best-path attributes, route reflection, communities, and BGP-to-IGP interaction.

All 24 Advanced BGP questions in this set

Answers and explanations appear when you work through the set above.

  1. Weight ties between two iBGP-learned paths. Path A carries local preference 150 and Path B carries local preference 100 (the default). Which path becomes the best path?

    • Path B, because default values are always preferred
    • Whichever path arrived first
    • Path A, because higher local preference wins before AS path
    • Neither, since local preference only affects eBGP paths
  2. Weight and local preference tie between two candidate paths. One prefix was injected with a network statement on the local router; the other was learned from a BGP peer. Which one wins at this stage of the algorithm?

    • The peer-learned path, because BGP trusts the external source more
    • The locally originated path, preferred over a peer-learned route
    • They remain tied and both stay in the table as multipath
    • The path with the lowest router ID
  3. Weight, local preference, and local origin all tie. Path A has AS_PATH "65001 65002" and Path B has AS_PATH "65003 65004 65005". Which path wins the AS path comparison?

    • Path B, since a longer path implies more redundancy
    • Path A, because it has fewer AS hops
    • Both are equally valid and BGP picks at random
    • Neither; AS path length is only a tie-breaker for MED
  4. Two paths remain tied through AS path length. One carries origin code "i" (IGP), and the other carries origin code "?" (incomplete). Which is preferred?

    • The incomplete-origin path, because redistribution makes its source more authoritative than a network statement
    • They are treated identically because origin code is informational only
    • The IGP-origin path, because origin type ranks IGP above EGP, and EGP above incomplete
    • Whichever path has the numerically lower origin code value in hexadecimal
  5. Two paths from the same neighboring autonomous system tie through origin type. One advertises MED 20 and the other MED 80. Assuming default bgp always-compare-med is not needed here, which path wins?

    • MED 80, because a higher MED indicates a better exit when comparing routes received from the same neighboring AS
    • MED 20, because lower MED wins between paths from the same neighboring AS
    • Neither, because MED is never compared unless bgp deterministic-med is off
    • MED is ignored whenever local preference is present
  6. All earlier best-path attributes tie between an eBGP-learned path and an iBGP-learned path for the same prefix. Which one does the router prefer?

    • The iBGP path, since internal paths are more stable
    • The eBGP path, since external learning wins at this step
    • Whichever was received most recently
    • Neither path, because mixed iBGP/eBGP paths are invalid
  7. Two iBGP paths remain tied after the eBGP-versus-iBGP step. The IGP metric to the BGP next hop of Path A is 5, and to the next hop of Path B is 40. Which path is preferred?

    • Path B, since a higher IGP metric shows a more thoroughly verified path
    • Path A, whose next hop has the lower IGP cost
    • Neither, since IGP metric only matters for redistributed routes
    • The tie is broken solely by router ID at this point, skipping IGP metric
  8. Two eBGP paths remain tied even after the IGP-metric comparison. One eBGP session has been up and stable for several hours; the other reset a few minutes ago. What can influence the outcome at this stage?

    • BGP always prefers the more recently established session
    • The older eBGP path can win under default settings
    • Session age is never used anywhere in the best-path process
    • The newer session automatically becomes administratively down
  9. After every earlier attribute ties, two remaining eBGP paths are advertised by routers with BGP router IDs 3.3.3.3 and 8.8.8.8. Which one wins the router ID tie-breaker?

    • The path from router ID 8.8.8.8, because a higher router ID always wins
    • 3.3.3.3, because lower router ID wins this comparison
    • Both remain installed as ECMP regardless of router ID
    • Router ID is never used as a tie-breaker in modern IOS-XE
  10. IP connectivity between two intended BGP peers is confirmed with ping, but the BGP session never leaves Idle or Active. An access list on the path denies TCP destination port 179. What is the most likely explanation?

    • OSPF must first form an adjacency before BGP opens its TCP session
    • The ACL blocks TCP/179, preventing the BGP TCP session
    • The routers have mismatched autonomous system numbers only
    • MPLS labels are not being exchanged
  11. Two eBGP routers are configured to peer using their loopback interfaces. ebgp-multihop and routes to both loopbacks are in place, but neither side applies neighbor <ip> update-source Loopback0. What symptom results?

    • The session forms using the configured loopback sources automatically, but MED comparison is disabled until update-source is set
    • TCP uses physical-interface source addresses instead of the configured peer loopbacks, so peering fails
    • AS path prepending stops working
    • The route reflector cluster ID becomes invalid
  12. Two eBGP routers peer via loopback addresses that are more than one Layer 3 hop apart, and the session fails with the TTL expiring in transit. What is required to fix this?

    • Set neighbor <ip> ebgp-multihop <ttl> for enough hops
    • Set next-hop-self on both routers so the BGP session packets use a larger IP TTL
    • Lower the eBGP AS path length limit
    • Disable PHP on the intermediate LSR
  13. An iBGP-learned prefix shows in the BGP table but is marked inaccessible because its next hop cannot be resolved through the IGP. Which fix is most appropriate at the edge router that originally learned the route from an eBGP peer?

    • Apply neighbor <ip> next-hop-self toward the iBGP peers
    • Increase the MED sent to iBGP peers so their IGP installs a recursive route to the external next hop
    • Set local preference to 0 on the affected prefix
    • Disable synchronization globally
  14. Which command gives the fastest condensed view of whether IPv4 unicast BGP neighbors are established and how many prefixes each is sending or receiving?

    • show ip route bgp
    • show bgp ipv4 unicast summary
    • show ip bgp neighbors detail
    • show ip protocols
  15. A route arrives tagged with the well-known BGP community no-export. What is the correct handling of that route by the receiving AS?

    • Advertise to external peers after stripping the community at the AS boundary to retain reachability
    • Do not export beyond the AS or confederation boundary
    • It must be dropped immediately and never installed in the RIB
    • It forces the receiving router to set local preference to 0
  16. A route is marked with the well-known community no-advertise. What behavior does this enforce?

    • Advertise the route to external BGP peers while withholding it from internal peers in the same AS
    • The route must not be advertised to any BGP peer at all, internal or external
    • The route is only withheld from route reflector clients
    • The route is advertised normally but with MED set to the maximum value
  17. A route-map sequence needs to match routes carrying a specific BGP community value before applying a set action. Which supporting object should the route map reference?

    • A standard access list matched with match ip address
    • A community list referenced with match community
    • A prefix list matched with match ip address prefix-list
    • An AS path access list matched with match as-path
  18. A peer starts advertising far more prefixes than the configured neighbor <ip> maximum-prefix <limit> threshold. What is the router enforcing when it logs a prefix-count warning or tears the session down?

    • A per-peer maximum-prefix limit protecting against route floods
    • The eBGP multihop TTL limit, which counts received prefixes to detect excessive routing distance
    • An implicit AS path access list
    • The route reflector cluster boundary
  19. A router is configured with aggregate-address 10.10.0.0 255.255.0.0 summary-only. What happens to the more-specific component routes that fall inside that range?

    • They remain advertised alongside the aggregate with their original attributes
    • Their advertisements are suppressed in favor of the aggregate
    • They are advertised only to iBGP peers, never eBGP
    • They are withdrawn from the local RIB entirely
  20. A large enterprise with 40 iBGP routers wants to avoid configuring a full iBGP mesh. Which design directly reduces that iBGP peering burden?

    • Enable BGP synchronization to discover iBGP peer sessions
    • Use route reflectors to replace full-mesh client peerings
    • Lowering the local preference on all internal routes
    • Switching every internal session from iBGP to eBGP
  21. Router R1 is a plain iBGP speaker (not a route reflector) with two iBGP neighbors, R2 and R3. R1 learns a prefix from R2 over iBGP. Why does R1 not forward that route to R3?

    • R3 has a lower router ID than R2, so R1 treats it as the originator and suppresses the update to prevent a loop
    • iBGP split horizon prevents a non-reflector from sending iBGP-learned routes to another iBGP peer
    • R1 has no FIB entry for the prefix
    • AS path prepending strips the route before it reaches R3
  22. A route reflector environment has redundant reflectors serving the same client cluster. Which attributes let a reflector detect and drop a route that has looped back to it?

    • Weight and local preference
    • MED and origin type
    • Originator ID and cluster list
    • Next hop and AS_PATH length
  23. A BGP update carries the atomic aggregate attribute. What does that attribute communicate to downstream routers?

    • The aggregate was learned over an eBGP multihop session, so downstream routers must raise their BGP session TTL
    • Aggregation lost some specific path information; contributors may have had different attributes
    • The route is protected by BFD
    • The route must be treated as a default route
  24. BGP multipath is enabled and two equally good eBGP paths to the same prefix are now both installed in the RIB for load sharing. What remains true about the best-path selection process itself?

    • Multipath replaces best-path selection with per-packet attribute comparison, so no single path is designated best
    • BGP still selects one best path; multipath adds other equally ranked eligible paths to the RIB
    • Only the newest path is kept and the older one is withdrawn
    • Multipath disables MED comparison entirely for all prefixes