[j-nsp] Filtering RIB -> FIB Routes

Cougar cougar at random.ee
Mon Nov 22 03:06:05 EST 2010


Hi Lawrence,

Something like this should work

routing-options {
     forwarding-table {
         export [ reject-instanceA-rib … ];
     }
}

policy-options {
     policy-statement reject-instanceA-rib {
         term Uplink1.inet.0 {
             from {
                 rib A.inet.0;
                 protocol bgp;
             }
             then reject;
         }
     }
}

To move routes from one instance to another you need rib-groups.

-- 
Cougar

On Sun, 21 Nov 2010, Lawrence Wong wrote:

> Thanks Richard. I've read through the JUNOS docs as well, but couldn't seem to
> figure out how to limit the context of the filtering to the routing-instance as
> the routing-policy is specified in the global configuration and not
> routing-instance.
>
> i.e. the box has a routing-instance A => BGP routes found in routing-instance A
> should not go into the FIB for routing-instance A. But BGP routes from
> routing-instance A received by the main box should go into the main FIB.
>
> i've tried this but it does not seem to have any effect at all on the box.
>
>
> policy-statement reject-bgp {
> from {
>          protocol bgp;
> instance A;
>
> }
> then {
> reject;
> }
> }
>
>
> Do you happen to know of any examples/samples configuration that I can refer to?
>
> Thanks!
>
>
>
> ----- Original Message ----
> From: Richard A Steenbergen <ras at e-gerbil.net>
> To: Lawrence Wong <lawrencewong72 at yahoo.com>
> Cc: juniper-nsp at puck.nether.net
> Sent: Mon, November 22, 2010 1:21:17 AM
> Subject: Re: [j-nsp] Filtering RIB -> FIB Routes
>
> On Sun, Nov 21, 2010 at 05:02:58PM -0800, Lawrence Wong wrote:
>> Hi everyone,
>>
>> I'm new to JUNOS and would like to enquire if it's possible to filter
>> routes found in the RIB from going onto the FIB? This is on a J4350
>> box running 10.3R1.9 in Packet Mode (MPLS configured and enabled).
>
> http://www.juniper.net/techpubs/software/junos/junos93/swconfig-policy/applying-routing-policies-to-the-forwarding-table.html
>
>
> -- 
> Richard A Steenbergen <ras at e-gerbil.net>       http://www.e-gerbil.net/ras
> GPG Key ID: 0xF8B12CBC (7535 7F59 8204 ED1F CC1C 53AF 4C41 5ECA F8B1 2CBC)
>


More information about the juniper-nsp mailing list