11-14-2006 03:08 PM - edited 03-05-2019 12:48 PM
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.
11-14-2006 08:25 PM
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
11-15-2006 07:21 AM
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
11-16-2006 06:53 PM
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...
11-16-2006 11:34 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide