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.

New Member

redistributing routes

I am trying to get up to speed on routes redistribution and wondering if someone please shed the light on the following...

We have 2 routers (A & B) that are directly connected. Both are running BGP & OSPF and are in the same AS. One of the routers (B) is connected to the customer router (C) on another interface. The router B redistributes routes as "redistribute connected". Because the routers A & B are in the same AS, I would expect to see the routes from the customer router on router A being redistributed over OSPF as opposed to BGP. Yet, when I do sh ip route, the route is shown via BGP....

What gives?

Thanks.

4 REPLIES
New Member

Re: redistributing routes

Can u provide config done under bgp and ospf (for redistribution)for A and B router so picture will be more clear and u will get help from others

regards

Hall of Fame Super Silver

Re: redistributing routes

Greg

I feel like I must have missed something in your post. As I understand it router B connects to the customer router and router B does redistribute connected. Why would you expect that to send the customer routes over OSPF? Redistribute connected will insert the subnets of the connected interfaces into the protocol advertisement but not routes learned from some neighbor. If I have missed something perhaps you can clarify.

HTH

Rick

New Member

Re: redistributing routes

Rick - thanks for your response. As always, u r right on the money...What I believe might have happened is the mix-up between "directy" redistribute connected routes and "indirectly" redistribute connected routes into the routing protocols. Thanks again for pointing this out...

Silver

Re: redistributing routes

When you use "sh ip route", it will show the preferred path which has lower metric. Try to use "sh ip ospf data" to verify the OSPF routes or "sh ip bgp" to verify the BGP routes.

You only add the interface subnet to the routing protocol by "redistibuted connected" and not enable the routing protocol at those interface if there is no corresponding network commands.

Hope this helps.

108
Views
0
Helpful
4
Replies
CreatePlease login to create content