cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
321
Views
0
Helpful
3
Replies
Highlighted
Beginner

Network command in BGP

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

Everyone's tags (1)
3 REPLIES 3
Hall of Fame Master

Re: Network command in BGP

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

Beginner

Re: Network command in BGP

Thank you Rich..

Hall of Fame Master

Re: Network command in BGP

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

CreatePlease to create content
Content for Community-Ad