Routing

 View Only
last person joined: 3 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.  Running OSPF inside a VRF

    Posted 06-19-2013 14:02

    Hello dear friends.

    I need to run  ospf inside an existing  routing instance, for example:

     

    [rrouting-instances RAN]
    instance-type virtual-router;
    interface ae6.3;
    interface irb.3;

    routing-options {
    static {
    route 172.23.254.0/24 next-hop 172.31.1.18; ############# I need to distribute this route on ospf.
    }
    }

    protocols {
    ospf {
    export toMW_Mgmt;
    area 0.0.0.0 {
    interface ae6.3;
    }
    }
    }

    ############### out of vrf

    [policy-options policy-statement toMW_Mgmt]
    term MAIN_TERM {
    from {
    instance RAN;
    route-filter 172.23.254.0/24 exact;
    }
    then accept;
    }


    My concern is:

    Routes learned by ospf , will be writed on on RAN.inet.0 ??
    Static route (described avobe) will be destrubuted ?

     

     

    Other option can be run ospf in default routing instance and then write routes to RAN.inet.0 using RIBs ... but I rather no to do it ... I don have it clear.

     

     

    I have not tested it yet since a don't have a maintainance windows , i would like to be sure.

    Any comment would be preciated.

    THX!.

     

     



  • 2.  RE: Running OSPF inside a VRF
    Best Answer

    Posted 06-19-2013 14:10

    You won't need the 'from instance RAN" in your policy. Since your policy will be applied to the OSPF instance inside of your VR the instance will be inherited. Probably a best practice would be to use "from protocol static" in your policy though.

     

    The rest of your configurations should work.



  • 3.  RE: Running OSPF inside a VRF

    Posted 06-19-2013 16:21

    It is exaclty wath I wanted to hear !! thx ....



  • 4.  RE: Running OSPF inside a VRF

    Posted 06-19-2013 14:21

    The policy may be defiened outside the routing insance, but it's applied inside. ospf will run within the instance this way so yes routes it learns will be within the instance and your static will show up as an external OSPF route in this instance. I don't even think the from instance RAN is needed. OSPF only sees routes from te instance it is running in.



  • 5.  RE: Running OSPF inside a VRF

    Posted 06-19-2013 14:22

    Sorry, my reply crossed the earlier one.



  • 6.  RE: Running OSPF inside a VRF

    Posted 06-19-2013 16:22

    Thx anyway bro .... second opinion is allwais wellcome.