[j-nsp] Route import export on Juniper

Richmond, Jeff Jeff.Richmond at frontiercorp.com
Thu Nov 15 15:23:47 EST 2007


Just be aware that you can only do this with local routes in the VRF, not remotely learned routes from other PEs. At one point I was wanting to make a "gateway" PE using auto-export and RIB groups to enter/exit the VRF on a single PE, which works great with local routes (interface, static, etc.), but will not work with remotely learned VRF routes (via MBGP). I asked Juniper about this, and was basically told it just won't work. So, I ended up having each PE do auto-export...

Hope this helps,
-Jeff


-----Original Message-----
From:	juniper-nsp-bounces at puck.nether.net on behalf of Jonathan Crawford
Sent:	Thu 11/15/2007 11:25 AM
To:	'ganesh nagpure'; 'Juniper List'
Cc:	
Subject:	Re: [j-nsp] Route import export on Juniper

You can use a rib-group in order to do this...

routing-options {
 rib-groups {
  oam-vrf-inet-0-to-inet-0 {
   import-rib [ oam-vrf.inet.0 inet.0 ]
   import-policy <some policy allowing 10.108.8.64/26>
  }
 }
}

Then you need to apply the rib-group.

-----Original Message-----
From: juniper-nsp-bounces at puck.nether.net
[mailto:juniper-nsp-bounces at puck.nether.net] On Behalf Of ganesh nagpure
Sent: Thursday, November 15, 2007 10:06 AM
To: Juniper List
Subject: [j-nsp] Route import export on Juniper

Hi,

How do I import route 10.108.8.64/26  from
OAM-VRF.inet.0 to inet.0 ? 


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

10.145.0.2/32      *[Local/0] 2w0d 01:18:24
                      Reject
10.145.0.4/30      *[OSPF/10] 12:21:31, metric 1643
                    > to 10.145.0.34 via fe-1/3/1.0
10.145.0.28/30     *[OSPF/10] 12:21:30, metric 1743

                    > to 10.145.0.34 via fe-1/3/1.0
10.145.1.3/32      *[Direct/0] 2w0d 01:19:58
                    > via lo0.0
10.145.1.4/32      *[OSPF/10] 2w0d 01:18:14, metric
1000
                    > to 10.145.0.34 via fe-1/3/1.0
224.0.0.5/32       *[OSPF/10] 2w0d 01:19:59, metric 1
                      MultiRecv

inet.3: 5 destinations, 10 routes (3 active, 0
holddown, 5 hidden)
Restart Complete
+ = Active Route, - = Last Active, * = Both

10.145.1.1/32      *[RSVP/7] 12:21:25, metric 1743
                    > to 10.145.0.34 via fe-1/3/1.0,
label-switched-path KINTC2_R1-KINNTC_R1
                    [LDP/9] 12:21:25, metric 1743
                    > to 10.145.0.34 via fe-1/3/1.0,
label-switched-path KINTC2_R1-KINNTC_R1
10.145.1.2/32      *[LDP/9] 12:21:25, metric 1643
                    > to 10.145.0.34 via fe-1/3/1.0,
label-switched-path KINTC2_R1-KINTC2_R2
10.145.1.4/32      *[RSVP/7] 2w0d 01:16:49, metric
1000
                    > to 10.145.0.34 via fe-1/3/1.0,
label-switched-path KINTC2_R1-KINTC2_R2
                    [LDP/9] 12:21:26, metric 1000
                    > to 10.145.0.34 via fe-1/3/1.0,
label-switched-path KINTC2_R1-KINTC2_R2

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

OAM-VRF.inet.0: 28 destinations, 34 routes (28 active,
0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

10.2.0.0/16        *[BGP/170] 00:06:42, localpref 100,
from 10.145.1.2
                      AS path: I
                    > to 10.145.0.34 via fe-1/3/1.0,
Push 177840, Push 291984(top)
                    [BGP/170] 00:06:42, localpref 100,
from 10.145.1.1
                      AS path: I
                    > to 10.145.0.34 via fe-1/3/1.0,
label-switched-path KINTC2_R1-KINNTC_R1
10.108.8.64/26     *[BGP/170] 00:06:42, localpref 100,
from 10.145.1.2
                      AS path: I
                    > to 10.145.0.34 via fe-1/3/1.0,
Push 177840, Push 291984(top)
                    [BGP/170] 00:06:42, localpref 100,
from 10.145.1.1
                      AS path: I
                    > to 10.145.0.34 via fe-1/3/1.0,
label-switched-path KINTC2_R1-KINNTC_R1
10.144.2.128/26    *[BGP/170] 00:06:42, localpref 100,
from 10.145.1.2
                      AS path: I
                    > to 10.145.0.34 via fe-1/3/1.0,
Push 177856, Push 291984(top)
                    [BGP/170] 00:06:42, localpref 100,
from 10.145.1.1
                      AS path: I




 
____________________________________________________________________________
________
Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.
http://overview.mail.yahoo.com/
_______________________________________________
juniper-nsp mailing list juniper-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

_______________________________________________
juniper-nsp mailing list juniper-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp





More information about the juniper-nsp mailing list