CCNP ENARSI practice test / CCNP ENARSI BGP Practice Questions: Troubleshooting eBGP and iBGP
CCNP ENARSI BGP Practice Questions: Troubleshooting eBGP and iBGP
10 original questions, each with an explanation for every option.
BGP is the part of ENARSI where reading output matters most. A session that will not come up, a route that is received but not installed, a filter that drops more than it should: the exam gives you the show output or the configuration and asks what is wrong.
On the 300-410 v1.1 exam, BGP sits under Layer 3 Technologies, the largest domain at 35%. The exam topics cover internal and external BGP for unicast and VRF-Lite: neighbor relationships (multihop, 4-byte and private AS numbers, peer groups, timers), path selection, a single route reflector, and policy with route maps, prefix lists, AS-path filters and communities.
Build three or four routers in CML, EVE-NG or GNS3: two autonomous systems, an iBGP pair peering over loopbacks and one eBGP link. Then break it on purpose: a wrong remote AS, a missing update-source, no next-hop-self, a route map without a final permit. Run show ip bgp summary and show ip bgp <prefix> before each fix. The questions below are built the same way, and every option is explained.
Adrian, network engineer and founder of CertAce.
How to work these questions
- Start with show ip bgp summary. A number in the State/PfxRcd column means the session is Established; Idle or Active means it has not got that far.
- For a session that will not come up, check that the neighbor address is reachable from the right source (peering between loopbacks needs update-source, and eBGP between loopbacks needs ebgp-multihop or disable-connected-check), the remote AS number and the authentication password.
- If the session is up but a prefix is missing, run show ip bgp <prefix>: was it received, is it valid, and is the next hop reachable? Over iBGP the next hop of an eBGP route stays the external address unless the edge router sets next-hop-self.
- If the prefix is there but not best, walk the path selection order: weight, local preference, locally originated, AS-path length, origin, MED, eBGP over iBGP, IGP metric to the next hop, then the tie-breakers.
- If it does not reach the other side, check outbound policy: a route map ends with an implicit deny, prefix lists match the length with ge and le, and outbound AS-path filters are evaluated before your own AS is prepended.
Practice questions
Pick an answer to see right away whether it is correct and why every option is right or wrong.
-
Question 1 of 10Exhibit
Refer to the exhibit. After a change window, R1's eBGP session with R3 went down and has not come back, while the session with R2 stayed up. R1 logs the message shown every few seconds. What is the cause?
R1# show ip bgp summary | begin Neighbor Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.0.12.2 4 65020 2210 2195 44 0 0 1d12h 18 10.0.13.2 4 65030 0 0 1 0 0 00:07:41 Active R1# show logging | include BADAUTH %TCP-6-BADAUTH: No MD5 digest from 10.0.13.2(52814) to 10.0.13.1(179) tableid - 0
- R1 and R3 both have neighbor passwords, but the two differ
- R1 has a neighbor password for R3, and R3 has none for R1
- R3 has a neighbor password for R1, and R1 has none for R3
- R2 sends no MD5 digest, so R1 drops its port 179 segments
Show the answer
Answer: B
BGP MD5 authentication (neighbor password) protects the TCP session, so a mismatch looks like a TCP failure: the neighbor stays Idle or Active, and %TCP-6-BADAUTH is logged. No MD5 digest means the peer sends no digest (it has no password), while Invalid MD5 digest means both sides use passwords that differ.
- A. With two different passwords the segments do carry a digest, and the log reads Invalid MD5 digest. No MD5 digest means the sender added no digest at all.
- B. No MD5 digest means R1 expects a digest, because it has a password for 10.0.13.2, but R3's segments carry none, so R3 has no password for R1. R1 discards them, TCP never completes, and the neighbor stays Active.
- C. Then R3 would be the router expecting a digest and dropping segments. R1, with no password, would not complain that a digest is missing.
- D. The log names 10.0.13.2, which is R3 in the drawing. R2, 10.0.12.2, has been Established for 1d12h with 18 prefixes, so its authentication matches.
-
Question 2 of 10Config
Refer to the exhibit. R1 and R2 must form an eBGP session between their loopbacks through R3, which does not run BGP. Static routes on all three routers make the loopbacks reachable, and a ping from R1's Loopback0 to 10.255.0.2 succeeds. R2 has the mirror image of R1's neighbor configuration, and the session stays Active. Which change brings the session up?
R1# show running-config | section router bgp router bgp 65010 neighbor 10.255.0.2 remote-as 65020 neighbor 10.255.0.2 disable-connected-check neighbor 10.255.0.2 update-source Loopback0 R1# show ip bgp summary | begin Neighbor Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 10.255.0.2 4 65020 0 0 1 0 0 never Active
- On R1 only, replace disable-connected-check with ebgp-multihop 2
- On R1 and R2, add ebgp-multihop 2 and remove update-source Loopback0
- On R1 and R2, replace disable-connected-check with ebgp-multihop 2
- On R1 and R2, peer between the addresses 10.0.13.1 and 10.0.23.2
Show the answer
Answer: C
By default an eBGP session uses TTL 1 and requires the neighbor address to be on a connected subnet. disable-connected-check removes only the connected-subnet test, which suits loopback peering between directly connected routers; when a router sits in the path, configure ebgp-multihop with a TTL that covers the hops on both peers.
- A. R1's packets would now reach R2, but R2 still sends its own TCP and BGP packets with TTL 1, and R3 drops them. Both peers must allow the extra hop.
- B. Without update-source, each router sources the session from its physical address, which does not match the loopback address in the peer's neighbor statement, so the peer refuses the connection.
- C. disable-connected-check only skips the test that the neighbor sits on a connected subnet; BGP packets still leave with TTL 1, and R3 drops them when the TTL reaches 0. ebgp-multihop 2 on both peers lets the packets cross R3, and it lifts the connected check as well.
- D. 10.0.13.1 and 10.0.23.2 are on different subnets with R3 between them, so the peers are still two hops apart, and TTL 1 still stops the session.
-
Question 3 of 10Exhibit
Refer to the exhibit. ISP-A must not pass customer R1's private AS number to its upstream R9. R1's engineer added the remove-private-as command shown and ran clear ip bgp 203.0.113.1 soft out, but R9 still receives the path shown. Which change removes 65010 from the path that R9 receives?
R1# show running-config | section router bgp router bgp 65010 network 10.10.0.0 mask 255.255.0.0 neighbor 203.0.113.1 remote-as 64500 neighbor 203.0.113.1 remove-private-as R9# show ip bgp | begin Network Network Next Hop Metric LocPrf Weight Path *> 10.10.0.0/16 198.51.100.1 0 64500 65010 i- On ISP-A, add remove-private-as to its session with R1
- On R9, add remove-private-as to its session with ISP-A
- On R1, change the command to remove-private-as all
- On ISP-A, add remove-private-as to its session with R9
Show the answer
Answer: D
remove-private-as applies to outbound updates to an eBGP neighbor and runs before the router prepends its own AS, so it belongs on the provider edge toward its other eBGP peers, not on the customer. The private ranges are 64512–65534 and, for 4-byte numbers, 4200000000–4294967294.
- A. On that session the command would clean only the updates ISP-A sends to R1. The path ISP-A sends to R9 would still carry 65010.
- B. The command never filters received updates; it changes only what the router sends. R9 would strip private AS numbers from its own advertisements to ISP-A, not from the path it learned.
- C. R1's own route has an empty AS path when the check runs, and R1 prepends 65010 afterwards, whichever keyword is used. A router cannot remove its own AS this way.
- D. remove-private-as acts on updates sent to the eBGP neighbor where it is configured, before the router adds its own AS. ISP-A receives the path 65010, strips the private AS toward R9, then prepends 64500, so R9 sees 64500 alone.
-
Question 4 of 10Exhibit
Refer to the exhibit. OSPF in AS 65010 advertises the three loopbacks but not the link to ISP-A. R3 installs 198.51.100.0/24 from R1, but R4 does not. What is the cause?
R1# show running-config | section router bgp router bgp 65010 neighbor IBGP peer-group neighbor IBGP remote-as 65010 neighbor IBGP update-source Loopback0 neighbor IBGP next-hop-self neighbor 10.255.0.3 peer-group IBGP neighbor 10.255.0.4 remote-as 65010 neighbor 10.255.0.4 update-source Loopback0 neighbor 203.0.113.1 remote-as 64500 R4# show ip bgp 198.51.100.0 BGP routing table entry for 198.51.100.0/24, version 0 Paths: (1 available, no best path) Not advertised to any peer Refresh Epoch 1 64500 203.0.113.1 (inaccessible) from 10.255.0.1 (10.255.0.1) Origin IGP, metric 0, localpref 100, valid, internal- R4 needs next-hop-self on its own session with R1 to reach 203.0.113.1
- R4 is two hops away from R1, so its iBGP session needs ebgp-multihop 2
- R4 is not in peer group IBGP, so R1 sends it the ISP's next hop
- Synchronization on R4 holds the route back until OSPF also learns it
Show the answer
Answer: C
Over iBGP the next hop of an eBGP route is passed on unchanged, so advertise the external link into the IGP or set next-hop-self on the edge router. A peer group applies its settings only to its members; a neighbor configured on its own inherits nothing from the group. show ip bgp <prefix> marks an unreachable next hop as inaccessible.
- A. next-hop-self changes the next hop in the updates a router sends. On R4 it would affect R4's advertisements to R1, not the route R4 receives.
- B. ebgp-multihop applies only to eBGP; iBGP packets already use a high TTL. The session is up anyway, since R4 received the update from 10.255.0.1.
- C. Peer-group members inherit every setting of the group. 10.255.0.3 is a member and gets next-hop-self; 10.255.0.4 is configured on its own, so R1 passes the eBGP next hop 203.0.113.1 unchanged, and R4 has no route to it.
- D. The output marks the next hop 203.0.113.1 as inaccessible, a next-hop problem. Synchronization is off by default in IOS XE and plays no part here.
-
Question 5 of 10Scenario
Refer to the exhibit. R1 is the only route reflector in AS 65010, each router has a single iBGP session, to R1, and OSPF carries every loopback. R5 learns 198.51.100.0/24 from the ISP and advertises it to R1 with next-hop-self. R2 and R3 install the route, but show ip bgp on R4 returns % Network not in table. What is the cause?
- A route reflector never passes reflected routes on to its non-clients
- R1 learned it from a non-client and reflects it only to clients
- R4 drops it because the cluster list already holds R1's cluster ID
- R1 left R5's next hop in place, and R4 cannot resolve 10.255.0.5
Show the answer
Answer: B
A route reflector sends routes learned from eBGP peers and from clients to all clients and non-clients, but routes learned from a non-client only to clients. Non-clients must therefore keep a full iBGP mesh among themselves, or be made clients. By default the reflector changes neither the next hop nor the other attributes.
- A. Routes from clients are reflected to non-clients as well; if R5 were a client, R4 would receive the route. The blocked direction is from one non-client to another.
- B. A route reflector sends routes from eBGP peers and from clients to everyone, but routes from a non-client only to clients, because non-clients are expected to be fully meshed. R4 needs an iBGP session with R5, or R1 must make R4 or R5 a client.
- C. Only route reflectors check the cluster list for their own cluster ID. R4 is a non-client, and R1 never sent it the route.
- D. An unreachable next hop leaves the route in the table marked inaccessible, not missing, and OSPF carries 10.255.0.5 to every router.
-
Question 6 of 10Exhibit
Refer to the exhibit. R1 and R2 in AS 65010 each have an eBGP session to a different router in AS 64500, and they are iBGP peers over their loopbacks with next-hop-self. No bgp bestpath options are configured. Why does R1 prefer the path through R2 to its own eBGP path?
R1# show ip bgp | begin Network Network Next Hop Metric LocPrf Weight Path *>i 198.51.100.0/24 10.255.0.2 20 100 0 64500 i * 203.0.113.1 50 0 64500 i- Both paths come from AS 64500, so MED counts, and 20 beats 50
- The eBGP path has no local preference, and that ranks below 100
- R1 prefers an iBGP path whose next hop is the peer's loopback
- The paths tie up to the router ID, and R2's ID is the lower one
Show the answer
Answer: A
By default MED is compared only between paths from the same neighboring AS, and it is checked before eBGP over iBGP. An iBGP path can therefore beat a router's own eBGP path when both lead to the same provider and the iBGP path has the lower MED. In show ip bgp, a blank Metric means no MED (treated as 0) and a blank LocPrf means the default 100.
- A. Weight (0), local preference (100; a blank LocPrf means the default) and AS-path length tie, and both origins are IGP. Both paths come from the same neighboring AS, so MED is compared next, and the lower value wins before the eBGP-over-iBGP step is reached.
- B. A blank LocPrf in show ip bgp means the default of 100 is in effect, so local preference ties.
- C. No such rule exists. The next hop matters for reachability and for the IGP-metric step, which comes after MED.
- D. The paths differ at the MED step, long before the router ID tie-breaker. Had they tied through MED, R1 would have preferred its own eBGP path.
-
Question 7 of 10Scenario
Refer to the exhibit. R1 must advertise only its own prefixes to both ISPs, so that AS 65010 never becomes a transit path between them. After the engineer applied the AS-path filter shown and cleared the sessions, neither ISP receives any prefix from R1. Which change fixes the filter?
R1# show running-config | section router bgp|as-path router bgp 65010 network 10.10.0.0 mask 255.255.0.0 neighbor 198.51.100.1 remote-as 64501 neighbor 198.51.100.1 filter-list 1 out neighbor 203.0.113.1 remote-as 64500 neighbor 203.0.113.1 filter-list 1 out ip as-path access-list 1 permit ^65010$ R1# show ip bgp neighbors 203.0.113.1 advertised-routes Total number of prefixes 0
- Change the AS-path ACL entry to permit _65010$
- Apply filter-list 1 inbound instead of outbound
- Add ip as-path access-list 1 permit .* after it
- Change the AS-path ACL entry to permit ^$
Show the answer
Answer: D
Outbound AS-path filters are evaluated before the local AS is prepended, so routes originated in your own AS have an empty path and match ^$. Use ^$ outbound toward providers to prevent transit; _65010$ (originated by AS 65010) and ^65020_ (learned from neighbor AS 65020) are typical matches for received routes.
- A. R1's own routes do not contain 65010 yet when the outbound filter runs, so _65010$ also matches nothing and the ISPs still receive no prefixes.
- B. Inbound, the filter would check the ISPs' routes, none of which has the path 65010 alone, so R1 would accept nothing, and nothing outbound would stop R1 passing one ISP's routes to the other.
- C. .* matches every AS path, so R1 would pass the routes learned from one ISP to the other and become a transit AS.
- D. An outbound filter-list is checked before R1 prepends its own AS. At that point R1's own prefixes have an empty AS path, which ^$ matches, while routes learned from either ISP start with that ISP's AS and are denied.
-
Question 8 of 10Exhibit
Refer to the exhibit. R1 applies the AS-path filter shown to the routes from ISP-A, neighbor 203.0.113.1 in AS 64500. ISP-A sends the five /16 prefixes listed. Which prefixes does R1 accept?
R1# show running-config | include filter-list|as-path neighbor 203.0.113.1 filter-list 20 in ip as-path access-list 20 deny ^64500_64502_ ip as-path access-list 20 permit _64510$ Prefixes sent by ISP-A (AS path as received by R1) 10.1.0.0/16 64500 64510 10.2.0.0/16 64500 64510 64510 64510 10.3.0.0/16 64500 64510 64502 10.4.0.0/16 64500 64502 64510 10.5.0.0/16 64500 64511 64510
- 10.1.0.0, 10.2.0.0 and 10.5.0.0
- 10.1.0.0, 10.2.0.0, 10.4.0.0 and 10.5.0.0
- 10.1.0.0 and 10.5.0.0 only
- 10.1.0.0, 10.2.0.0, 10.3.0.0 and 10.5.0.0
Show the answer
Answer: A
In AS-path regular expressions, ^ anchors the start (the neighbor AS), $ the end (the originating AS), and _ matches a space, the start or end of the path, or another delimiter. ^64500_ means learned from neighbor AS 64500, _64510$ means originated by AS 64510, and ^$ means originated locally. Entries are evaluated in order, and a path that matches no entry is denied.
- A. _64510$ matches paths that end in 64510, the routes originated by AS 64510: 10.1, 10.2 (prepended) and 10.5. 10.4 also ends in 64510 but first matches the deny entry, because its path starts 64500 64502, and 10.3 ends in 64502.
- B. Entries are checked in order and the first match decides. The path of 10.4.0.0, 64500 64502 64510, matches the deny entry ^64500_64502_ before the permit is reached.
- C. Prepending repeats 64510, but the path still ends in 64510 with a space before it, so _64510$ matches 10.2.0.0 as well.
- D. The path of 10.3.0.0 ends in 64502; 64510 appears only in the middle, and $ requires it at the end. _64510_ would have matched it.
-
Question 9 of 10Exhibit
Refer to the exhibit. R1 tags 10.10.0.0/16 with no-export toward AS 64500. R3 has a plain eBGP session with R5 and no routing policy, and all next hops are reachable. Which external routers receive 10.10.0.0/16?
R1# show running-config | section router bgp|route-map router bgp 65010 network 10.10.0.0 mask 255.255.0.0 neighbor 192.0.2.2 remote-as 64500 neighbor 192.0.2.2 send-community neighbor 192.0.2.2 route-map TAG out route-map TAG permit 10 set community no-export R2# show running-config | section router bgp router bgp 64500 neighbor 10.255.0.3 remote-as 64500 neighbor 10.255.0.3 update-source Loopback0 neighbor 10.255.0.3 next-hop-self neighbor 192.0.2.1 remote-as 65010 neighbor 198.51.100.6 remote-as 64510
- R4 only
- R5 only
- Both R4 and R5
- Neither R4 nor R5
Show the answer
Answer: B
no-export keeps a route inside the receiving AS: it is passed to iBGP peers but not to eBGP peers, while no-advertise stops it from being advertised to any peer. IOS XE sends communities only to neighbors configured with send-community, so every router that must pass the tag on, iBGP hops included, needs it.
- A. R1 sends the community (it has send-community), so R2 sees no-export and does not advertise the route to R4, an eBGP peer.
- B. R2 honors no-export and keeps the route from its eBGP peer R4. It does advertise it to its iBGP peer R3, but without send-community toward 10.255.0.3 the community is stripped, so R3 sees an ordinary route and advertises it to R5.
- C. R2 does honor no-export on its own eBGP session to R4. The leak happens only at R3, which never received the community.
- D. That needs R3 to receive the community, which requires neighbor 10.255.0.3 send-community on R2. Without it, the tag stops at R2.
-
Question 10 of 10Scenario
Refer to the exhibit. R1 and R2 peer over their IPv6 link addresses, and R2 has the mirror image of R1's configuration with its own prefix, 2001:DB8:20::/48. The session is Established, but neither router learns the other's IPv6 prefix. Which change fixes it?
R1# show running-config | section router bgp router bgp 65010 bgp router-id 10.255.0.1 neighbor 2001:DB8:12::2 remote-as 65020 ! address-family ipv4 neighbor 2001:DB8:12::2 activate exit-address-family ! address-family ipv6 network 2001:DB8:10::/48 exit-address-family R1# show ip bgp summary | begin Neighbor Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd 2001:DB8:12::2 4 65020 35 36 1 0 0 00:31:12 0
- On both routers, activate the neighbor under address-family ipv6
- On R1 only, activate the neighbor under address-family ipv6
- On both routers, configure no bgp default ipv4-unicast
- On both routers, move the network command into address-family ipv4
Show the answer
Answer: A
IOS XE activates neighbors for IPv4 unicast by default, whatever their transport address, and every other address family needs neighbor <address> activate under that family on both peers. A session can be Established and still exchange nothing in a family that was not negotiated; check it with show bgp ipv6 unicast summary.
- A. With the default bgp default ipv4-unicast, every neighbor, even one with an IPv6 address, is activated for IPv4 unicast only, as the exhibit shows. The session carries IPv6 routes only after both routers activate the neighbor under address-family ipv6 and announce that family in their OPEN.
- B. An address family is used only when both peers announce it in their OPEN messages. With only R1 activated, R2 still offers IPv4 unicast alone, and no IPv6 routes are exchanged.
- C. This stops the automatic IPv4 activation of new neighbors but activates nothing for IPv6, so the IPv6 prefixes are still not exchanged.
- D. 2001:DB8:10::/48 is an IPv6 prefix; the IPv4 family cannot advertise it, and the neighbor is already active there without exchanging anything.
Want more like these? The full CertAce bank has timed exams, a review pool for the questions you miss and readiness per exam domain.
Start free trial3 days and 100 questions, no card needed.
Common mistakes
- Expecting iBGP to change the next hop. Routes learned over eBGP keep the external next hop when passed to iBGP peers, unless next-hop-self is set.
- Forgetting that a router does not pass iBGP-learned routes to other iBGP peers, which is why iBGP needs a full mesh or a route reflector.
- Applying a route map to change one attribute and forgetting the implicit deny at the end, which silently drops every other route from that neighbor.
- Comparing MED between paths from different neighboring autonomous systems. By default, IOS compares MED only between paths from the same AS.
- Reading Active as a good state. In BGP, Active means the router is still trying to open the TCP session; Established is the working state.
Questions people ask
How much BGP is on the ENARSI exam?
BGP is one part of Layer 3 Technologies, which Cisco weights at 35% of the 300-410 v1.1 exam, together with EIGRP, OSPF, redistribution, route maps, policy-based routing and VRF-Lite. Cisco does not publish how many questions cover each topic.
Do I need to memorize the BGP best path order?
Yes. Many questions give two or three paths with their attributes and ask which one wins. The order on IOS: highest weight, highest local preference, locally originated, shortest AS path, lowest origin code, lowest MED, eBGP over iBGP, lowest IGP metric to the next hop, then the tie-breakers such as the oldest eBGP path and the lowest router ID.
Are these real exam questions?
No. They are original questions written by CertAce for practice, in the style of the exam: show output, configuration and scenarios. CertAce has no access to Cisco exam content and is not affiliated with Cisco.
More CCNP ENARSI topics
Questions written by CertAce. CertAce is not affiliated with or endorsed by Cisco Systems. CCNP and Cisco are trademarks of Cisco Systems, Inc.