Quantcast
Channel: All Routing posts
Viewing all articles
Browse latest Browse all 8688

How to redistribute bgp into ospf with different area.

$
0
0

I have a topology like this 

 

ToplogyToplogy

I have 3 routers: router r1 connect to router r2 and run ospf area 23. beside, router r1 also connect to router r3 and run ospf with area 18. In router r1 receive protobgp with router-fillter is 0.0.0.0/0. 
And now, I only want router r1 redistribute bgp into ospf with area 23 to router r2. 

I have configed: 

policy-options policy-statement ADV_BGP_TO_OSPF

 

term Default-Route {

    from {

        protocol bgp;

        route-filter 0.0.0.0/0 exact;

    }

    to {

        area 0.0.0.23;

    }

    then accept;

}

term final {

    then reject;

}

 

And export policy into ospf. However, the router r2 don't see anything router 0.0.0.0/0 learn from router r1. 

Then, I try deactive to area 0.0.0.23 in policy. The result is see that router r2 and r3 have both router 0.0.0.0/0 learn from router r1. I want only router r2 recevie 0.0.0.0/0 from router r1, and don't want router r3 also recevie 0.0.0.0/0 from router r1. 

How to deal with this issue? 
Thank you.


Viewing all articles
Browse latest Browse all 8688

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>