Showing results for 
Search instead for 
Did you mean: 


Level 1
Level 1



Please find the attached diagram.


Neighborship is formed and Below is the configuration on AS2 router.

router bgp 2
bgp log-neighbor-changes
network mask
neighbor remote-as 1
neighbor route-map MED out
neighbor remote-as 1

access-list 1 permit

route-map MED permit 10
match ip address 1
set metric 4444

After this configuration when i check the router "Suriname", I see only one path.

Suriname#sh ip bgp

*>i 0 100 0 2 i
May I know why the second path is not showing? The moment I remove the router map on AS2 router it works as expected.

Even on the router "CUBA" I see only one route when MED is applied. can you please explain why the redundant path is not showing??

1 Accepted Solution

Accepted Solutions

rule 1- ibgp never re-advertise iBGP BEST path to other iBGP 
rule 2- ibgp or ebgp advertise only best path (there is special cases but not time to explain here now)

this lab config MED toward only R2 
R2 have two path one for R4 and other from R3 via iBGP 
R3 have only one path toward R4, since it path is select as best in it Neighbor R2 then in logic the R2 not need to send it best path to R3 (best path is it from R3)

Screenshot (647).pngScreenshot (648).png

I shut the interface between R2 and R3 then R2 have best path via R4 ONLY and R3 have best path vai R4 ONLY

Screenshot (649).pngScreenshot (650).png

View solution in original post

26 Replies 26


Hello @RobotAjay 

Routers select the best route roward Suriname router install in its RIB route towards from neighbor.

Since, the lowest MED is the preferred path.

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Okay, I understand that part.

the best route will  be installed in  the routing table, however the other preferred route should show in  "show ip bgp" table right?correct me if I am wrong.

I mean If you can see this output from Router "Haiti" and the router "Cuba"


*>i 0 100 0 2 i
* 4444 0 2 i

"*> 0 0 2 i 

Sop my question is why sh ip bgp is not showing the other path(as backup), is it default behavior?



do that command

sh bgp ipv4 unicast

and see the best path between the 2 entries:

Haiti router:


Suriname router:





Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Please find the attacked screenshot.



On Suriname please add two static routes 

ip route
ip route

Just for testing....

and look again on that Suriname router #sh bgp ipv4 unicast

You should have this, please look my screenshot:


If it is Ok for you, the issue is that from Suriname Router point of view subnets and 24.0 are inacessible. Instead of static routes, you should consider to configure the next hop self command on Haiti and Cuba Routers, like this on Haiti as example:



Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

I believe the issue is with the route map.
The Moment I removed the route map on my AS2(Jamaica) router, both Haiti and Cuba router show two routes.


You want to advertise prefix to both peers with same MED see below my comment 

If you want to make one prefix have specific MED and other advertise  without any modify 

Then you need to add 

route-map MED permit 20
<- no match no set under this 20 line of route-map


Is it mandatory to advertise same MED for both peers?

ideally, I am not sure why the route is not forwarded from "Haiti" router to "cuba" router when only one MED is added on AS2.

As per your statement, I have added MED for both and it works (only if it has the same MED value). but not sure why keeping different MED or keeping MED only for one neighbor is not working.

Any explanantion or any link could be much helpful for me


Are there ibgp between cuba and Haiti?


Yes sir, IBGP is configured between CUBA and HAITI.


What about Suriname Router ? What do you want ? To learn subnet from Haïti and Cuba and prefer which one ? 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Well , For me the concern is only about the Routing table.
If I configure MED on AS2 only for one neighbor then , Haiti shows two paths to reach while Cuba shows only one path to reach routing table -s how ip bgp).

I would like to understand this behavior.


Please for that case: while Cuba shows only one path to reach routing table -s how ip bgp)...provide the output on Cuba: #sh bgp ipv4 unicast

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.
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: