cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
961
Views
0
Helpful
3
Replies

Network command in BGP

mahanteb
Level 1
Level 1

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

3 Replies 3

Richard Burts
Hall of Fame
Hall of Fame

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

HTH

Rick

Thank you Rich..

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

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: