Configure eBGP Neighborship and Network Advertisement
Short answer
D Configure Router A with local AS 65001, neighbor 10.0.1.2 remote-as 65002, and network 10.0.2.0 255.255.255.0.
Question

Key Takeaways
Testing eBGP configuration requires matching the local AS to the configured router and the remote AS to the neighbor, while advertising the correct connected network.
This page resolves a tricky eBGP configuration question requiring the correct local AS, remote AS, neighbor IP, and network statement. It establishes why Option D is the correct configuration on Router A.
Common mistake: Choosing Option A because it advertises the correct network, but it uses the wrong local AS (65002) and wrong remote AS (65002), which would not form an eBGP peering.
Expert Analysis
Why the Answer Is Correct
Option D correctly specifies router bgp 65001 for Router A's local AS, neighbor 10.0.1.2 remote-as 65002 for Router B's IP and AS, and network 10.0.2.0 255.255.255.0 to advertise the network on Router A's G0/1 interface. This perfectly aligns with the requirement to configure eBGP on Router A and advertise its connected subnet.
Why the Other Options Are Wrong
Option A uses the wrong local AS (65002) and remote AS (65002), which would fail eBGP peering and represents Router B's perspective. Option B uses redistribute static instead of explicitly advertising the connected network with a network statement. Option C advertises the wrong network (10.0.1.0), which is the transit link, instead of the G0/1 connected network (10.0.2.0).
Community Comment Notes
Several commenters noted the question text was missing from the exhibit, but as Tim1992 pointed out, the full question asks to configure eBGP on Router A to peer with Router B and advertise G0/1. TroyMcLure confirmed this makes D correct despite the missing "mask" keyword in the network statement. abdulwares123 incorrectly suggested Router A is AS 65002, which would reverse the peering roles.
Exam Strategy
When facing BGP configuration questions, always identify the local router's AS first, then the neighbor's IP and AS. Finally, match the network statement to the specific interface subnet requested for advertisement.
Community Votes
85% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 33 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 30 of 33
-
snarkymark 👍 26Unless I am missing something here, none of these are right. Let me know if I am missing something.
-
Tim1992 👍 7The diagram is wrong. Router A resides in AS 65001. Router B resides in AS 65002. Question: An engineer must configure an eBGP neighborship to Router B on Router A. The network that is connected to GO/1 on Router A must be advertised to Router B. Which configuration should be applied? Answer is D: router bgp 65001 neighbor 10.0.1.2 remote-as 65002 network 10.0.2.0 255.255.255.0
-
TroyMcLure 👍 4 Answered DThe wording of the question is mising. It should have been as follows: "An engineer must configure an eBGP neighborship to Router B on Router A. The network that is connected to G0/1 on Router A must be advertised to Router B. Which configuration should be applied?" That makes D the correct answer, even though the keyword "mask" is missing from the network statement.
-
abdulwares123 👍 3 Answered DI am sure completely all options are wrong because we should login in router A and type the following commands for advertise the mentioned network: R-A(config)# router bgp 65002 R-A(config-router)# neighbor 10.0.1.2 remote-as 65001 R-A(config-router)# network 10.0.2.0 mask 255.255.255.0 R-A(config-router)# exit
-
owenshinobi 👍 3What the question !!! No question, no correct answer.
Show 25 more comments
-
HarwinderSekhon 👍 3remote as IP is wrong. D is not correct either
-
bendarkel 👍 3No question, no correct answer.
-
KZM 👍 2Router A (ASN: 65001) "10.0.1.1" <-----------------> "10.0.1.2" Router B (ASN: 65002) Router A G0/1 "10.0.2.1/24" Refer to the exhibit. An engineer must configure an eBGP neighborship to Router B on Router A. The network that is connected to G0/1 on Router A must be advertised to Router B. Which configuration should be applied? A. router bgp 65001 neighbor 10.0.1.2 remote-as 65002 network 10.0.1.0 255.255.255.0 B. router bgp 65001 neighbor 10.0.1.2 remote-as 65002 network 10.0.2.0 255.255.255.0 C. router bgp 65001 neighbor 10.0.1.2 remote-as 65002 redistribute static D. router bgp 65002 neighbor 10.0.1.2 remote-as 65002 network 10.0.2.0 255.255.255.0 Answer: C https://cloudeducation.com.hk/exam/350-401.pdf
-
studyguy42 👍 2 Answered AConsidering that all of them are incorrect and there is no actual question in this one, the closest to correct is A: router bgp 65002 neighbor 10.0.1.2 remote-as 65002 network 10.0.2.0 255.255.255.0 Should be: router bgp 65002 neighbor 10.0.1.2 remote-as 65001 network 10.0.2.0 255.255.255.0
-
KZM 👍 2 Answered BThe command should like that; router bgp 65001 neighbor 10.0.1.2 remote-as 65002 network 10.0.2.0 mask 255.255.255.0 If "mask" is missing in the network command, option D is incorrect. If it is not a typo, the answer may be B.
-
borumas 👍 2I agree there's a typo: D. router bgp 65001 neighbor 10.0.1.2 remote-as 65002 <-- all have that IP but R2 is 10.0.1.1 network 10.0.2.0 255.255.255.0
-
TroyMcLure 👍 2The AS numbers are clearly inverted. Router A belongs to AS 65001 and Router B belongs to AS 65002. Considering that, the best option is D.
-
matass_md 👍 2relax , all answers are wrong . When advertising a network in bgp syntax is: #(router-bgp)# network x.x.x.x mask y.y.y.y
-
Jey117 👍 2Admin fix it. It doesn´t even include the question and the answer makes no sense at all to guess it.
-
well123 👍 2probably the diagram isn't correct AS should be interchanged for D to be correct!
-
Papins 👍 2sory.. i misread it C also is wrong... none of them is correct.
-
Dataset 👍 2Hi ! Admin, please fix the diagram... Regards
-
SAMAKEMM 👍 2none of them is correct
-
Sammy3637 👍 2Please fix this Admin ?
-
Mohaned990_go 👍 2 Answered CAnswer c
-
GreaterZen 👍 1 Answered BFor any future pass byers, please refer to KZM post below: " KZM 11 months, 2 weeks ago Router A (ASN: 65001) "10.0.1.1" <-----------------> "10.0.1.2" Router B (ASN: 65002) Router A G0/1 "10.0.2.1/24" Refer to the exhibit. An engineer must configure an eBGP neighborship to Router B on Router A. The network that is connected to G0/1 on Router A must be advertised to Router B. Which configuration should be applied? A. router bgp 65001 neighbor 10.0.1.2 remote-as 65002 network 10.0.1.0 255.255.255.0 B. router bgp 65001 neighbor 10.0.1.2 remote-as 65002 network 10.0.2.0 255.255.255.0 C. router bgp 65001 neighbor 10.0.1.2 remote-as 65002 redistribute static D. router bgp 65002 neighbor 10.0.1.2 remote-as 65002 network 10.0.2.0 255.255.255.0 Answer: C https://cloudeducation.com.hk/exam/350-401.pdf " Per KZM's link question 26 the diagram is the same and it has the actual question. For connivence KZM posted the question. Nonetheless, the answer there is C. However, exam topics answer "B" oddly looks the same. Therefore, shouldn't it be B?
-
M2013 👍 1The questin is confusing me. as I understand the configuration should be done on router A not B. an engineer must configure a BGP neighborship to Router B on router A. the network that is connected to G0/1 on router A must be advertised to router B. which configuration should be applied
-
2b0c385 👍 1 Answered ARouter A (ASN 65002) está configurando como vecino a Router B (10.0.1.2) con ASN 65001 (correcto). La red que queremos anunciar (10.0.2.0/24) sí está directamente conectada a Router A. El comando network 10.0.2.0 255.255.255.0 es válido y funcional, ya que existe en su RIB.
-
KZM 👍 1https://cloudeducation.com.hk/exam/350-401.pdf Yes, in this pdf, Router A's ASN is 65001 and Router B's ASN is 65002. If like that, the answer is router bgp 65001 neighbor 10.0.1.2 remote-as 65002 redistribute static
-
Leoveil 👍 1let assume that Router A is AS65001(because .1 on interface 0/0 and g0/1) and Router B in AS65002, answer B would be correct if redistribute connected rather than static
-
Nmk3216 👍 1 Answered ANon of the answer are correct. The correct answer should be as follows: router bgp 65002 neighbor 10.0.1.2 remote-as 65001 network 10.0.2.0 mask 255.255.255.0
-
chmacnp 👍 1 Answered Ato configure router A, you must enter AS 65002. But the remote-as cannot also be 65002 for an eBGP neighbourship. whats the point, this is all wrong
-
Papins 👍 1what is the question? the provided answer also is wrong? it could be C if my understanding on the diagram provided is correct :)
-
Rbrahmi 👍 1Even D is not correct regarding the ASN mentioned, the network command is also not correct, we need mask key word here
-
Shri_Fcb10 👍 1is it a typo error? AS 65001 neighbor should be having 10.0.1.1
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All 350-401 Questions
Access 218 questions with complete answers and detailed explanations.
View Full 350-401 Practice Test →