BGP issue

Unanswered Question
Sep 22nd, 2009

Hi expert,

R27,R28,R5,R6 form ibgp together

R27,R28,R5,R6,Sw27,Sw28,Sw5,Sw6 form ospf together

R27, R5, R6 can learn via ebgp

If I config BGP redistribute ospf in R5,R6, then routing table of R27 to

ip address will be learned from ospf R6. Why ospf (AD110) will win ebgp (AD20) in R27 ?

Thanks your help!

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Giuseppe Larosa Tue, 09/22/2009 - 22:29

Hello Jack,

>> ip address will be learned from ospf R6. Why ospf (AD110) will win ebgp (AD20) in R27 ?

because R27 is learning the BGP advertisement over the iBGP session with RTE6-1 and RTE5_1.

As a result of this:

in sh ip bgp you should see on R27 something like:

> i RTE6_1

*i RTE5_1

the i at the beginning of the line means learned via an iBGP session.

When BGP proposes its prefix it is classified as iBGP with AD 200 on R27.

the end result is that OSPF external route is installed.

only sessions directly configured on R27 are considered true eBGP sessions in your case the one with AS 789.

Hope to help


acbenny Wed, 09/23/2009 - 00:55

Hi Gouseppe,

Thanks for your explanation. But I still not understand. May I ask more question?

Why R27 choose the best path from R6 about route In R6 router there is no local preference set on the link (connect to AS123) only weight is set. Therefore, I expect R27 will not affect by other ibgp router 's attribute.

As a result R27 still to go via AS789


This Discussion