Routing

 View Only
last person joined: 2 days ago 

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.
  • 1.  OSPF - Direct route not to be advertised in OSPF for specific neighbor

    Posted 11-04-2013 16:48

    Hi

     

    I have 4 routers running ospf with each others and all the internal interfaces are OSPF passive interfaces to make their subnets to be shared between all routers.

     

    R1, R2, and R4 are in area 0.0.0.0, while R3 is in area 0.0.01

    The ABR is R2

     

    The case is that I need a specific direct subnet on R2 (which its interface is an OSPF passive interface in area 0.0.0.0), I need this subnet to be advertised to all neighbors except R3.

     

    How can that be achived?

     

     

    (R1)------- Area 0.0.0.0------------ (R2) --------- Area 0.0.0.1--------(R3)

                               /

                             /

                           /

                       (R4)

               Area 0.0.0.0

     

    Thanks in advance 🙂



  • 2.  RE: OSPF - Direct route not to be advertised in OSPF for specific neighbor

    Posted 11-04-2013 21:35

    I believe you would need to make area 1 a totally stubby area and then configure to ABR to inject a default route into area 1. That will prevent external routes going into the area while allowing external reachability via the default route. Remember that for consistency, OSPF needs to send LSAs to update all neighbors with advertised routes whether by being directly in the area or via NET summary LSA's.



  • 3.  RE: OSPF - Direct route not to be advertised in OSPF for specific neighbor

    Posted 11-05-2013 04:28

    @lyndidon wrote:

    I believe you would need to make area 1 a totally stubby area and then configure to ABR to inject a default route into area 1. That will prevent external routes going into the area while allowing external reachability via the default route. Remember that for consistency, OSPF needs to send LSAs to update all neighbors with advertised routes whether by being directly in the area or via NET summary LSA's.



    Thanks for reply

    I still need other routes to be advertised to R3, and when I will make area1 to be totally stubby area I will prevent these routes to be advertised to it.



  • 4.  RE: OSPF - Direct route not to be advertised in OSPF for specific neighbor
    Best Answer

    Posted 11-04-2013 22:38

    Maybe you can use network-summary-export on R2.

     



  • 5.  RE: OSPF - Direct route not to be advertised in OSPF for specific neighbor

    Posted 11-05-2013 04:37

    @mihaigabriel wrote:

    Maybe you can use network-summary-export on R2.

     


    Thanks mihaigabriel,

    that worked just fine 🙂

    But what about if there's a network in R3 I also do not need to advertise to any other router? how can this be done.

     

    Thanks for support



  • 6.  RE: OSPF - Direct route not to be advertised in OSPF for specific neighbor

    Posted 11-05-2013 04:30

    Hello,

    If R3 is the R2' "one and only" area 1 neighbor then You can use either "area-range restrict" or "network-summary-export" on R2.

    If R3 has other area 1 neighbors which need to know about said prefix, then there is no way to achieve that with  "area-range restrict" or "network-summary-export".

    Then You have the following options:

    1/ export said prefix as Type-5 and use OSPF import policy on R3 to suppress said prefix installation in R3' route table, or

    2/ make sure every R2' neighbor currently in area 1 resides in own separate area and only then use "network-summary-export" on R3, or

    3/ bring up iBGP, suppress said prefix in iBGP export policy from R2 towards R3 and announce said prefix in iBGP export policy from R2 towards every other router.

    HTH

    Thanks

    Alex



  • 7.  RE: OSPF - Direct route not to be advertised in OSPF for specific neighbor

    Posted 11-05-2013 07:13

    @aarseniev wrote:

    Hello,

    If R3 is the R2' "one and only" area 1 neighbor then You can use either "area-range restrict" or "network-summary-export" on R2.

    If R3 has other area 1 neighbors which need to know about said prefix, then there is no way to achieve that with  "area-range restrict" or "network-summary-export".

    Then You have the following options:

    1/ export said prefix as Type-5 and use OSPF import policy on R3 to suppress said prefix installation in R3' route table, or

    2/ make sure every R2' neighbor currently in area 1 resides in own separate area and only then use "network-summary-export" on R3, or

    3/ bring up iBGP, suppress said prefix in iBGP export policy from R2 towards R3 and announce said prefix in iBGP export policy from R2 towards every other router.

    HTH

    Thanks

    Alex



    aarseniev .. Thanks for your more than complete several solutions 🙂    very valuable information indeed 🙂

     I will be glad if you had a look at thie topic:

    http://forums.juniper.net/t5/Routing/OSPF-not-advertising-a-passive-interface-network-to-specific/td-p/215473


    #ospf
    #area0
    #exportpolicy
    #routing
    #network-summary-export