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.  summarizing bgp routes to ospf neighbor

    Posted 03-08-2023 04:34
    Edited by Abed AL-R 03-08-2023 07:23

    Hi

    Running:
    Model: ptx1000
    Junos: 20.4R3-S3.4

    In our PTX we have BGP and OSPF neighbors
    The BGP neighbor advertising to us 15k routes, all fall under one class (10.0.0.0/9)
    I'm redistributing those routes to my ospf neighbor, I'm redistributing 15k routes to him.
    I need to summarize all those routes under one route: 10.0.0.0/9 , but I had no success with this

    1. I tried this:

    set policy-options policy-statement customer-ospf-summary term 1 from route-filter 10.0.0.0/9 exact (I tried also "upto /24")
    set policy-options policy-statement customer-ospf-summary term 1 then accept
    set policy-options policy-statement customer-ospf-export term 1 then accept
    set routing-instances customer protocols ospf area 0.0.0.0 network-summary-export customer-ospf-summary
    set routing-instances customer protocols ospf export customer-ospf-export

    2. I tried this:

    set policy-options policy-statement customer-ospf-summary term 1 from route-filter 10.0.0.0/9 exact (I tried also the "upto /24")
    set policy-options policy-statement customer-ospf-summary term 1 then accept
    set policy-options policy-statement customer-ospf-summary term 2 then accept
    set routing-instances education protocols ospf area 0.0.0.0 network-summary-export customer-ospf-summary
    set routing-instances education protocols ospf export customer-ospf-summary
    

    3. I tried this:

    set routing-instances customer protocols ospf area 0.0.0.0 area-range 10.0.0.0/9 exact

    Still, no success. 

    Any help on this?

    Thanks 



    ------------------------------
    Abed AL-Rahman Bishara
    ------------------------------



  • 2.  RE: summarizing bgp routes to ospf neighbor

    Posted 03-08-2023 10:35
    Hi,

    Maybe a silly suggestion: create and import one static route and
    re-advertise that instead of trying to make OSPF jump through a hoop?
    IIRC OSPF can only aggregate on ^3 boundaries (/8, /16, /24).




  • 3.  RE: summarizing bgp routes to ospf neighbor

    Posted 03-08-2023 12:20

    Create an aggregate route for 10/9



    ------------------------------
    David Divins
    ------------------------------



  • 4.  RE: summarizing bgp routes to ospf neighbor

    Posted 03-09-2023 01:24

    Configure an aggregate route "set routing-options aggregate route 10/9".

    In the routing table at present you would not have a prefix 10.0.0.0/9 for an exact match in the policy.



    ------------------------------
    Sheetanshu Shekhar
    ------------------------------