Forgot to mention the reason you cant ping router C from A without specifying the src address is because, when your router pings another device, it will by default use the ip of the interface that has the active route in the FIB... (usually the interface closest to the other router) if your src address is not in the routing table of the opposite router then when the other router recieves the packet it will not know how to route the reply packets... ( furthermore if you have urpf enabled) it would not even reply to the packet)
so you have 2 choices ... redistribute connected (like Benno) suggested or simply add your interfaces to OSFPD (adding interfaces to ospf is generally safe as long as they are stable (not flapping) personally I much prefer adding interfaces to OSPF (and setting them to passive in ospfd ) rather than re-distributing between different protocols .. . I hope this helps ... Peace out ... On Mon, 14 Jan 2019 at 20:48, Simen Stavdal <[email protected]> wrote: > Hello, > > I have three routers connected in a chain. > A<->B<->C > > All routers have a host address as loopback 100 (192.168.5.x/32, A=1, B=2, > C=3). > The segments between the routers are 192.168.1.0/30 (AB) and > 192.168.2.0/30 > (BC). > > A to B runs OSPF > B to C runs IBGP > > I redistribute the BGP routes into OSPF using the label I append on router > B. > router B : match from <peer> set rtlabel zyx > And this works just fine. I see the tag being applied (but only on the > advertised lo100 host address). > Reverse redistribution is based on route priority (32) for OSPF into bgp. > All good. > > The link network however between B and C is not being advertised, as it is > locally connected for both router B and C. They are added in the network > statement on both sides. > So, on B, I can see the route label on the C loopback interface marked zyx. > 192.168.2.0/30 however does not have any route label, and hence will not > be > redistributed into OSPF. > > So, I can ping router C from router B. > When I ping loopback on router C from router A using the loopback interface > as source, all is good. > When I ping with no source interface, the source address is the link > network not being advertised, and hence the far router does not know where > to send the traffic. > > I will continue to play around with this, just wondering if anybody has a > "good practice" way of dynamically advertising the network. > > Cheers, > Simon. > -- Kindest regards, Tom Smyth Mobile: +353 87 6193172 The information contained in this E-mail is intended only for the confidential use of the named recipient. If the reader of this message is not the intended recipient or the person responsible for delivering it to the recipient, you are hereby notified that you have received this communication in error and that any review, dissemination or copying of this communication is strictly prohibited. If you have received this in error, please notify the sender immediately by telephone at the number above and erase the message You are requested to carry out your own virus check before opening any attachment.

