Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

BGP Conditional Route Injection doesn't work, need help.

Hi, forum

Based on the following link:

http://www.cisco.com/en/US/products/sw/iosswrel/ps1829/products_feature_guide09186a008056c866.html

I was doing a lab test for this new feature. The lab senario is very simple, R1 send 10.1.1.0/24 to R2, R2 will conditional injects 10.1.1.0/25 and 10.1.1.128/25 to the BGP table. Unfortunately, I failed to make this happen. Below is the show ip bgp command output:

r2#sh ip bgp 10.1.1.0

BGP routing table entry for 10.1.1.0/24, version 2

Paths: (1 available, best #1, table Default-IP-Routing-Table)

Not advertised to any peer

100

10.0.0.1 from 10.0.0.1 (10.2.1.1)

Origin IGP, metric 0, localpref 100, valid, external, best

r2#

r2#

r2#

r2#sh ip bgp inj

r2#sh ip bgp injected-paths

r2#

As you can see, there is no routes to be injected which should be there. I 've tried it over and over but no luck. Could anybody help me figure out this issue. What have I missed?

Attached is the configuration of r1 and r2.

Thanks for your helps.

SSLIN

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: BGP Conditional Route Injection doesn't work, need help.

SSLIN,

The issue is with the ROUTE_SOURCE prefix-list. You are matching against the BGP RID, when the route source should be the BGP next hop (10.0.0.1). Just change the prefix-list and it should work.

Hope this helps,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
7 REPLIES

Re: BGP Conditional Route Injection doesn't work, need help.

Can you post the output of sh ip bgp on R2 & R1

Narayan

Re: BGP Conditional Route Injection doesn't work, need help.

Hi, Narayan

Thanks for your reply.Problem has been solved by using Harold's method. If you are still interering in seeing the show ip bgp output, please let me know.

Best Regards

SSLIN

Cisco Employee

Re: BGP Conditional Route Injection doesn't work, need help.

SSLIN,

The issue is with the ROUTE_SOURCE prefix-list. You are matching against the BGP RID, when the route source should be the BGP next hop (10.0.0.1). Just change the prefix-list and it should work.

Hope this helps,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Re: BGP Conditional Route Injection doesn't work, need help.

Hi, Narayan,HAROLD,Pavlo

Thanks for all the replies to my question. Problem have been solved by using Harold's method. Besides that,I have to add another peer to R2 so that the injeted routes have a way to advertise out.

Harold, do you agree that the link

http://www.cisco.com/en/US/products/sw/iosswrel/ps1829/products_feature_guide09186a008056c866.html

is kind of misleading? It's the link says using 10.1.2.1/32 for route source and it looks just like a loopback address to me. And also, if there is a diagram on this link, it would be easier for us to correctly set up a lab senario and quickly verified this BGP feature. Thanks for you help.

Best Regards

SSLIN

Cisco Employee

Re: BGP Conditional Route Injection doesn't work, need help.

SSLIN,

I agree that the example provided in this document is not very clear. I will work with the documentation team to rectify this situation.

Thanks for the comment,

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
Silver

Re: BGP Conditional Route Injection doesn't work, need help.

I agree with Harold.

Also, i had bad experience using PREFIX lists to match route-source. Try using standard ACL instead.

like:

access-list 10 permit host 10.0.0.1

route-map LEARNED_PATH permit 10

no match ip route-source

match ip route-source 10

Re: BGP Conditional Route Injection doesn't work, need help.

Hi, pavlo

Thanks for your interesting suggestion, but prefix-list is not an issues for this case.

Thank you

SSLIN

297
Views
0
Helpful
7
Replies
CreatePlease login to create content