02-15-2019 10:57 PM - edited 03-03-2019 09:00 AM
Hello Experts,
I am a beginner in BGP. I have query regarding network command in BGP.
what's the correct way of applying network command on routers running BGP.
In the attached topology, I have created 2 loopbacks on R5 (150.1.50.1/32 & 150.2.50.1/24) & 2 loopbacks on R7 (200.50.2.1/32 & 200.60.2.1/32) and then advertised in BGP by using network command in R5 & R7 respectively, so in R1 routing table, I see routes for these Loop backs, In BGP table, these routes were best routes , but the problem was these networks were not reachable from R1.
So I tried 2 methods to fix this connectivity issue.
1) I advertised all networks like 10.1.24.0/24,10.1.36.0/24, 10.1.45.0/24, 10.1.57.0/24, 10.1.67.0/24 in R1 by using network command, so ping started working.
2) I used network command and redistribute connected on all routers(Except R1) , here also connectivity issue fixed
Kindly confirm which is the correct one. Please find the attached topology for more details.
Thanks,
Mahanteb
02-27-2019 08:07 AM
Mahanteb
Both approaches work. As to which is better I would suggest that 1 is probably better. My reason for this is that all of the necessary changes are made on a router where you have administrative control. In a lab environment you actually have administrative control of all routers. But in a live environment when you are using EBGP you typically have administrative control of devices within your own AS but do not have administrative control in external AS.
HTH
Rick
03-03-2019 07:22 AM
Thank you Rich..
03-03-2019 10:04 AM
You are welcome. This community is an excellent place to ask questions and to learn about networking. I hope to see you continue to be active in the community.
HTH
Rick
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide