Routing

 View Only
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.
  • 1.  Export OSPF route in type-1

    Posted 11-22-2016 00:41

    Hello,

    I have a QFX-1 which is learning route and 0.0.0.0/0 from OSPF 

    I have connected a QFX-2 which is learning the route from QFX-1and 0.0.0.0/0 from OSPF too. 

    The route are in OSPF TYPE-2

    How can we export route from QFX-1 to QFX-2 in OSPF type-1 ? 

    I want to change the COST.

    Best regards, 


    #ospf
    #routing
    #QFX


  • 2.  RE: Export OSPF route in type-1

    Posted 11-22-2016 00:51

    policy-options {
    policy-statement my-ospf-export-policy {
    term static-and-direct-as-type-1 {
    from protocol [ static direct ];
    then {
    external {
    type 1;
    }
    accept;
    }
    }
    }
    }

    regards

     

    alexander



  • 3.  RE: Export OSPF route in type-1

    Posted 11-22-2016 00:55

    Hi,

    I always try this solution but it doesn't work:

    show policy-options policy-statement ospfbgp
    term default-gw {
    from {
    route-filter 0.0.0.0/0 exact;
    }
    then {
    metric 200;
    external {
    type 1;
    }
    }
    }

     

    export ospfbgp;

     

    regards, 



  • 4.  RE: Export OSPF route in type-1
    Best Answer

    Posted 11-22-2016 01:31

    Hello,

     


    @maxx wrote:

    Hello,

    I have a QFX-1 which is learning route and 0.0.0.0/0 from OSPF 

    I have connected a QFX-2 which is learning the route from QFX-1and 0.0.0.0/0 from OSPF too. 

    The route are in OSPF TYPE-2

    How can we export route from QFX-1 to QFX-2 in OSPF type-1 ? 

    I want to change the COST.

    Best regards, 


    If QFX-1 is learning 0/0 FROM OSPF as External Type-2 and You want to change it to External Type-1, You have to do it on ASBR that originates this route. Not on the QFX-1 that receives this route from OSPF.

    OR

    Use separate OSPF processes A.K.A "no-forwarding" instances in JUNOS.

    HTH

    Thx

    Alex 



  • 5.  RE: Export OSPF route in type-1

    Posted 11-22-2016 01:54

    Yes !

    I don't why i don't think about it before ...