Routing

last person joined: yesterday 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
Expand all | Collapse all

an tough requirement in ospf

  • 1.  an tough requirement in ospf

    Posted 12-15-2015 21:00

    hello, dear Juniper

     

    there are 3 routers in area1

     

    r1        r2           r3    

    ------area 1---------

             |

           r4

             |

      -----area 0--------

     

    there is a static route 0/0 in r3, I want to export it to ospf ,and only let r1 to learn it .

     

    is there a way to achieve this?



  • 2.  RE: an tough requirement in ospf

     
    Posted 12-15-2015 21:24
    AFAIK, we cannot stop that route entering the OSPF database , it will be there on call routers. We may use Import policy and stop getting that route active on route table on routers except r1.


  • 3.  RE: an tough requirement in ospf

    Posted 12-15-2015 21:36

    so,in order to achieve this, each router should have a import policy ?



  • 4.  RE: an tough requirement in ospf

     
    Posted 12-15-2015 21:40
    Unfortunately, yes.


  • 5.  RE: an tough requirement in ospf

    Posted 12-15-2015 21:42

    hmm.ok

     

    btw: is it possible to restrict this 0/0 route in area 1 and area0 , not to other areas attached to area0



  • 6.  RE: an tough requirement in ospf

     
    Posted 12-15-2015 21:50
    You may use the "restrict" key-word to keep the routes in just one area. http://www.juniper.net/techpubs/en_US/junos14.1/topics/topic-map/ospf-route-summarization.html


  • 7.  RE: an tough requirement in ospf

    Posted 12-15-2015 21:59

    need the area as NSSA to configure restrict?



  • 8.  RE: an tough requirement in ospf

     
    Posted 12-15-2015 22:03
    I don't think so, you may try below config set protocols ospf area 0.0.0.3 area-range 0.0.0.0/0 exact restrict


  • 9.  RE: an tough requirement in ospf

    Posted 12-15-2015 22:29

    hmm, in my case.:

    I want to export 0/0  to r3 ospf, but only keep this 0/0 in area 1

     

     

    set protocols ospf area 0.0.0.3 area-range 0.0.0.0/0 exact restrict:this seems to redistribute a 0/0 to area 0.0.0.3?



  • 10.  RE: an tough requirement in ospf

     
    Posted 12-15-2015 22:32

    I used "area 0.0.0.3" by mistake. you may use below.

     

    set protocols ospf area 0.0.0.1 area-range 0.0.0.0/0 exact restrict



  • 11.  RE: an tough requirement in ospf

    Posted 12-15-2015 22:48

    ha,np

    I am trying it

    there is one thing confuse me:

     

    area-range can't summarize LSA 5,but area-range restrict can restrict LSA5

    0/0 is an external route LSA 5



  • 12.  RE: an tough requirement in ospf

     
    Posted 12-15-2015 23:20
    In your case you don't want to summarize, you just need to restrict the routes , isn't ?


  • 13.  RE: an tough requirement in ospf

    Posted 12-15-2015 23:22

    hi,Suraj

    yes

     

    r3 is a ospf router in area1. I export 0/0 in this r3(LSA5).

     

    now I only want this 0/0 only exist in area1,

     

    It seems area range is not for LSA5



  • 14.  RE: an tough requirement in ospf
    Best Answer

    Posted 12-15-2015 23:24

    Hi, 

     

    the area-range command doesn't work for type-5 LSAs on the ABR. You need to convert area 1 to NSSA and use the 

     

    set protocols ospf area 0.0.0.1 nssa area-range 0.0.0.0/0 restrict

     

    Cheers,

    Carsten