Routing
Routing

Leaking dynamically installed static route from routing-instance type forwarding to routing-instance type vrf

‎08-26-2014 11:40 PM

Hi Junos experts,

 

Please help me with the config option i can use for the below mentioned route leak scenario in MX 960 router.

 

I have 2 routing instances. one with instance-type forwarding & another with instance-type vrf

a) test_fwd_instance_1

b) vrf1

 

I have a static route[200.1.1.1/32] installed in forwarding instance test_fwd_instance_1. This static route is not user configured but it got installed by junos traffic load balancer feature and its next hop will be composite index.

 

My requirement is to push this static route in  test_fwd_instance_1 to vrf11.  Please help me with possible config for this.

 

So far I tried  with rib-group with import-rib [route not getting leaked] & instance-import [commit error while applying to vrf]

 

 

My config & route table :-

=================

 

Routing-instance - instance-type forwarding :-
===========================================
router# show routing-instances test_fwd_instance_1
instance-type forwarding;

 

router# run show route table test_fwd_instance_1.inet.0

test_fwd_instance_1.inet.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

200.1.1.1/32 *[Static/1] 01:05:08, metric 1
to private composite next hop index 806


Routing-instance - instance-type VRF :-
===========================================

router# show routing-instances vrf1
instance-type vrf;
interface lo0.6;
route-distinguisher 64512:100;
vrf-target target:64512:100;
vrf-table-label;


routere# run show route table vrf1

vrf1.inet.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

66.66.66.66/32 *[Direct/0] 1d 10:17:36
> via lo0.6
76.1.1.252/32 *[BGP/170] 07:17:58, localpref 100, from 10.102.27.142
AS path: ?, validation-state: unverified
> via gr-4/0/0.32769, Push 20

 

Thanks,

Selva

3 REPLIES
Routing

Re: Leaking dynamically installed static route from routing-instance type forwarding to routing-instance type vrf

[ Edited ]
‎08-27-2014 10:27 PM

 

You can try to import it directly into vrf1 routing-instance from test_fwd_instance_1

 

set policy-options policy-statement vrf1-rib-import term 1 from instance test_fwd_instance_1
set policy-options policy-statement vrf1-rib-import term 1 from protocol static route-filter 200.1.1.1/32 exact
set policy-options policy-statement vrf1-rib-import term 1 then accept
set policy-options policy-statement vrf1-rib-import term reject then reject

set routing-instances vrf1 routing-options instance-import vrf1-rib-import

 

Routing

Re: Leaking dynamically installed static route from routing-instance type forwarding to routing-instance type vrf

‎08-29-2014 12:02 PM

Thanks for the reply. But as i mentioned in my post that i already tried this and getting the below mentioned error.

Is there any other way we can do this ?

 

router# show | compare
[edit policy-options]
+ policy-statement vrf1-rib-import {
+ term 1 {
+ from {
+ instance test_fwd_instance_1;
+ protocol static;
+ route-filter 200.1.1.1/32 exact;
+ }
+ then accept;
+ }
+ term reject {
+ then reject;
+ }
+ }
[edit routing-instances vrf1]
+ routing-options {
+ instance-import vrf1-rib-import;
+ }

{master}[edit]
Router# commit check
re0:
[edit routing-instances vrf1 routing-options]
'instance-import'
instance-import not allowed on VPN instance
error: configuration check-out failed

 

Routing

Re: Leaking dynamically installed static route from routing-instance type forwarding to routing-instance type vrf

‎09-03-2014 03:37 PM