Routing

 View Only
last person joined: 4 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.
Expand all | Collapse all

Selectively import routes from Routing-instance (OSPF) to Global (inet.0) table

  • 1.  Selectively import routes from Routing-instance (OSPF) to Global (inet.0) table

    Posted 10-04-2018 03:16

    Hello.

    Configuration of EX4550:

    !

    root# edit routing-options
    interface-routes {
    rib-group inet DIRECT;
    }
    rib-groups {
    DIRECT {
    import-rib [ inet.0 VRF.inet.0 ];
    }
    VRF-to-GLOBAL {
    import-rib [ VRF.inet.0 inet.0 ];
    import-policy Copy_VRF_to_GLOBAL;
    }

     


    root# edit policy-options policy-statement Copy_VRF_to_GLOBAL
    term 1 {
    from {
    protocol ospf;
    rib VRF.inet.0;
    source-address-filter 192.168.0.0/16 orlonger;
    }
    to rib inet.0;
    then accept;
    }
    term default {
    from rib VRF.inet.0;
    to rib inet.0;
    then reject;
    }

     


    root# edit routing-instances VRF
    instance-type virtual-router;
    interface ge-0/0/0.0;
    routing-options {
    interface-routes {
    rib-group inet DIRECT;
    }
    }
    protocols {
    ospf {
    rib-group VRF-to-GLOBAL;
    area 0.0.0.0 {
    interface ge-0/0/0.0;
    }

     

    After that in inet.0 table I see all routes, not in range 192.168.0.0/16 only.

    Can anyone help.



  • 2.  RE: Selectively import routes from Routing-instance (OSPF) to Global (inet.0) table
    Best Answer

    Posted 10-04-2018 03:43

    Hello,

    Please replace "source-address-filter" with "route-filter" and try again.

    BTW, forwarding to directly-connected leaked subnets is not supported on EX-series meaning routes can be leaked in the control plane but do not get installed in the forwarding plane:

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB23027

    HTH

    Thx

    Alex